first commit

This commit is contained in:
LAPTOP-V9RRD1TL\Michelle's Computer
2025-07-21 21:38:17 +08:00
commit f8f8fcaf96
2529 changed files with 227800 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
include '../connect/cms-config.php' ;
include '../requires/session.php' ;
include '../requires/function.php' ;
// default variable
$type = $_GET['type'] ;
$id = escapeString($_POST['id']) ;
// check if not null
if ($type != ''){
switch($type){
case 'logout' :
// update query
$mysqli->query("UPDATE system_user SET
user_login_cookies = ''
WHERE user_id = '".$id."'") ;
$result = 'success' ;
break ;
}
$array_result['result'] = $result ;
// return result
echo json_encode($array_result) ;
exit ;
}
// redirect page
header("Location: ".PATH) ;
exit ;
?>