check.inc.php
来自「CRM 不仅仅是一个管理名词和管理概念」· PHP 代码 · 共 36 行
PHP
36 行
<?/** * * Package Monitor Page * * OsoonCRM Project * Copyright 2003-2004 (c) * http://osooncrm.cosoft.org.cn/ */if (_CHECK_INC_PHP_ != 1):define(_CHECK_INC_PHP_, 1); $uid=$HTTP_COOKIE_VARS["uid"]; $username=$HTTP_COOKIE_VARS["username"]; $password=$HTTP_COOKIE_VARS["password"]; $G_uid=$HTTP_COOKIE_VARS["G_uid"]; $G_username=$HTTP_COOKIE_VARS["G_username"]; $G_password=$HTTP_COOKIE_VARS["G_password"]; $G_name=$HTTP_COOKIE_VARS["G_name"]; $department=$HTTP_COOKIE_VARS["department"]; $departmentid=$HTTP_COOKIE_VARS["departmentid"]; $privilege=$HTTP_COOKIE_VARS["privilege"]; include "include/db.inc.php"; $sql = "select count(*) from user where username='$username' and password='$password'"; $res = mysql_query($sql); $row=@mysql_fetch_row($res); if($row[0]<1) { print "<script>document.location='index.php';</script>"; exit; }endif;?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?