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

📄 reg.php

📁 php做的wap论坛 有详细说明在readme中
💻 PHP
字号:
<?php
require_once("variable.php");
echo $WmlDeclare;
?>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
</head>
<card id="loop" title="注册新用户">
<p align="left">
<a href="./">返回首页</a> | <a href="./">取消注册</a><br/>
<?php
if($_GET[action]=="post"){	
	if(empty($_GET[username]) or empty($_GET[password]) or empty($_GET[email])){
		echo "请填写您的帐号/密码/电子邮件!<br/>";
		echo "<anchor>[返回上一页]<prev/></anchor><br/>";
	}else{
		$usernames = iconv("UTF-8","GB2312",$_GET[username]);
		$email = iconv("UTF-8","GB2312",$_GET[email]);
		$row = mysql_fetch_array(mysql_query("select count(uid) as aa from ".$dbTablePx."members where username='$usernames' limit 1"));
		if($row[aa]>0){
			echo "已经存在相同用户名!<br/>";
			echo "<anchor>[返回上一页]<prev/></anchor><br/>";
		}else{
			mysql_query("INSERT INTO ".$dbTablePx."members (username, password, groupid, memberid, email, regdate, newpm)	values ('$usernames', md5('$_GET[password]'), '-1', '8', '$email', unix_timestamp(), '1')");
			$uids = mysql_insert_id();
			mysql_query("INSERT INTO ".$dbTablePx."memberdata (uid) values ('$uids')");
			mysql_query("UPDATE ".$dbTablePx."bbsinfo set newmember='$usernames',totalmember=totalmember+1 WHERE id='1'");
			mysql_query("INSERT INTO ".$dbTablePx."msg (touid, fromuid, username, type, ifnew, title, mdate, content)
		VALUES ('$uids', '0', 'SYSTEM', 'rebox', '1', 'Welcome to $siteName.', unix_timestamp(),'欢迎来到 $siteName .您是用手机注册之用户,如果您还没有升级您的个人资料,请立刻到个人控制面板去修改升级您的个人资料吧!')");
			echo "恭喜您!您已经注册成功!请牢记您的用户名和密码,以在发表帖子时使用:<br/>";
			echo "用户名: ".$usernames."<br/>";
			echo "密 码: ".$_GET[password]."<br/>";
			echo "<a href='./'>返回首页</a><br/>";
		}
	}
}else{
?>
如果您要注册为<?php echo $siteName;?>用户,必须同意<a href="announce.php">注册社区条款(查看)</a>。<br/><br/>
帐号:<input name="username" type="text" format="*M" value="" emptyok="true" maxlength="20"/><br/>
密码:<input name="password" type="password" format="*M" value="" emptyok="true" maxlength="20"/><br/>
Email:<input name="email" type="text" format="*M" value="" emptyok="true" maxlength="60"/><br/>
说明:WAP注册只填写简单个人资料,其他详细个人资料请用电脑登录到<?php echo $siteAddr;?>进行修改升级。<br/><anchor>
[注册]
        <go href="reg.php?action=post" method="get">
          <postfield name="username" value="$(username)"/>
          <postfield name="password" value="$(password)"/>
          <postfield name="email" value="$(email)"/>
        </go>
</anchor> | <a href="./">[取消]</a>
<?php
}
?>
<br/>
<a href="./">返回首页</a><br/><br/>
<small>(C)copyright by <?php echo $siteSign;?></small>
</p>
</card>
</wml>
<?php
LangFlush(ob_get_contents());
?>

⌨️ 快捷键说明

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