if($cuserLogin->getUserID() <=0 )
{
if(empty($adminDirHand))
{
ShowMsg("<b>提示:需输入后台管理目录才能登录</b><br /><form>请输入后台管理目录名:<input type='hidden' name='gotopage' value='".urlencode($dedeNowurl)."' /><input type='text' name='adminDirHand' value='mgr' style='width:120px' /><input style='width:80px' type='submit' name='sbt' value='转入登录' /></form>", "javascript:")
exit()
}
$gurl = "../../{$adminDirHand}/login.php?gotopage=".urlencode($dedeNowurl)
echo "<script language='javascript'>location='$gurl'</script>"
exit()
}
}
但我们知道这种方法是肯定不可取的,鄙视那些不懂的乱发技术教程
乱发就算了,也不注明下原理和后果,这么大缺陷的方法干脆就不要发了,害人啊
最后给出正确方法:
将上面那段代码修改成
if($cuserLogin->getUserID() <=0 )
{
if(empty($adminDirHand))
{
ShowMsg("<b>登陆失效,转向主页</b><br />", $cfg_basehost)
exit()
}
$gurl = "../../{$adminDirHand}/login.php?gotopage=".urlencode($dedeNowurl)
echo "<script language='javascript'>location='$gurl'</script>"
exit()
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)