[PHP] 纯文本查看 复制代码 <?php
include_once "../include/include.php";
include_once "../inc.php";
include_once "../include/inc.php";
include_once "../model/phpnew.class.php";
global $PHPnew;
$PHPnew = new PHPnew();
$PHPnew->templates_dir="skin/html";
$PHPnew->templates_default="skin/html";
$PHPnew->templates_cache="cache/";
$action=$_GET["action"];
if($action!="index"&&$action!="login"&&$action!="logout"&&$action!=""){
if($_SESSION['admin']!="fangka_kd"){
alertInfo("请您先登录!","index.php");
}
}
switch ($action){
case "login"://执行登录
if($_POST["login-name"]<>""&&$_POST["login-pass"]<>""){
if($_POST["login-name"]==ADMIN_NAME&&$_POST["login-pass"]==ADMIN_PASS){
$_SESSION['admin']="fangka_kd";
alertInfo("登录成功!","index.php?action=main");
}else{
alertInfo("帐户或密码错误!","1");
}
}
这里写的账号和密码是什么? |