服务器上网站没有任何问题,在本地配置好了,浏览和前台登录都没有问题,但是后台admin登录的时候就出错了,希望各位大侠帮小弟看看是什么问题
没登陆的时候左下角脚本提示:网页错误详细信息
消息: 未结束的字符串常量
行: 67
字符: 61
代码: 0
URI: http://localhost/wavelinemedia/public_html/admin/login.php按了登录之后:
System Note"); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 3; echo(""); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 4; echo(""); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 1; echo(""); break; case 2; echo(""); break; default; break; } ?>
PHP浏览器脚本登录
没登陆的时候左下角脚本提示:网页错误详细信息
消息: 未结束的字符串常量
行: 67
字符: 61
代码: 0
URI: http://localhost/wavelinemedia/public_html/admin/login.php按了登录之后:
System Note"); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 3; echo(""); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 4; echo(""); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 1; echo(""); break; case 2; echo(""); break; default; break; } ?>
PHP浏览器脚本登录
<?php
/**
* @CopyRight (C)2006-2011 OE Development team Inc.
* @WebSite www.phpcoo.com,www.oecms.cn
* @Author XiangFeng <[email protected]>
* @Brief OEcms v3.x
* @Update 2011.09.01
**/
session_start();
require_once '../source/core/run.php';
$action = Core_Fun::rec_post("action",1);if($action=="loginpost"){
$username = Core_Fun::rec_post("username",1);
$password = Core_Fun::rec_post("password",1);
$checkcode = Core_Fun::rec_post("checkcode",1);
$founderr = false;
if(!Core_Fun::ischar($username)){
$founderr = true;
$errmsg .= "The login ID must filled out!.<br />";
}else{
if(!Core_Fun::check_userstr($username)){
$founderr = true;
$errmsg .= "Account format error!.<br />";
}
}
if(!Core_Fun::ischar($password)){
$founderr = true;
$errmsg .= "Password must filled out!<br />";
}
if(!Core_Fun::ischar($checkcode)){
$founderr = true;
$errmsg .= "Identifying code must filled out!<br />";
}else{
if($checkcode != $_SESSION["verifycode"]){
$founderr = true;
$errmsg .= "Identifying code Error!<br />";
}
}
if($founderr == true){
Core_Fun::halt($errmsg,"",1);
}else{
$libadmin->login($username,$password);
}
}else{
$tpl->display(ADMIN_TEMPLATE."login.tpl");
}
?>模版源码:
<!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=<!--{$page_charset}-->" />
<title>Administrator Login-[<!--{$config.sitename}-->]</title>
<meta name="author" content="<!--{$copyright_author}-->" />
<link href="oecms/css/admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html{ background:#F2F5F8;}
body{ background:#F2F5F8;}
</style>
<script type='text/javascript' src='js/jquery-1.4.4.min.js'></script>
<!--[if lte IE 6]>
<script type='text/javascript' src='js/DD_belatedPNG-min.js'></script>
<script language="javascript">DD_belatedPNG.fix('.login-tit,.admin-logo,.tit');</script>
<![endif]-->
</head>
<body>
<div id="login-wrap">
<div class="login-main">
<div class="login-tit">
<div class="admin-logo"></div>
<div class="tit"></div>
</div>
<div class="login-cont">
<form id="loginFrm" action="login.php" method="post" onsubmit="return checkform();">
<input type="hidden" name="action" value="loginpost" />
<div class="account1">
<label>Login ID:</label>
<input class="input-txt w180" id="username" name="username" type="text" /><span id="username_msg"></span>
</div>
<div class="account1">
<label for="">Password:</label>
<input class="input-txt w180" id="password" name="password" type="password" /><span id="password_msg"></span>
</div>
<div class="account2">
<label for="">Identifying Code:</label>
<input class="input-txt w180" id="checkcode" name="checkcode" type="text" autocomplete="off" />
<span id="checkcode_msg"></span>
</div>
<div class="account3">
<img id="checkCodeImg" src="../data/include/imagecode.php?act=verifycode" />
<a href="javascript:refreshCc();">change</a>
</div>
<!--<input class="admin-btn" onfocus="this.blur()" name="" type="submit" value="Login" />-->
<input class="admin-btn-no" name="" type="submit" value="login" />
</form>
</div>
</div>
</div>
</body>
</html>
<script language="javascript" type="text/javascript">
function refreshCc() {
var ccImg = document.getElementById("checkCodeImg");
if (ccImg) {
ccImg.src= ccImg.src + '&' +Math.random();
}
}
function checkform(){
if($("#username").val()==""){
$("#username_msg").html("Login ID must be filled out!");
return false;
}
if($("#password").val()==""){
$("#password_msg").html("Password must be filled out!);
return false;
}
if($("#checkcode").val()==""){
$("#checkcode_msg").html("The validate code must be filled out!");
return false;
}
return true;
}
</script>
$("#password_msg").html("Password must be filled out!);
少了个双引号
也是没跳转,显示这个
System Note"); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 3; echo(""); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 4; echo(""); echo("Click this link in two seconds if your browser can not redirect automatic
"); break; case 1; echo(""); break; case 2; echo(""); break; default; break; } ?>
难道不该是
case 3: 吗?