1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php header('X-UA-Compatible: IE=edge,chrome=1'); include 'config.php';
// Check if the user is logged in
if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1')) { header("Location: login.php"); exit; } ?> <?php require("configure.php"); $nowdate = date("Y-m-d H:i:s"); $cmsloginid = check_input($_GET["cmsloginid"]);
$sql = "update sys_cms_login set cmsstatus=case when cmsstatus = 1 then 0 else 1 end, lastupdate='$nowdate' "; $sql .= " where cmsloginid='$cmsloginid'"; mysql_query($sql); mysql_close($dbh);
header("Location: sys_cms_user_index.php?msg=Update Successful"); ?>
|