} } else { _alert_close('非法登录!'); } } //获取数据 if (isset($_GET['id'])) { if (!!($_rows = _fetch_array("SELECT tg_username FROM tg_user WHERE tg_id='{$_GET['id']}' LIMIT 1"))) { $_html = array(); $_html['touser'] = $_rows['tg_username']; $_html = _html($_html); } else { _alert_close('不存在此用户!'); } } else { _alert_close('非法操作!'); } ?> <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <?php require ROOT_PATH . 'includes/title.inc.php'; ?> <script src="js/code.js"></script> <script src="js/message.js"></script> </head> <body>
_alert_close('Illegal access!'); } } } //Get data from database //$_GET['id'] is from centerwindow() in blog.js if (isset($_GET['id'])) { if (!!($_rows = _fetch_array("SELECT \n\t tg_username \n\t FROM \n\t tg_user \n\t WHERE \n\t tg_id='{$_GET['id']}' \n\t LIMIT 1"))) { $_html = array(); $_html['touser'] = $_rows['tg_username']; $_html = _html($_html); } else { _alert_close('This user does not exist£¡'); } } else { _alert_close('Illegal access£¡'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php require ROOT_PATH . 'includes/CssLoad.inc.php'; ?> <script type="text/javascript"src="js/code.js"></script> <script type="text/javascript"src="js/message.js"></script> </head> <body> <div id="message">
/** * protect from illegal accessing management-_manage_login() * @access public * @return void */ function _manage_login() { if (!isset($_COOKIE['username']) || !isset($_SESSION['admin'])) { _alert_close('No authority to access'); } }
} } else { _alert_close('非法登录'); } } //获取数据 if (isset($_GET['id'])) { if (!!($_rows = _fetch_array("select tg_username from tg_user where tg_id='{$_GET['id']}' limit 1"))) { $_html = array(); $_html['touser'] = $_rows['tg_username']; $_html = _html($_html); } else { _alert_close('不存在此用户'); } } else { _alert_close('非法操作'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php require ROOT_PATH . 'includes/title.inc.php'; ?> <script type="text/javascript" src="js/code.js"></script> <script type="text/javascript" src="js/message.js"></script> </head> <body>
_session_destroy(); _alert_back("发送失败!"); } else { _closeDB(); _session_destroy(); _alert_close("发送成功!"); } } if (isset($_GET['id'])) { $_sql = "SELECT tg_username FROM tg_user WHERE tg_id = '{$_GET['id']}' LIMIT 1"; if (!!($_row = _fetch_array($_sql))) { $_html = array(); $_html['username'] = $_row['tg_username']; $_html = _html($_html); } else { _alert_close('用户不存在!'); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>多用户留言系统--发短信</title> <?php require ROOT_PATH . 'includes/title.inc.php'; ?> <script type="text/javascript" src="js/code.js"></script> <script type="text/javascript" src="js/message.js"></script> </head> <body>