mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-21 12:19:15 +12:00
add stuff
This commit is contained in:
parent
7a54cd91d7
commit
4414da4648
5 changed files with 61 additions and 14 deletions
|
@ -122,6 +122,20 @@ function getUserQuestPoints($database, $id)
|
|||
|
||||
}
|
||||
|
||||
function getUserExistInExt($database, $id)
|
||||
{
|
||||
include('config.php');
|
||||
$dbname = $database;
|
||||
$connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
|
||||
$stmt = $connect->prepare("SELECT COUNT(*) FROM UserExt WHERE Id=?");
|
||||
$stmt->bind_param("i", $id);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
|
||||
return intval($result->fetch_row()[0]) <= 0;
|
||||
|
||||
}
|
||||
|
||||
function getUserTotalLogins($database, $id)
|
||||
{
|
||||
include('config.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue