4,251
社区成员
发帖
与我相关
我的任务
分享
<?php
error_reporting(0);
ob_start();
session_start();
include "includes/common.php";
error_reporting(E_ALL ^ (E_NOTICE|E_WARNING));
$_SESSION["ses_uid"] = trim($_SESSION["ses_uid"]);
if(isset($_SESSION["ses_uid"]) && !empty($_SESSION["ses_uid"])) {
header("location: dashboard.php");
}
if($_REQUEST['redirect_url'] != '') {
$objSmarty->assign("redirect_url",urlencode($_REQUEST['redirect_url']));
}
$objauthentication = new authentication();
switch($_POST['hdAction']) {
case 'login':
$objauthentication->admin_login_check($_POST['txtloginname'],$_POST['txtloginpassword'],$_REQUEST);
$objSmarty->assign("txtloginname", $_POST["txtloginname"]);
break;
}
$objSmarty->display("index.tpl");
?>
php.ini改写这样;
; http://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
; This directive controls whether or not and where PHP will output errors,
重启apache和mysql,还是这样,没有变化