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

📄 login.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<?
require("global.php");
require("userdata/style.php");
get_forum_info();
if (!$job) $job="relogin";
$add_title=" > 登录程式";
if ($job=="relogin") {
	if (!$step) {
		require("header.php");echo"$headertp";
		printbar();
		printLoginForm();
		require("footer.php");echo"$footertp";
		exit;
	}
	elseif ($step==2) {
		$check=0;
              if ($loginuser && $loginpwd) $check=checkpass($loginuser,$loginpwd);
	      if ($check==1) {
			$ofstarid=$loginuser;
			if ($privacy!=1) $privacy=0;
			$login_status=1;
            $ofstarpwd=$loginpwd;
            if($cookie_time!=""){
            setcookie("ofstaridrvrc",$ofstarid,$cookie_time);
                       setcookie("ofstarpwdrvrc",$ofstarpwd,$cookie_time);
                        setcookie("privacyrvrc",$privacy,$cookie_time);
                       }
						//session_register("skin");
            session_register("ofstarpwd");
			session_register("ofstarid");
			session_register("privacy");
            $url="thread.php?forumid=".$forumid;
           if($forumid==0 || empty($forumid)) $url="index.php";    
		jump_page($url,'登录成功','状态:您已经登录成功');
		}else {
			require("header.php");echo"$headertp";
			printbar();
			msg_box('登录程式','<br>状态:对不起,资料错误,您无法登录<br>请检查您的数据 <br><ul><li><a href="javascript:history.back(1);">返回</a></li></ul>');
			require("footer.php");echo"$footertp";
		}
	}
} elseif ($job=="quit") {
setcookie("ofstaridrvrc","");
setcookie("ofstarpwdrvrc","");
setcookie("privacyrvrc","");
	session_destroy();
	jump_page('index.php','成功退出','状态:您已经成功退出');

} elseif ($job=="qandr") {
setcookie("ofstaridrvrc","");
setcookie("ofstarpwdrvrc","");
setcookie("privacyrvrc","");
	session_destroy();
	jump_page($site_url,'成功退出',"状态:您已经成功退出<br><ul><li><a href='$site_url'>返回</a>网站首页</li></ul>");
}
function printbar() {
headguide("登录程式将把信息记录在COOKIE中<BR>为了安全考虑,退出时请选择<a href='login.php?job=quit'>退出登录</a>","登录程式");
}
function printLoginForm() {
global $forumlist,$titlecolor,$bordercolor,$subcolor,$tablewidth;
print("
<table width=$tablewidth border=0 cellspacing=0 cellpadding=0 align=center bgcolor=$bordercolor>
 <tr>
 <td>
  <table width=100% border=0 cellspacing=1 cellpadding=6>
   <tr bgcolor=$titlecolor>
    <td colspan=2 class=title bgcolor=$titlecolor>登录程式</td>
   </tr>
   <tr bgcolor=FFFFFF>
    <td width=50%><br>
<font color=red>&nbsp;&nbsp;注意:</font> 如果你使用共用电脑或在网吧,有效时间请选择<font color=red>即时</font>登录;
<form action=login.php method=POST>
&nbsp;&nbsp;用户:
<input type=text name='loginuser' size=20 style=\"background-color:#ffffff; color:#336699; border: 1 double #B4B4B4\" onMouseOver = \"this.style.backgroundColor = '#E5F0FF'\" onMouseOut = \"this.style.backgroundColor = ''\">
<br><br>&nbsp;&nbsp;密码:
<input type=password name='loginpwd' size=20 style=\"background-color:#ffffff; color:#336699; border: 1 double #B4B4B4\" onMouseOver = \"this.style.backgroundColor = '#E5F0FF'\" onMouseOut = \"this.style.backgroundColor = ''\">
( <a href='sendpwd.php'>忘记了密码?</a>) <br>
<br>
&nbsp;&nbsp;个人动作:
<select name='privacy'>
<option value=0>显示在用户列表</option>
<option value=1>隐身,不显示</option>
</select><br><br>

&nbsp;&nbsp;有效时间 :
  <select name='cookie_time'>
<option value=31536000>一年</option>
<option value=946080000>更长</option>
<option value=2592000>一个月</option>
   <option value=>即时</option>
  </select>
<br><br>
&nbsp;&nbsp;直接进入:
<select name='forumid'>
<OPTION value='0' selected>:::论坛首页:::</option>");
$count=count($forumlist)-1;
for ($i=0; $i<=$count; $i++) {
	$forum_list_info=explode("|",$forumlist[$i]);
         if($forum_list_info[3]!=18 ){
	if ($forum_list_info[0] !="category" )     echo "<OPTION  value=\"$forum_list_info[3]\">$forum_list_info[1]</option>";

}}
print("
</select>
<br><br>
 <br>
&nbsp;&nbsp;<input type=submit value='送出资料' style=\"height:20px;background-color:#f3f3f3;border:1 solid black\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\">
&nbsp;<input type=hidden value='2' name='step'>
<input type=reset value='清除重写' style=\"height:20px;background-color:#f3f3f3;border:1 solid black\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"></form></td>
<td width=50%><textarea name=info rows=\"\" cols=\"\" style=\"width:500;height:300\">
    当您申请用户时,表示您已经同意遵守本规章。

    欢迎您加入本站点参加交流和讨论,本站点为公共论坛,为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:

    一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息: 
     (一)煽动抗拒、破坏宪法和法律、行政法规实施的;
     (二)煽动颠覆国家政权,推翻社会主义制度的;
     (三)煽动分裂国家、破坏国家统一的;
     (四)煽动民族仇恨、民族歧视,破坏民族团结的;
     (五)捏造或者歪曲事实,散布谣言,扰乱社会秩序的;
     (六)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的;
     (七)公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的;
     (八)损害国家机关信誉的;
     (九)其他违反宪法和法律行政法规的;
     (十)进行商业广告行为的。

    二、互相尊重,对自己的言论和行为负责。 

    三、禁止在申请用户时使用相关本站的词汇,或是带有侮辱、毁谤、造谣类的或是有其含义的各种语言进行注册用户,否则我们会将其删除。

    四、禁止以任何方式对本站进行各种破坏行为。

    五、如果您有违反国家相关法律法规的行为,本站概不负责,您的登录论坛信息均被记录无疑,必要时,我们会向相关的国家管理部门提供此类信息。

</textarea>
</td>
  </tr>
   <tr align=left bgcolor=$subcolor>
    <td colspan=2 bgcolor=$titlecolor>&nbsp;</td>
   </tr>
  </table>
 </td>
 </tr>
</table>");
}
function printLoginSuccess() {
msg_box('登录程式','');
}

⌨️ 快捷键说明

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