📄 register.php
字号:
<?require("functions.php");$conn=DBConnect();$sql="select * from links_users where name='".$name."'";$result=mysql_query($sql,$conn);if($obj=mysql_fetch_object($result)){ echo "用户名".$name."已存在,请重新选择一个。"; echo "<a href=javascript:history.back()>返回</a>"; exit;}$sql="select * from links_users where siteurl='".$siteurl."'";$result=mysql_query($sql,$conn);if($obj=mysql_fetch_object($result)){ echo "网站".$siteurl."已注册过,请不要重复注册。"; echo "<a href=javascript:history.back()>返回</a>"; exit;}$temp=explode("\n",$siteintro);$siteintro="";for($i=0;$i<sizeof($temp);$i++){ $siteintro.=trim($temp[$i]);}$sql="insert into links_users(name,password,email,sitename,siteurl,sitetype,sitesubtype,siteintro,exchgtype,question,answer,sex,birthday,signupday";if($LINKS_MANAGE_STYLE=="NONE")$sql=$sql.",status";if($realname)$sql=$sql.",realname";if($referid)$sql=$sql.",referid";$sql=$sql.") values('";$sql=$sql.$name;$sql=$sql."','";$sql=$sql.$passwd;$sql=$sql."','";$sql=$sql.$email;$sql=$sql."','";$sql=$sql.$sitename;$sql=$sql."','";$sql=$sql.$siteurl;$sql=$sql."',";$sql=$sql.$sitetype;$sql=$sql.",";$sql=$sql.$sitesubtype;$sql=$sql.",'";$sql=$sql.$siteintro;$sql=$sql."',";$sql=$sql.$exchgtype;$sql=$sql.",'";$sql=$sql.$question;$sql=$sql."','";$sql=$sql.$answer;$sql=$sql."',";$sql=$sql.$sex;$sql=$sql.",'";$sql=$sql.$birthday;$sql=$sql."','";$sql=$sql.date("Y-m-d");if($LINKS_MANAGE_STYLE=="NONE") $sql=$sql."','1";if($realname){ $sql=$sql."','"; $sql=$sql.$realname;}if($referid){ $sql=$sql."','"; $sql=$sql.$referid;}$sql=$sql."')";mysql_query($sql,$conn);$sql="select * from links_users where name='".$name."'";$result=mysql_query($sql,$conn);$userinfo=mysql_fetch_object($result);$i=0;$sql="select * from links_users where id<>".$userinfo->id." ORDER BY account DESC LIMIT 0,8";$result=mysql_query($sql,$conn);while($obj=mysql_fetch_object($result)){ $out[$i]->id=$obj->id; $out[$i]->siteintro=$obj->siteintro; $out[$i]->siteurl=$obj->siteurl; $out[$i]->sitename=$obj->sitename; $i++;}DBClose($conn);?><html><head><title><?echo $SITE_TITLE;?></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="cssset.css"><SCRIPT language=JavaScript><!--var clr_win_handle;var clr_win_loaded=0;var def_color=Array("bg","","text","000000","lborder","6699ff","dborder","ffffff","pagebg","ffffff");function openclrwin(){ clr_win_handle=window.open("palette.php","select_color_win","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=80");}function defineclr(t){ document.f1.select_target.value=t; if(clr_win_loaded==0) openclrwin(); else clr_win_handle.focus();}function changeclr(color){ if(document.f1.select_target.value=="bg"){ table1.bgColor=color; table2.bgColor=color; table3.bgColor=color; } else if(document.f1.select_target.value=="lborder"){ table1.borderColorLight=color; table2.borderColorLight=color; table3.borderColorLight=color; } else if(document.f1.select_target.value=="dborder"){ table1.borderColorDark=color; table2.borderColorDark=color; table3.borderColorDark=color; } else if(document.f1.select_target.value=="text"){ for(i=1;i<25;i++){ eval("document.all.text"+i+".style.color=color"); } } else if(document.f1.select_target.value=="pagebg"){ document.all.bg.bgColor=color; }}function checkclr(t){ document.f1.select_target.value=t; eval("tc=document.f1."+t+"color.value"); if((tc.length>0)&&(tc.length<6)){ alert("请输入6位16进制数"); eval("document.f1."+t+"color.select()"); } else{ changeclr(eval("document.f1."+t+"color.value")); }}function resetit(){ for(ii=0;ii<def_color.length;ii+=2){ document.f1.select_target.value=def_color[ii]; changeclr(def_color[ii+1]); }}function shutit(){ if(clr_win_loaded==1) clr_win_handle.close();}//--></SCRIPT></head><body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="5" topmargin="0" marginwidth="5" marginheight="0" onUnload="shutit()"><table border=0 cellpadding=0 cellspacing=0 width="100%"> <tbody> <tr> <td colspan="3"><?include("setup/pg_head.php");?> </td> </tr> <tr> <td bgcolor=#6699FF height=8 valign=top width="20%"> </td> <td bgcolor=#6699FF height=8 colspan="2"><font color=#ffffff>第三步:选择式样</font></td> </tr> <tr> <td background=table_bg.gif height="380" width="20%" valign="top"><?MakeMenu(-2);?> </td> <td align=middle colspan=2 height=376> <form action=register_final.php method=post name=f1 align="top"> <input name=select_target type=hidden> <input name=email type=hidden value=<?echo $email;?>> <input name=name type=hidden value=<?echo $name;?>> <input name=passwd type=hidden value=<?echo $passwd;?>> <input name=id type=hidden value=<?echo $userinfo->id;?>> <div align=center> <table border=1 bordercolordark=#ffffff bordercolorlight=#000000 cellpadding=2 cellspacing=0 width=300> <tbody> <?/*for($i=0;$i<sizeof($GLOBALS["LINKS_BGCOLOR"]);$i++){ if(($i)%8==0){ echo "<tr>\n"; } echo "<td bgcolor=#".$GLOBALS["LINKS_BGCOLOR"][$i]." onClick=\"selectclr('".$GLOBALS["LINKS_BGCOLOR"][$i]."')\"> </td>\n"; if(($i)%8==7){ echo "</tr>\n"; }}*/?> </tbody> </table> </div> <table width="95%" align="center"> <tr> <td width="130" valign="top"><font color="#000000" ><b><br> ☆交换链式样<br> <br> </b><font color="#009900">请从右列三个式样中选择一个符合你页面布局的式样</font></font></td> <td width="5"> </td> <td valign="top"> <table id="bg" width="100%"> <tr> <td colspan="2" valign="top"> <table width="468" align="center"> <tr> <td><font color=#c60000>式样一: </font> <input CHECKED name=type type=radio value=1> </td> </tr> </table> <table width="468" align="center"> <tr> <td width="100"> <?echo "<a href=\"".$LINKS_URL."\">".$LINKS_NAME."</a> -".($userinfo->counter+1);?> </td> <td width="368"> <?echo $LINKS_ADS;?> </td> </tr> </table> <table id="table1" width="468" bordercolorlight="6699ff" bordercolordark="ffffff" border="1" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <table width="100%" cellspacing="0"> <tbody> <?for($i=0;$i<sizeof($out);){ if($i%4==0) echo "<tr align=\"center\">\n"; echo "<td align=center nowrap width=17%>\n"; echo "<a href=\"".$LINKS_URL."click.php?from=".$id."&to=".$out[$i]->id."\" style=\"font-size: 9pt;color:#000000;text-decoration: none;\" title=\"".$out[$i]->siteintro."|URL:".$out[$i]->siteurl."\" target=_blank id=\"text".($i+1)."\">".$out[$i]->sitename."</a>\n"; echo "</td>\n"; $i++; if($i%4==0) echo "</tr>\n";}?> </tbody> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top"> <table width="100" align="center"> <tr> <td><font color=#c60000>式样二:</font> <input name=type type=radio value=2> </td> </tr> </table> <font color=#009900></font> <table width="100" align="center"> <tr> <td> <?echo "<a href=\"".$LINKS_URL."\">".$LINKS_NAME."</a> -".($userinfo->counter+1);?> </td> </tr> </table> <table id="table2" border=1 bordercolordark=#ffffff bordercolorlight=#6699ff cellspacing=0 width=100 align="center"> <tbody> <tr> <td> <table width="100%"> <tr align=center> <td> <?echo $LINKS_ADS;?> </td> </tr> <tbody> <?for($i=0;$i<sizeof($out);$i++){ echo "<tr align=\"center\">\n"; echo "<td align=center nowrap width=17%>\n"; echo "<a href=\"".$LINKS_URL."click.php?from=".$id."&to=".$out[$i]->id."\" style=\"font-size: 9pt;color:#000000;text-decoration: none;\" title=\"".$out[$i]->siteintro."|URL:".$out[$i]->siteurl."\" target=_blank id=\"text".($i+9)."\">".$out[$i]->sitename."</a>\n"; echo "</td>\n"; echo "</tr>\n";}?> </tbody> </table> </td> </tr> </tbody> </table> </td> <td valign="top"> <p><font color=#c60000> </font> <table width="200" align="center"> <tr> <td><font color=#c60000>式样三:</font> <input name=type type=radio value=3> </td> </tr> </table> <table width="200" align="center"> <tr> <td width="100"> <?echo "<a href=\"".$LINKS_URL."\">".$LINKS_NAME."</a> -".($userinfo->counter+1);?> </td> <td width="100"> <?echo $LINKS_ADS;?> </td> </tr> </table> <table id="table3" border=1 bordercolordark=#ffffff bordercolorlight=#6699ff cellspacing=0 width=200 align="center"> <tbody> <tr> <td> <table width="100%"> <tbody> <?for($i=0;$i<sizeof($out);){ if($i%2==0) echo "<tr align=\"center\">\n"; echo "<td align=center nowrap width=17%>\n"; echo "<a href=\"".$LINKS_URL."click.php?from=".$id."&to=".$out[$i]->id."\" style=\"font-size: 9pt;color:#000000;text-decoration: none;\" title=\"".$out[$i]->siteintro."|URL:".$out[$i]->siteurl."\" target=_blank id=\"text".($i+17)."\">".$out[$i]->sitename."</a>\n"; echo "</td>\n"; $i++; if($i%2==0) echo "</tr>\n";}?> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </table> </td> </tr> <tr> <td width="130"> </td> <td width="5"> </td> <td> </td> </tr> <tr> <td width="130" valign="top"><font color="#000000" ><b>☆交换链颜色</b></font><b><font color=#000000><br> </font></b><font color=#000000><br> <font color="#009900">你可在文本框中直接输入以6位16进制数表示的颜色值,也可以单击文本框左侧的表征性文字来启动风神智能调色板进行配色</font></font></td> <td width="5"> </td> <td valign="top"> <table align="center"> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('pagebg')">页面背景</span></td> <td> <input name=pagebgcolor onBlur=checkclr("pagebg") maxlength="6" size="6" value="ffffff"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('text')">表格文字</span></td> <td> <input name=textcolor onBlur=checkclr("text") maxlength="6" size="6" value="000000"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('lborder')">亮 边 框</span></td> <td> <input name=lbordercolor onBlur=checkclr("lborder") maxlength="6" size="6" value="6699ff"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('dborder')">暗 边 框</span></td> <td> <input name=dbordercolor onBlur=checkclr("dborder") maxlength="6" size="6" value="ffffff"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('bg')">表格背景</span></td> <td> <input name=bgcolor onBlur=checkclr("bg") maxlength="6" size="6"> </td> </tr> </table> </td> </tr> <tr> <td colspan="3" align="center"> </td> </tr> <tr> <td colspan="3" align="center"> <input name=button2 onClick=javascript:window.history.back(); type=button value=返回> <input name=submit2 type=submit value=确定> <input name=reset onClick=resetit(); type=reset value=恢复默认值> </td> </tr> </table> </form> </td> </tr> <tr> <td colspan="3"> <?include("setup/pg_foot.php");?> </td> </tr> </tbody></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -