mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-20 03:39:16 +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');
|
||||
|
|
|
@ -5,8 +5,8 @@ if(session_status() !== PHP_SESSION_ACTIVE)
|
|||
if(!function_exists('is_logged_in'))
|
||||
include('../common.php');
|
||||
|
||||
$info = parse_url($_SERVER['HTTP_HOST']);
|
||||
$host = $info['host'];
|
||||
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
?>
|
||||
<HEAD>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue