Initial Commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
header("Cache-Control: no-cache, must-revalidate");
|
||||
header("Expires: Sat, 6 May 1998 03:10:00 GMT");
|
||||
|
||||
/*===============================================*\
|
||||
|| ############################################# ||
|
||||
|| # JAKWEB.CH # ||
|
||||
|| # ----------------------------------------- # ||
|
||||
|| # Copyright 2019 JAKWEB All Rights Reserved # ||
|
||||
|| ############################################# ||
|
||||
\*===============================================*/
|
||||
|
||||
if (!file_exists('config.php')) die('rest_api config.php not exist');
|
||||
require_once 'config.php';
|
||||
|
||||
$userid = $loginhash = $chatid = "";
|
||||
if (isset($_REQUEST['userid']) && !empty($_REQUEST['userid']) && is_numeric($_REQUEST['userid'])) $userid = $_REQUEST['userid'];
|
||||
if (isset($_REQUEST['loginhash']) && !empty($_REQUEST['loginhash'])) $loginhash = $_REQUEST['loginhash'];
|
||||
|
||||
if (!empty($userid) && !empty($loginhash)) {
|
||||
|
||||
// Let's check if we are logged in
|
||||
$usr = $jakuserlogin->jakCheckrestlogged($userid, $loginhash);
|
||||
|
||||
if ($usr) {
|
||||
die(json_encode(array('status' => true)));
|
||||
} else {
|
||||
die(json_encode(array('status' => false, 'errorcode' => 1)));
|
||||
}
|
||||
}
|
||||
|
||||
die(json_encode(array('status' => false, 'errorcode' => 1)));
|
||||
?>
|
||||
Reference in New Issue
Block a user