Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online
You last visited: Today at 23:28

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

Advertisement



Register Page VSRO files

Discussion on Register Page VSRO files within the Silkroad Online forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 19
Received Thanks: 0
Register Page VSRO files

Hello evryone !!!
Ihave problem with register page on my server and thath is the last step before push hem public for fun with people
I have the files for reg but cant start corecly ... if anyone can assist me i will be greatfull to hem and will give items for fun in server
If anyone can or wanna help me pm here ty for time
skorpionabgbg is offline  
Old 08/18/2020, 20:05   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Quote:
Originally Posted by skorpionabgbg View Post
If anyone can or wanna help me pm here ty for time
Why PM. Explaining our problem and solving it publicly will help others in the future.
florian0 is offline  
Thanks
1 User
Old 08/19/2020, 01:03   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 19
Received Thanks: 0
i will post files thath i use for reg page when i set database user and pw and when i try push with xampp i get stack overflow i will upload pictures and php codes later...

There we are i use thath files:
index.php
<?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(is_array($user) == true) $err[] = "Username is array, n00p";
if(is_array($pass1) == true) $err[] = "Pw1 is array, n00p";
if(is_array($pass2) == true) $err[] = "Pw2 is array, n00p";
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_content ) values('$_POST[username]','$pwd','3','3')");
echo "Account successfully created<br/>";
}
}

}
?>

security.class.php

<?php
class security
{
function is_secure($string)
{
$pattern = "#[^a-zA-Z0-9_\-]#";
if(preg_match($pattern,$string)==true)return false;
else
return true;
}
}
?>

config.php

<?php

$cfg['sql_host'] = "\SQLEXPRESS";
$cfg['sql_user'] = "sa";
$cfg['sql_pass'] = "1234";
$cfg['sql_db'] = "SRO_VT_ACCOUNT";


$sqlLink = mssql_connect($cfg[sql_host],$cfg[sql_user],$cfg[sql_pass]);
if(!$sqlLink) die("MSSQL server is not accessable, why should we try to select database ?");
else
{
mssql_select_db($cfg[sql_db],$sqlLink);
}
?>


when i start with xampp i get thath error:


Fatal error: Uncaught Error: Call to undefined function mssql_connect() in C:\xampp\htdocs\register\_inc\config.php:9 Stack trace: #0 C:\xampp\htdocs\register\index.php(8): require_once() #1 {main} thrown in C:\xampp\htdocs\register\_inc\config.php on line 9
anyone know what is this ?
skorpionabgbg is offline  
Old 08/19/2020, 19:30   #4
 
elite*gold: 0
Join Date: Apr 2016
Posts: 201
Received Thanks: 47
Quote:
Originally Posted by skorpionabgbg View Post
i will post files thath i use for reg page when i set database user and pw and when i try push with xampp i get stack overflow i will upload pictures and php codes later...

There we are i use thath files:
index.php
<?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(is_array($user) == true) $err[] = "Username is array, n00p";
if(is_array($pass1) == true) $err[] = "Pw1 is array, n00p";
if(is_array($pass2) == true) $err[] = "Pw2 is array, n00p";
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_content ) values('$_POST[username]','$pwd','3','3')");
echo "Account successfully created<br/>";
}
}

}
?>

security.class.php

<?php
class security
{
function is_secure($string)
{
$pattern = "#[^a-zA-Z0-9_\-]#";
if(preg_match($pattern,$string)==true)return false;
else
return true;
}
}
?>

config.php

<?php

$cfg['sql_host'] = "\SQLEXPRESS";
$cfg['sql_user'] = "sa";
$cfg['sql_pass'] = "1234";
$cfg['sql_db'] = "SRO_VT_ACCOUNT";


$sqlLink = mssql_connect($cfg[sql_host],$cfg[sql_user],$cfg[sql_pass]);
if(!$sqlLink) die("MSSQL server is not accessable, why should we try to select database ?");
else
{
mssql_select_db($cfg[sql_db],$sqlLink);
}
?>


when i start with xampp i get thath error:


