Correction des erreurs dues à la dernière correction
This commit is contained in:
parent
e5c8d7900d
commit
e99080f324
|
@ -130,7 +130,7 @@ require_once __ROOT__.'/manager/database.php';
|
||||||
/* [a] userlist */
|
/* [a] userlist */
|
||||||
function user_getUserList(){
|
function user_getUserList(){
|
||||||
$userlistFile = file_get_contents("src/userlist.json");
|
$userlistFile = file_get_contents("src/userlist.json");
|
||||||
$answer->request = json_decode( $userlistFile );
|
return json_decode( $userlistFile );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -185,16 +185,16 @@ require_once __ROOT__.'/manager/database.php';
|
||||||
$_SESSION['semestre'] = ''.$semestre.'';
|
$_SESSION['semestre'] = ''.$semestre.'';
|
||||||
}
|
}
|
||||||
|
|
||||||
$answer->request = 'success';
|
return 'success';
|
||||||
|
|
||||||
}else
|
}else
|
||||||
$answer->request = 'not_in_db';
|
return 'not_in_db';
|
||||||
|
|
||||||
}else
|
}else
|
||||||
$answer->request = 'wrong_password';
|
return 'wrong_password';
|
||||||
|
|
||||||
}else
|
}else
|
||||||
$answer->request = 'unknown_user';
|
return 'unknown_user';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ require_once __ROOT__.'/manager/database.php';
|
||||||
if( $timestamp == null )
|
if( $timestamp == null )
|
||||||
$timestamp = time();
|
$timestamp = time();
|
||||||
|
|
||||||
$answer->request = Date('m', $timestamp) < 8;
|
return Date('m', $timestamp) < 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue