|
You last visited: Today at 12:14
Advertisement
Problem, As Make Reg
Discussion on Problem, As Make Reg within the SRO Private Server forum part of the Silkroad Online category.
11/02/2011, 14:40
|
#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
|
|
|
11/02/2011, 15:29
|
#2
|
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
|
you have to enable mssql connection for php
|
|
|
11/02/2011, 16:02
|
#3
|
elite*gold: 0
Join Date: Sep 2009
Posts: 9
Received Thanks: 0
|
how to do it ???
|
|
|
11/02/2011, 16:04
|
#4
|
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
|
Quote:
Originally Posted by ulan222
how to do it ???
|
|
|
|
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
|
|
|
11/02/2011, 16:55
|
#6
|
elite*gold: 0
Join Date: Nov 2011
Posts: 93
Received Thanks: 16
|
Quote:
Originally Posted by badibatu22
|
Do you have brains?
|
|
|
11/02/2011, 16:57
|
#7
|
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
|
Quote:
Originally Posted by Avalance Danger
Do you have brains?
|
no i have just 1 brain its enough for me thanks for asking
|
|
|
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/>";
}
}
}
|
|
|
|
11/08/2011, 23:43
|
#9
|
elite*gold: 0
Join Date: Nov 2011
Posts: 93
Received Thanks: 16
|
Quote:
Originally Posted by H34D_B4NG3R
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
|
|
|
11/08/2011, 23:46
|
#10
|
elite*gold: 125
Join Date: Aug 2011
Posts: 4,393
Received Thanks: 4,353
|
Quote:
Originally Posted by Avalance Danger
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.
|
|
|
11/10/2011, 00:24
|
#11
|
elite*gold: 0
Join Date: Nov 2011
Posts: 93
Received Thanks: 16
|
Quote:
Originally Posted by OutlawNL
Yup delete your server.
|
Any other solution?
|
|
|
 |
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.
|
|