某客户的ecshop后台登陆后,显示成功,但是自动退出到登陆界面。问题解决:因为 windows 系统不区分目录大小写,而php是区分大小写的那么 http:// 你的域名/admin/ 和 http:// 你的域名/Admin/ 就不一样如果你用后者登陆系统,就会出现自动退出的情况具体原因在 admin/includes/init.php 里面代码决定,要求是>if ($_request['act'] != 'login' && $_REQUEST['act'] != 'signin' &&$_REQUEST['act'] != 'forget_pwd' && $_REQUEST['act'] != 'reset_pwd' && $_REQUEST['act'] != 'check_order'){$admin_path = preg_replAce('/:\d+/', '', $ecs->url()) . ADMIN_PATH;if (!empty($_SERVER['HTTP_REFERER']) &&strpos(preg_replace('/:\d+/', '', $_SERVER['HTTP_REFERER']), $admin_path) === false){if (!empty($_REQUEST['is_ajax'])){make_json_error($_LANG['priv_error']);}else{ecs_header("Location: privilege.php?act=login\n");}exit;}}














发表评论