/var/www/hkosl.com/sinomax/survey/webadmin/sys_cms_user_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
<?php
    
require_once('check_login.php');

    
$nowdate    date("Y-m-d H:i:s");
    
$cmsloginid = (int)$_GET["cmsloginid"];

    
$sth1      $dbh->prepare("update sys_cms_login set deleted=?, cmsstatus=?, lastupdate=?, lastupby=? where cmsloginid = ?");
    
$parameter = array(10$nowdate$_SESSION['cmsloginid'], $cmsloginid);
    if (!
$sth1->execute($parameter))
        throw new 
Exception('[' $sth1->errorCode() . ']: ' print_r($sth1->errorInfo()));
    else
        
header("Location: sys_cms_user_index.php?msg=3");