Register for your free account! | Forgot your password?

You last visited: Today at 12:14

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

Advertisement



Problem, As Make Reg

Discussion on Problem, As Make Reg within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 9
Received Thanks: 0
Problem, As Make Reg

Hi somebody can Describe exactly as make reg for vsro have code php but something it does not want to connect with base. We do not know problem. Be in that.
So, if they were write or give`s links for tutorial but I would be thankful such exact. Thx
ulan222 is offline  
Old 11/02/2011, 15:29   #2
 
badibatu22's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
you have to enable mssql connection for php
badibatu22 is offline  
Old 11/02/2011, 16:02   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 9
Received Thanks: 0
how to do it ???
ulan222 is offline  
Old 11/02/2011, 16:04   #4
 
badibatu22's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
Quote:
Originally Posted by ulan222 View Post
how to do it ???
badibatu22 is offline  
Old 11/02/2011, 16:42   #5
 
elite*gold: 0
Join Date: Sep 2009
Posts: 9
Received Thanks: 0
can you write me as Make exactly that reg
ulan222 is offline  
Old 11/02/2011, 16:55   #6
 
elite*gold: 0
Join Date: Nov 2011
Posts: 93
Received Thanks: 16
Quote:
Originally Posted by badibatu22 View Post
Do you have brains?
Avalance Danger is offline  
Thanks
1 User
Old 11/02/2011, 16:57   #7
 
badibatu22's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
Quote:
Originally Posted by Avalance Danger View Post
Do you have brains?
no i have just 1 brain its enough for me thanks for asking
badibatu22 is offline  
Thanks
1 User
Old 11/02/2011, 21:04   #8
 
elite*gold: 0
Join Date: Jun 2011
Posts: 802
Received Thanks: 396
Here is the php code
Quote:
<?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_seconda ry) values('$_POST[username]','$pwd','3','3')");
echo "Account successfully created<br/>";
}
}


}
H34D_B4NG3R is offline  
Old 11/08/2011, 23:43   #9
 
elite*gold: 0
Join Date: Nov 2011
Posts: 93
Received Thanks: 16
Quote:
Originally Posted by H34D_B4NG3R View Post
Here is the php code
I'm using xampp,
is there any solution for this:
Code:
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\_inc\config.php on line 9
Avalance Danger is offline  
Old 11/08/2011, 23:46   #10
 
OutlawNL's Avatar
 
elite*gold: 125
Join Date: Aug 2011
Posts: 4,393
Received Thanks: 4,353
Quote:
Originally Posted by Avalance Danger View Post
I'm using xampp,
is there any solution for this:
Code:
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\_inc\config.php on line 9
Yup delete your server.
OutlawNL is offline  
Thanks
1 User
Old 11/10/2011, 00:24   #11
 
elite*gold: 0
Join Date: Nov 2011
Posts: 93
Received Thanks: 16
Quote:
Originally Posted by OutlawNL View Post
Yup delete your server.
Any other solution?
Avalance Danger is offline  
Reply


Similar Threads Similar Threads
./make.py / make.sh - Problem. ;o
06/30/2011 - Metin2 Private Server - 4 Replies
Hallöchen, ich bin gerade auf ein neues Problem gestoßen. Wenn ich die make.py ausführe (ich gebe python make.py ein) dann kommt folgendes; Bus error (core dumped) Error occured on compile arena_manager.quest Da muss irgendwas an der arena_manager.quest falsch sein,
Make.sh problem .
10/14/2010 - Metin2 Private Server - 3 Replies
Guten Abend liebe Com. Hab da kleines Problem mit Virtual PC wenn ich Make.sh ausführe . Also folgendes : Ich führe Normal Make.sh aus , und dann kommt das etwa 20 mal : make.sh: ./qc: Permission denied
Problem mit make /make.sh core segmentation fault core dumped Bitte hilfe
09/09/2010 - Metin2 Private Server - 8 Replies
Hey Hab n kleines Problem, wenn ich make mache um die Quests übernehmen zu lassen kommt folgender fehler: http://www.abload.de/img/fehlerservery5fp.jpg Was kann ich tun? LG Saaja
Problem when make an NPC
06/19/2010 - CO2 Private Server - 9 Replies
hello everyone, I have a problem when i make NPCs I use this code : #region npcname case 987787: { if (Control == 0 && GC.MyChar.Inventory.Count <= 39) { GC.AddSend(Packets.NPCSay("Would you like a free item")); GC.AddSend(Packets.NPCLink("Yes.", 2));



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.