Register for your free account! | Forgot your password?

You last visited: Today at 12:42

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

Advertisement



Get Silk After Register

Discussion on Get Silk After Register within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
gengkey02's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 432
Received Thanks: 66
Smile Get Silk After Register

hello,

[REQUEST]HELP

Can anyone help me with this? Register account and get silk,using chernobyl simple reg php but need to add silk to SK_Silk when register but i dont know php coding.thx, again every1 who help.
gengkey02 is offline  
Old 12/08/2011, 00:43   #2
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
There should be a part of the script that gives the starting silk value to 0, I have never seen his script but if you could post it I will edit it for you.
Bаne is offline  
Old 12/08/2011, 03:33   #3
 
gengkey02's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 432
Received Thanks: 66
Quote:
Originally Posted by Bаne View Post
There should be a part of the script that gives the starting silk value to 0, I have never seen his script but if you could post it I will edit it for you.

here is the script;

<?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_content ) values('$_POST[username]','$pwd','3','3')");
echo "Account successfully created<br/>";
}
}

}
?>
hope you can help me.
gengkey02 is offline  
Old 12/08/2011, 03:54   #4
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
Oddly that script does not inseret a defult of 0 for silk, (which I gusse would save space and time for the writer), I don't know SRO SQL collumes names, so really can't help you there!
Bаne is offline  
Reply


Similar Threads Similar Threads
FunSro High Rates!!! Free Silk(500k silk)&alot of events
12/30/2011 - SRO PServer Advertising - 320 Replies
New Update : http://www.elitepvpers.com/forum/private-sro-adver tising/1631369-funsro-pvp-server-d12-nova-npc-50k- silk-free.html#post14578612
[WTS] 100 Premium Silk on PACIFIC [WantToHave] Gold or Dress or Silk Items
11/02/2011 - Silkroad Online Trading - 1 Replies
As the title say i sell 100 Premium Silk make me some offers for that .. you can also buy only 50 silk or 60 or 79 silk ..
WTS 3 x 500 SILK e-PIN CODES (1500 SILK)
09/10/2010 - Silkroad Online Trading - 21 Replies
Selling 3 x 500 silk e-PIN CODES Totally of 1500 silk that you can charge in what server you want. Price : 500 silk - 40$ 1000 silk - 80$ SOLD 1500 silk - 120$ We use middleman or you go first Paypal, W.U, MB



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


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.