马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#3060a0 border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle width=589 bgColor=#4e4e4e height=25><FONT color=#ffffff><B>在线实时开通WEB及FTP源程序</B></FONT></TD></TR>
<TR>
<TD vAlign=center align=middle height=38><FONT color=#ffffff>作者:骆驼王子(转) 来源:开发者俱乐部 加入时间:2002-12-12 蓝宝石软件站</FONT> </TD></TR>
<TR>
<TD vAlign=top height=48><FONT color=#ffffff>程序利用FSO+SERV-U(2.x版本)实现:<BR>1、注册文件index.htm<BR><html><BR><head><BR><title>宁波科宇网——个人网页申请</title><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR><script language="Javascript"><BR>function CheckIfEnglish( String )<BR>{ <BR>var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-";<BR>var i;<BR>var c;<BR>if(String.charAt( 0 )==''-'')<BR>return false;<BR>if( String.charAt( String.length - 1 ) == ''-'' )<BR>return false;<BR>for( i = 0; i < String.length; i ++ )<BR>{<BR>c = String.charAt( i );<BR>if (Letters.indexOf( c ) < 0)<BR>return false;<BR>}<BR>return true;<BR>}<BR><BR>function checkSubmit() {<BR>var EmailReg = /^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/;<BR>if (document.form.name.value == "") {<BR>alert("请输入您要注册的用户名!");<BR>document.form.name.focus();<BR>return false;<BR>}<BR><BR>if (!CheckIfEnglish(document.form.name.value )) {<BR>alert("用户名不能输入中文及非法字符!");<BR>document.form.name.focus();<BR>return false;<BR>}<BR><BR>if ((document.form.pass.value == "")&&(document.form.rpass.value == "")) {<BR>alert("密码不能为空!");<BR>document.form.pass.focus();<BR>document.form.rpass.focus();<BR>return false;<BR>}<BR><BR>if ((document.form.pass.value)!=(document.form.rpass.value)) {<BR>alert (''二次密码输入不一样!'');<BR>document.form.pass.focus();<BR>document.form.rpass.focus();<BR>return false;<BR>}<BR><BR>if (document.form.email.value == "") {<BR>alert("请输入您的Email!");<BR>document.form.email.focus();<BR>return false;<BR>}<BR><BR>if ((!EmailReg.test(document.form.email.value))&&(document.form.email.value!='''')) {<BR>alert (''Email的格式不正确!'');<BR>document.form.email.focus();<BR>return false;<BR>}<BR><BR>return true;<BR>}<BR></script><BR><BR><script language="JavaScript"><BR><!--<BR>function MM_reloadPage(init) { //reloads the window if Nav4 resized<BR>if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {<BR>document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}<BR>else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();<BR>}<BR>MM_reloadPage(true);<BR>// --><BR></script><BR></head><BR><body bgcolor="#FFFFFF" text="#000000" background="crystal.jpg"><BR><p align="center"> </p><BR><p align="center"><b><font size="6" color="#333333">宁波科宇网——个人网页申请</font></b></p><BR><p align="center"></p><BR><table width="65%" border="0" align="center"><BR><tr><BR><td><BR><form name="form" method="post" action="page.asp"><BR><p><b>用户名称:</b> <BR><input type="text" name="name" size="10" class="form"> <BR>* <BR><BR>注意:用户名只能由英文字母(a-z、A-Z),数字(0-9)构成,不能有空格。<BR><BR><b>密 码:</b> <BR><input type="password" name="pass" size="10" class="form"> <BR>*</p> <BR><p><b>确认密码:</b> <BR><input type="password" name="rpass" size="10" class="form"> <BR>*(确认上面的密码)</p> <BR><p><b>您的MAIL:</b> <BR><input type="text" name="email" size="20" class="form">*(请正确填写) <BR></p> <BR><p> <BR><input type="submit" name="Submit" value="提交" onClick ="java script:return checkSubmit()"> <BR><input type="reset" name="Submit2" value="重写"> <BR><BR><BR>其中*号项目为必填项目!</p> <BR></form> <BR></td> <BR></tr> <BR></table> <BR><p align="center"><font color="#FF0000">注意:本空间可以安装BBS论坛,严格禁止江湖、聊天室等严重占用资源的程序运行。<BR><BR>一经发现,删除全部程序及FTP帐号,并不于通知!</font></p> <BR><p align="center"> </p> <BR><p align="center">-==<a href="mailto:support@4email.vicp.net">宁波科宇网</a>==-<BR><BR>CopyRight By KeYu Computer WorkRoom 2001-2002</p><BR></body> <BR></html> <BR><BR>2、后台控制文件page.asp<BR><html><BR><head><BR><title>Untitled Document</title><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR></head><BR><body bgcolor="#FFFFFF" text="#000000"><BR><%vname=request("name")<BR>vpass=request("pass")<BR>vrpass=request("rpass")<BR>vemail=request("email")<BR>%><BR><%<BR>if request.form("name")="" then <BR>response.write "错误提示:请输入用户名!"<BR>response.end<BR>end if<BR>if request.form("pass")="" then <BR>response.write "错误提示:请输入口令!"<BR>response.end<BR>end if<BR>if request.form("pass")<>request.form("rpass") then <BR>response.write "错误提示:两次口令不相符!"<BR>response.end<BR>end if<BR>if request.form("email")="" then <BR>response.write "错误提示:必须输入你的正确EMAIL!"<BR>response.end<BR>end if<BR>%><BR><%set myconn=server.createobject("ADODB.CONNECTION")<BR>dbpath=server.mappath("db.mdb")<BR>myconn.open "driver={Microsoft access driver (*.mdb)};dbq="&dbpath<BR>SQL="select * from hostname where 用户名=''"&vname&"''"<BR>set list=myconn.execute(sql)<BR>%><BR><% if list.eof then%><BR><%<BR>set rs=server.createobject("ADODB.RecordSet")<BR>rs.Open "hostname", myconn, adOpenDynamic, 3<BR>rs.addnew<BR>rs("用户名")=vname<BR>rs("密码")=vpass<BR>rs("邮箱")=vemail<BR>rs.update<BR>rs.close<BR><BR>Set myfileobject=server.createobject("scripting.filesystemobject")<BR>myfileobject.createfolder("e:\club\"&vname)<BR>set afile=myfileobject.getfile("e:\club\person.htm")<BR>afile.copy "e:\club\"&vname&"\index.htm"<BR><BR>set afile=myfileobject.getfile("e:\club\line113.gif")<BR>afile.copy "e:\club\"&vname&"\line113.gif"<BR><BR>set afile=myfileobject.getfile("e:\club\bg11.gif")<BR>afile.copy "e:\club\"&vname&"\bg11.gif"<BR><BR>set afile=myfileobject.getfile("e:\club\c24.gif")<BR>afile.copy "e:\club\"&vname&"\c24.gif"<BR><BR>set mytextfile=myfileobject.opentextfile("C:\Program Files\serv-u\Serv-u.ini",8)<BR>mytextfile.writeline("[USER="&vname&"]")<BR>mytextfile.writeline("password="&vpass)<BR>mytextfile.writeline("HomeDir=e:\club\"&vname)<BR>mytextfile.writeline("RelPaths=YES")<BR>mytextfile.writeline("ChangePassword=YES")<BR>mytextfile.writeline("SpeedLimit=20480")<BR>mytextfile.writeline("QuotaEnable=YES")<BR>mytextfile.writeline("QuotaMaxCurrent=20971520,0")<BR>mytextfile.writeline("TimeOut=600")<BR>mytextfile.writeline("Access1=e:\club\"&vname&",RWAMCDLP")<BR>Response.Redirect "welcome.htm"<BR>response.end<BR>%><BR><%else%> <BR><center>对不起,您的用户名<%=vname%>已被他人所用,请您换一个用户名申请<><a href="./">返回申请页面</a></p></center> <BR><%end if%><BR></body><BR></html><BR><BR>3、注册成功页面welcome.htm<BR><html><BR><head><BR><title>OK</title><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR></head><BR><BR><body bgcolor="#FFFFFF" text="#000000" background="bg14.jpg"><BR><p align="center"><b><font color="#FF0000" size="7">恭喜您</font></b></p><BR><p align="center"><img border="0" src="line761.gif" width="560" height="18"></p><BR><p align="center"></p><BR><p align="center">您已成功地申请了自己的个人主页</p><BR><p></p><table width="451" border="0" align="center"><BR><tr> <BR><td width="443"><b>请您阅读以下注意事项:</b></td><BR></tr><BR><tr> <BR><td width="443">1、您的主页空间是20M,支持ASP,暂不支持CGI,请您及时上传您的主页,超过三周不上传者,我们将删除您的帐号!</td><BR></tr><BR><tr> <BR><td width="443">2、本站支持FTP登录、支持断点续传,可以用各种FTP工具来上传您的文件。</td><BR></tr><BR><tr><BR><td width="443">3、本站个人主页的FTP地址为<b><font color="#FF0000">cn4e.vicp.net</font></b></td><BR></tr><BR><tr><BR><td width="443">4、访问路径是<b><font color="#FF0000">http://cn4e.vicp.net/您的用户名</font></b></td><BR></tr><BR><tr><BR><td width="443">5、如有任何疑问,请致信<a href="mailto:support@4email.vicp.net">support@4email.vicp.net</a></td><BR></tr><BR></table><BR><p align="center"><a href="http://www.kydn.com">宁波科宇网</a><BR><BR><p align="center"><a href="/">返回首页</a></p><BR><p align="center"><img src="line738.gif" width="500" height="24"></p><BR><p align="center"></p><BR></body><BR></html><BR><BR>4、默认首页文件person.htm<BR><html><BR><head><BR><title>个人网站</title><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR></head><BR><BR><body bgcolor="#FFFFFF" text="#000000" background="bg11.gif"><BR><p align="center"> </p><BR><p align="center"><b><font size="6">个人网页</font></b></p><BR><p align="center"><img border="0" src="c24.gif" width="96" height="66"></p><BR><p align="center">正在施工中。。。。。</p><BR><p align="center"><img border="0" src="line113.gif" width="420" height="11"></p><BR><p align="center">-==<a href="http://www.kydn.com">宁波科宇网</a>==-<BR><BR>CopyRight By KeYu Computer WorkRoom 2001-2002</p><BR></body><BR></html><BR><BR>5、完整图片、数据库、ASP、HTM文件包下载:<BR>http://cn4e.vicp.net/bbs/uploadImag...12195174006.zip<BR><BR>6、serv-u 2.5k 免安装已注册版下载:<BR>http://club.yydns.com/soft/ServU25k.zip<BR><BR>7、注意:serv-u默认安装位置为C:\Program Files\serv-u,虚拟站点目录位置为:e:/club,请根据各自情况进行修改。<BR><BR>8、演示:http://cn4e.vicp.net/host <IMG height=1 src="http://soft.bluejewel.net/down_info.asp?id=41" width=1 border=0><BR></FONT></TD></TR></TBODY></TABLE> |