26 lines
617 B
PHP
Executable File
26 lines
617 B
PHP
Executable File
<?php
|
|
require_once('../../../fixed/config/go_con.php');
|
|
|
|
$login = $_POST['login'];
|
|
$status = 0; // false not equil
|
|
|
|
|
|
if ($login == $_SESSION['active_code']) {
|
|
$status = 1; // done
|
|
}
|
|
if ($_SESSION['active_code'] == 0) {
|
|
$status = 2; // no active code
|
|
}
|
|
|
|
|
|
// Set the return value in json format
|
|
$returnValue = json_encode(array(
|
|
'status' => $status,
|
|
));
|
|
|
|
// Setting the header information to json format
|
|
header('Content-Type: application/json');
|
|
|
|
// Display the information and return the control to the calling page
|
|
echo $returnValue;
|
|
?>
|