在该侧面代码里加一句:
<?php include("areyoulogin.txt");?>
当然,要进你的侧页面必须先过登录验证关了,当然代码也比较简单,就是用户和密码的验证过程了。areyoulogin.txt具体内容:
<?php
Session_Start() ;
//如果$current_user变量没有被赋值,则表明用户没有登录
if(!isset($current_user))
{
//显示该用户没有登录并返回
Header("Location: sorrymsg.php?errmsg=请先登录,才能进入!"); }
?>里面sorrymsg.php 可以为提示类信息页面或者你指定的页面。
<?php include("areyoulogin.txt");?>
当然,要进你的侧页面必须先过登录验证关了,当然代码也比较简单,就是用户和密码的验证过程了。areyoulogin.txt具体内容:
<?php
Session_Start() ;
//如果$current_user变量没有被赋值,则表明用户没有登录
if(!isset($current_user))
{
//显示该用户没有登录并返回
Header("Location: sorrymsg.php?errmsg=请先登录,才能进入!"); }
?>里面sorrymsg.php 可以为提示类信息页面或者你指定的页面。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货