Fatal error: Uncaught Error: Call to undefined function mssql_connect() in C:\xampp\htdocs\register\_inc\config.php:9 Stack trace: #0 C:\xampp\htdocs\register\index.php(8): require_once() #1 {main} thrown in C:\xampp\htdocs\register\_inc\config.php on line 9
anyone know what is this ?
Its so ugly... Next time take a screenshot or something like that because that cleaner you know...I guess its missing mssql extension
Piskota is offline  
Old 08/20/2020, 00:30   #5
 
elmagico321's Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 663
Received Thanks: 209
Quote:
Originally Posted by skorpionabgbg View Post

Fatal error: Uncaught Error: Call to undefined function mssql_connect() in C:\xampp\htdocs\register\_inc\config.php:9 Stack trace: #0 C:\xampp\htdocs\register\index.php(8): require_once() #1 {main} thrown in C:\xampp\htdocs\register\_inc\config.php on line 9
anyone know what is this ?


here is a topic you can find what to do
elmagico321 is offline  
Old 08/21/2020, 14:39   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 19
Received Thanks: 0
xmm maybe some module from xampp not start or not accsesable this topic you show me doznt help me ;(
skorpionabgbg is offline  
Old 08/23/2020, 00:11   #7
 
elmagico321's Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 663
Received Thanks: 209
Quote:
Originally Posted by skorpionabgbg View Post
xmm maybe some module from xampp not start or not accsesable this topic you show me doznt help me ;(
then you didn't read it well

so simply you can do 2 things
1st trying to find an old ver of the xamp which working with php 5.5 or older
2nd change the connection type from mysql to mysqli or use the pdo
elmagico321 is offline  
Old 08/25/2020, 11:55   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 19
Received Thanks: 0
ok ty for info i will try thath steps

i install old xamp and try and again get error
Fatal error: Call to undefined function mssqli_connect() in C:\xampp\htdocs\register\_inc\config.php on line 9
xmm..

the wronge code is:
$sqlLink = mssqli_connect($cfg[sql_host],$cfg[sql_user],$cfg[sql_pass]);
skorpionabgbg is offline  
Old 08/25/2020, 23:21   #9
 
elmagico321's Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 663
Received Thanks: 209
Quote:
Originally Posted by skorpionabgbg View Post
ok ty for info i will try thath steps

i install old xamp and try and again get error
Fatal error: Call to undefined function mssqli_connect() in C:\xampp\htdocs\register\_inc\config.php on line 9
xmm..

the wronge code is:
$sqlLink = mssqli_connect($cfg[sql_host],$cfg[sql_user],$cfg[sql_pass]);
just enable the mysqli extension
elmagico321 is offline  
Old 08/26/2020, 01:03   #10
 
elite*gold: 0
Join Date: May 2010
Posts: 19
Received Thanks: 0
haw to do thath ?
skorpionabgbg is offline  
Reply

Tags
110cap, register, silkroad, sro, vsro


Similar Threads Similar Threads
can some1 help me with Web page (reg page) vsro files
05/26/2012 - SRO Private Server - 0 Replies
hello all i need again ur help :) i got a problem on my webpage setings..after all is done i gona start wamp i got this error some 1 know why or how cand i set it? http://epvpimg.com/pL5if epvpImg: A picture is worth a thousand words. :handsdown:
[Request] guild for register page for vsro.
12/23/2011 - SRO Private Server - 5 Replies
Hello epvp. as the header says: I need a litte guide for run a register page on my server. I dont realy know something about php / html etc. Please, just write me guides or tutorials, NOT flame. Thanks.
VSRO Register page.
11/12/2011 - SRO Private Server - 14 Replies
Hello guys i will code register page. What the functions you want to be on it. i will add. username pw pw1 email email1 sex code
Vsro Register Page Problem
10/23/2011 - SRO Private Server - 3 Replies
i spend 1 week to make Register page but i cant this my php.ini http://img841.imageshack.us/img841/2919/74566728. png this my problem http://img854.imageshack.us/img854/5753/30460578. png any help :rolleyes:
Register Page Vsro
10/02/2011 - SRO Private Server - 11 Replies
First:Hello Guys 2:can any one give me Register page For v-sro File but pls i dont need some one say to me ClicK2ChecK &bull; View topic - VSRO Register page. use this register page !! i try to use but its not working ! ty....



All times are GMT +1. The time now is 23:29.


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.