• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    在線實時開通WEB及FTP源程序

    發布: 2007-7-14 19:37 | 作者: 佚名    | 來源: 網絡轉載     | 查看: 23次 | 進入軟件測試論壇討論

    領測軟件測試網 程序利用FSO+SERV-U(2.x版本)實現:
    1、注冊文件index.htm
    <html>
    <head>
    <title>寧波科宇網——個人網頁申請</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="Javascript">
    function CheckIfEnglish( String )
    {
    var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-";
    var i;
    var c;
    if(String.charAt( 0 )==''-'')
    return false;
    if( String.charAt( String.length - 1 ) == ''-'' )
    return false;
    for( i = 0; i < String.length; i ++ )
    {
    c = String.charAt( i );
    if (Letters.indexOf( c ) < 0)
    return false;
    }
    return true;
    }

    function checkSubmit() {
    var EmailReg = /^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/;
    if (document.form.name.value == "") {
    alert("請輸入您要注冊的用戶名!");
    document.form.name.focus();
    return false;
    }

    if (!CheckIfEnglish(document.form.name.value )) {
    alert("用戶名不能輸入中文及非法字符!");
    document.form.name.focus();
    return false;
    }

    if ((document.form.pass.value == "")&&(document.form.rpass.value == "")) {
    alert("密碼不能為空!");
    document.form.pass.focus();
    document.form.rpass.focus();
    return false;
    }

    if ((document.form.pass.value)!=(document.form.rpass.value)) {
    alert (''二次密碼輸入不一樣!'');
    document.form.pass.focus();
    document.form.rpass.focus();
    return false;
    }

    if (document.form.email.value == "") {
    alert("請輸入您的Email!");
    document.form.email.focus();
    return false;
    }

    if ((!EmailReg.test(document.form.email.value))&&(document.form.email.value!='''')) {
    alert (''Email的格式不正確!'');
    document.form.email.focus();
    return false;
    }

    return true;
    }
    </script>

    <script language="JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    // -->
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000" background="crystal.jpg">
    <p align="center"> </p>
    <p align="center"><b><font size="6" color="#333333">寧波科宇網——個人網頁申請</font></b></p>
    <p align="center"></p>
    <table width="65%" border="0" align="center">
    <tr>
    <td>
    <form name="form" method="post" action="page.asp">
    <p><b>用戶名稱:</b>
    <input type="text" name="name" size="10" class="form">
    *

    注意:用戶名只能由英文字母(a-z、A-Z),數字(0-9)構成,不能有空格。

    <b>密  碼:</b>
    <input type="password" name="pass" size="10" class="form">
    *</p>
    <p><b>確認密碼:</b>
    <input type="password" name="rpass" size="10" class="form">
    *(確認上面的密碼)</p>
    <p><b>您的MAIL:</b>
    <input type="text" name="email" size="20" class="form">*(請正確填寫)
    </p>
    <p>
    <input type="submit" name="Submit" value="提交" onClick ="java script:return checkSubmit()">
    <input type="reset" name="Submit2" value="重寫">


    其中*號項目為必填項目!</p>
    </form>
    </td>
    </tr>
    </table>
    <p align="center"><font color="#FF0000">注意:本空間可以安裝BBS論壇,嚴格禁止江湖、聊天室等嚴重占用資源的程序運行。

    一經發現,刪除全部程序及FTP帳號,并不于通知!</font></p>
    <p align="center"> </p>
    <p align="center">-==<a href="mailto:support@4email.vicp.net">寧波科宇網</a>==-

    CopyRight By KeYu Computer WorkRoom 2001-2002</p>
    </body>
    </html>

    2、后臺控制文件page.asp
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <%vname=request("name")
    vpass=request("pass")
    vrpass=request("rpass")
    vemail=request("email")
    %>
    <%
    if request.form("name")="" then
    response.write "錯誤提示:請輸入用戶名!"
    response.end
    end if
    if request.form("pass")="" then
    response.write "錯誤提示:請輸入口令!"
    response.end
    end if
    if request.form("pass")<>request.form("rpass") then
    response.write "錯誤提示:兩次口令不相符!"
    response.end
    end if
    if request.form("email")="" then
    response.write "錯誤提示:必須輸入你的正確EMAIL!"
    response.end
    end if
    %>
    <%set myconn=server.createobject("ADODB.CONNECTION")
    dbpath=server.mappath("db.mdb")
    myconn.open "driver={Microsoft access driver (*.mdb)};dbq="&dbpath
    SQL="select * from hostname where 用戶名=''"&vname&"''"
    set list=myconn.execute(sql)
    %>
    <% if list.eof then%>
    <%
    set rs=server.createobject("ADODB.RecordSet")
    rs.Open "hostname", myconn, adOpenDynamic, 3
    rs.addnew
    rs("用戶名")=vname
    rs("密碼")=vpass
    rs("郵箱")=vemail
    rs.update
    rs.close

    Set myfileobject=server.createobject("scripting.filesystemobject")
    myfileobject.createfolder("e:\club\"&vname)
    set afile=myfileobject.getfile("e:\club\person.htm")
    afile.copy "e:\club\"&vname&"\index.htm"

    set afile=myfileobject.getfile("e:\club\line113.gif")
    afile.copy "e:\club\"&vname&"\line113.gif"

    set afile=myfileobject.getfile("e:\club\bg11.gif")
    afile.copy "e:\club\"&vname&"\bg11.gif"

    set afile=myfileobject.getfile("e:\club\c24.gif")
    afile.copy "e:\club\"&vname&"\c24.gif"

    set mytextfile=myfileobject.opentextfile("C:\Program Files\serv-u\Serv-u.ini",8)
    mytextfile.writeline("[USER="&vname&"]")
    mytextfile.writeline("password="&vpass)
    mytextfile.writeline("HomeDir=e:\club\"&vname)
    mytextfile.writeline("RelPaths=YES")
    mytextfile.writeline("ChangePassword=YES")
    mytextfile.writeline("SpeedLimit=20480")
    mytextfile.writeline("QuotaEnable=YES")
    mytextfile.writeline("QuotaMaxCurrent=20971520,0")
    mytextfile.writeline("TimeOut=600")
    mytextfile.writeline("Access1=e:\club\"&vname&",RWAMCDLP")
    Response.Redirect "welcome.htm"
    response.end
    %>
    <%else%>
    <center>對不起,您的用戶名<%=vname%>已被他人所用,請您換一個用戶名申請<P><a href="./">返回申請頁面</a></p></center>
    <%end if%>
    </body>
    </html>

    3、注冊成功頁面welcome.htm
    <html>
    <head>
    <title>OK</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>

    <body bgcolor="#FFFFFF" text="#000000" background="bg14.jpg">
    <p align="center"><b><font color="#FF0000" size="7">恭喜您</font></b></p>
    <p align="center"><img border="0" src="/Files/BeyondPic/2005-12/8/0512808422220746.gif" width="560" height="18"></p>
    <p align="center"></p>
    <p align="center">您已成功地申請了自己的個人主頁</p>
    <p></p><table width="451" border="0" align="center">
    <tr>
    <td width="443"><b>請您閱讀以下注意事項:</b></td>
    </tr>
    <tr>
    <td width="443">1、您的主頁空間是20M,支持ASP,暫不支持CGI,請您及時上傳您的主頁,超過三周不上傳者,我們將刪除您的帳號!</td>
    </tr>
    <tr>
    <td width="443">2、本站支持FTP登錄、支持斷點續傳,可以用各種FTP工具來上傳您的文件。</td>
    </tr>
    <tr>
    <td width="443">3、本站個人主頁的FTP地址為<b><font color="#FF0000">cn4e.vicp.net</font></b></td>
    </tr>
    <tr>
    <td width="443">4、訪問路徑是<b><font color="#FF0000">http://cn4e.vicp.net/您的用戶名</font></b></td>
    </tr>
    <tr>
    <td width="443">5、如有任何疑問,請致信<a href="mailto:support@4email.vicp.net">support@4email.vicp.net</a></td>
    </tr>
    </table>
    <p align="center"><a >寧波科宇網</a>

    <p align="center"><a href="/">返回首頁</a></p>
    <p align="center"><img src="/Files/BeyondPic/2005-12/8/0512808422299996.gif" width="500" height="24"></p>
    <p align="center"></p>
    </body>
    </html>

    4、默認首頁文件person.htm
    <html>
    <head>
    <title>個人網站</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>

    <body bgcolor="#FFFFFF" text="#000000" background="bg11.gif">
    <p align="center"> </p>
    <p align="center"><b><font size="6">個人網頁</font></b></p>
    <p align="center"><img border="0" src="/Files/BeyondPic/2005-12/8/0512808422215653.gif" width="96" height="66"></p>
    <p align="center">正在施工中。。。。。</p>
    <p align="center"><img border="0" src="/Files/BeyondPic/2005-12/8/0512808422242711.gif" width="420" height="11"></p>
    <p align="center">-==<a >寧波科宇網</a>==-

    CopyRight By KeYu Computer WorkRoom 2001-2002</p>
    </body>
    </html>

    5、完整圖片、數據庫、ASP、HTM文件包下載:
    http://cn4e.vicp.net/bbs/uploadImag...12195174006.zip

    6、serv-u 2.5k 免安裝已注冊版下載:
    http://club.yydns.com/soft/ServU25k.zip

    7、注意:serv-u默認安裝位置為C:\Program Files\serv-u,虛擬站點目錄位置為:e:/club,請根據各自情況進行修改。

    8、演示:http://cn4e.vicp.net/host


    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>