Register for your free account! | Forgot your password?

You last visited: Today at 15:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



reg page vsro

Discussion on reg page vsro within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 32
Received Thanks: 1
reg page vsro

help me I want to webpage for register vsro
focus2525 is offline  
Old 09/16/2011, 12:52   #2
 
resale96's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 200
Received Thanks: 46
PHP Code:
<?php
/* Simple registration page for silkroad server, by Chernobyl
 * Settings are at _inc/config.php
 * If you get an mssql connection error, while defining totally correct data
 * Just use older ntwdblib.dll for your webserver
*/
require_once('_inc/security.class.php');
require_once(
'_inc/config.php');

if(!isset(
$_POST['submit']))
    {
        echo 
"<table border='1'>
        <form method='post'>
        <td>Username</td><td><input type='text' name='username' maxlength='16'></td><tr/>
        <td>Password[1]</td><td><input type='password' name='pw1' maxlength='32'></td><tr/>
        <td>Password[2]</td><td><input type='password' name='pw2' maxlength='32'></td><tr/>
        <td></td><td><input type='submit' name='submit' value='Register'></td>
        </form>
                </table>"
;
    }
    else
    {
        if(
strlen($_POST['username']) < 3$msg[] = "Username too short";
        if(
strlen($_POST['username']) > 16)$msg[] = "Username too long";
        if(
strlen($_POST['pw1']) < 6$msg[] = "Password [1] too short";
        if(
strlen($_POST['pw1']) > 32)$msg[] = "Password [1] too long";
        if(
strlen($_POST['pw2']) < 6$msg[] = "Password [2] too short";
        if(
strlen($_POST['pw']) > 32$msg[] = "Password [2] too long";
        if(
$_POST['pw1'] != $_POST['pw2']) $msg[] = "Passwords are not the same";
        
            
$sec = new security();
            
            if(
$sec->is_secure($_POST['username']) == false$msg[] = "Username contains forbidden symbols";
            if(
$sec->is_secure($_POST['pw1']) == false$msg[] = "Password [1] contains forbidden symbols";
            if(
$sec->is_secure($_POST['pw2']) == false$msg[] = "Password [2] contains forbidden symbols";
            
            if(
count($msg) > 0)
                {
                    for(
$i 0$i count($msg); $i++)
                        {
                            echo 
$msg[$i]."<br/>";
                        }
                        return;
                }
                else
                    {
                        
//checking damn mssql stuff
                        
$accountExists mssql_num_rows(mssql_query("select StrUserID from TB_User where StrUserID='$_POST[username]'"));
                            if(
$accountExists 0) echo "Account with such username already exists<br/>";
                                else
                                {
                                    
$pwd md5($_POST['pw1']);
                                    
mssql_query("insert into TB_User(StrUserID,password,sec_primary,sec_secondary) values('$_POST[username]','$pwd','3','3')");
                                        echo 
"Account successfully created<br/>";
                                }
                    }
        
    
    }
resale96 is offline  
Thanks
1 User
Old 09/16/2011, 12:57   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 12
Received Thanks: 0
please share all web reg
cogiakk1 is offline  
Old 09/16/2011, 13:09   #4
 
KamikadZee's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 663
Received Thanks: 233
Well if u don't know even what to do with code that
resale96
given you ;D don't even bother with server files
KamikadZee is offline  
Old 09/16/2011, 13:28   #5
 
elite*gold: 0
Join Date: May 2010
Posts: 110
Received Thanks: 34
Quote:
Originally Posted by resale96 View Post
PHP Code:
<?php
/* Simple registration page for silkroad server, by Chernobyl
 * Settings are at _inc/config.php
 * If you get an mssql connection error, while defining totally correct data
 * Just use older ntwdblib.dll for your webserver
*/
require_once('_inc/security.class.php');
require_once(
'_inc/config.php');

if(!isset(
$_POST['submit']))
    {
        echo 
"<table border='1'>
        <form method='post'>
        <td>Username</td><td><input type='text' name='username' maxlength='16'></td><tr/>
        <td>Password[1]</td><td><input type='password' name='pw1' maxlength='32'></td><tr/>
        <td>Password[2]</td><td><input type='password' name='pw2' maxlength='32'></td><tr/>
        <td></td><td><input type='submit' name='submit' value='Register'></td>
        </form>
                </table>"
;
    }
    else
    {
        if(
strlen($_POST['username']) < 3$msg[] = "Username too short";
        if(
strlen($_POST['username']) > 16)$msg[] = "Username too long";
        if(
strlen($_POST['pw1']) < 6$msg[] = "Password [1] too short";
        if(
strlen($_POST['pw1']) > 32)$msg[] = "Password [1] too long";
        if(
strlen($_POST['pw2']) < 6$msg[] = "Password [2] too short";
        if(
strlen($_POST['pw']) > 32$msg[] = "Password [2] too long";
        if(
$_POST['pw1'] != $_POST['pw2']) $msg[] = "Passwords are not the same";
        
            
$sec = new security();
            
            if(
$sec->is_secure($_POST['username']) == false$msg[] = "Username contains forbidden symbols";
            if(
$sec->is_secure($_POST['pw1']) == false$msg[] = "Password [1] contains forbidden symbols";
            if(
$sec->is_secure($_POST['pw2']) == false$msg[] = "Password [2] contains forbidden symbols";
            
            if(
count($msg) > 0)
                {
                    for(
$i 0$i count($msg); $i++)
                        {
                            echo 
$msg[$i]."<br/>";
                        }
                        return;
                }
                else
                    {
                        
//checking damn mssql stuff
                        
$accountExists mssql_num_rows(mssql_query("select StrUserID from TB_User where StrUserID='$_POST[username]'"));
                            if(
$accountExists 0) echo "Account with such username already exists<br/>";
                                else
                                {
                                    
$pwd md5($_POST['pw1']);
                                    
mssql_query("insert into TB_User(StrUserID,password,sec_primary,sec_secondary) values('$_POST[username]','$pwd','3','3')");
                                        echo 
"Account successfully created<br/>";
                                }
                    }
        
    
    }

U missed config.php and security.class.php
deadpirate is offline  
Old 09/25/2011, 19:59   #6
 
schmidy1991's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 139
Received Thanks: 10
how to make page for IIS ?
schmidy1991 is offline  
Old 09/25/2011, 20:00   #7
 
elite*gold: 0
Join Date: Jan 2010
Posts: 149
Received Thanks: 27

download from here
change IIS port to 8080
and install apache make with port 80
bahaa12 is offline  
Old 09/25/2011, 20:39   #8
 
elite*gold: 0
Join Date: Nov 2007
Posts: 34
Received Thanks: 1
This needs to be explained a little better from you guys. Half the time people can't get the .ddl files to work regardless of what folder you put them in. Maybe we should be making a .asp page might be more easier to connect to the database. A guide with pictures would work nicely if anyone is up to the challenge.
r3viv3d is offline  
Old 09/25/2011, 20:40   #9
 
schmidy1991's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 139
Received Thanks: 10
yes this would be very nice! -.-^^
schmidy1991 is offline  
Reply


Similar Threads Similar Threads
need reg page for vsro files
09/12/2011 - SRO Private Server - 4 Replies
need reg page for vsro files can eny body make one or upload any one please :handsdown::handsdown::handsdown:



All times are GMT +1. The time now is 15:45.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.