⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.php

📁 在传统CMS文章内容管理功能基础上
💻 PHP
字号:
<?phpob_start("ob_gzhandler");//header("Cache-Control: no-cache, must-revalidate");header("Expires: Mon, 26 Jul 2006 05:00:00 GMT");include_once("../../../config.php");include_once("../../../{$adminDir}/data/userconfig.php");include_once("../../../class/mysql_class.php");setCookie("bbwps_path",$_SERVER["HTTP_REFERER"],time()+1000000,"/");echo "var bbwps_path=\"http://{$host}{$installPath}\";";echo "var username=\"{$_COOKIE["bbwps_user"]}\";";if(!$_COOKIE["bbwps_user"]){	echo <<< THE	document.write('<form id="login" name="login" method="post" action="'+bbwps_path+'/login.php?action=reg&indexFlag=1" target="_self" style="MARGIN:0px;">');	document.write('通行证 >> 用户名:<input type="text" name="post_bbwps_user" id="username" size="12" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px"/> &nbsp;密码:<input name="post_bbwps_pwd" type="password" id="password" size="12" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px"/>');THE;   if($logincard=="1"){   	 echo <<< THE   	 document.write('&nbsp;验证码:<input name="post_bbwps_yz" type="text" id="post_bbwps_yz" size="6" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px"/>  <img src="'+bbwps_path+'/function/yanzheng.php" align="absbottom" alt="看不清楚请点击图片" style="CURSOR: hand" onclick="this.src=\''+bbwps_path+'/function/yanzheng.php\'">');THE;   }   echo <<< THE    document.write(' <select name="cookietime" id="cookietime" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px"><option value="0">不保存</option><option value="86400">保存一天</option><option value="2592000">保存一月</option><option value="31536000">保存一年</option></select> <input type="submit" name="loginsubmit" value=" 登录 " /> &nbsp;&nbsp;<a href="'+bbwps_path+'/register.php">免费注册</a></form>');THE;}else{	echo <<< THE	document.write(''+username+'欢迎您光临! <a href="'+bbwps_path+'/user/index.php" class="b12">登陆后台</a> | <a href="'+bbwps_path+'/quit.php" class="b12">退出登录</a>');THE;  //判断是不是有新的消息	$db= new DB($hostname,$username,$password,$database);	$sql="select count(pbid) as num from {$prefix}pmbox where `new`=0 and `to`='{$_COOKIE["bbwps_user"]}'";	$db->query($sql,true);	$rs=$db->fetch_array();	if($rs["num"]>0){	  $pmpath = "http://{$host}{$installPath}/data/sound/newpm_$newpm.wav";   //pm声音路径	   echo <<< THE	document.write(' <a href="'+bbwps_path+'/user/index.php" class="b12">您有新的短消息,请您查看</a>');	document.write('<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="0" height="0" style="display:none">');	document.write('<param name="URL" value="$pmpath">');  document.write('<param name="playCount" value="$newcount"></object>');THE;	}}ob_end_flush();?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -