Some One can help me With that problem while register in vsro files
Discussion on Some One can help me With that problem while register in vsro files within the SRO Private Server forum part of the Silkroad Online category.
This is my code info and i dunno what's wrong , please check it
the reg is working fine but when anyone reg dont receive any silk and that's the problem with me and i the error that i show u in my mail topic
please try to help me or give me any php code for receiving silk after reg .. ty
PHP Code:
<?php
session_start();
$server_name = "TesT SrO"; // Server name;
$host = "My PC-NAME\SQLEXPRESS"; // SQL server name for example PC-NAME\SQLEXPRESS
$user = "sa"; // SQL username
$pass = "my password"; // SQL password
$db = "SRO_VT_ACCOUNT"; // SQL Database
$home = ""; // If you want to reditect after register write your hame page link here if not keep it empty.
$silk = "5000"; // Start silk amount.
$gold = "1000000"; // User start gold on storage
@$ip = $_SERVER['REMOTE_ADDR']; // Don't change it
@$connect = odbc_connect("Driver={SQL Server};Server={".$host."}; Database={".$db."}", "".$user."", "".$pass."") or die("<center><b style=\"border:1px dashed #FF0000;\">".str_replace("[Microsoft][ODBC SQL Server Driver][SQL Server]", "", odbc_errormsg())."</b></center>");
?>
if(!$password) {
$error[]= "Please fill password input";
} else {
if(strlen($password) < 6) $error[] = "Password too short.";
if(strlen($password) > 32) $error[] = "Password too long.";
if(!ctype_alnum($password)) $error[] = "Password should be Characters and Numbers only.";
}
if(!$password1) {
$error[]="Please fill confirm password input.";
} else {
if(strlen($password1) < 6) $error[] = "Confirm Password too short.";
if(strlen($password1) > 32) $error[] = "Confirm Password too long.";
}
if ($password && $password1) {
if($password !== $password1){$error[] = "Passwords are not the same";}
}
if(!$email) {
$error[]="Please fill E-mail input";
}
if(!$email1) {
$error[]="Please fill confirm E-mail input";
}
if ($email && $email1) {
if(!filter_var($email, FILTER_VALIDATE_EMAIL)) $error[]= "E-mail is not valid";
if($email !== $email1){$error[] = "E-mails are not the same";}
}
if(!$name) {
$error[]="Please fill name input";
} else {
if(!ctype_alnum($name)) $error[] = "Name should be Characters and Numbers only";
}
if(!$sex) {
$error[]="Please choose sex";
} else {
if(!ctype_alnum($sex)) $error[] = "Sex should be Characters and Numbers only";
if ($sex > 2 || $sex < 0) {
$error[] = "There some thing wrong with sex!";
} else {
if ($sex == 1) {
$sex = "M";
} else if ($sex == 2) {
$sex = "F";
}
}
}
if(!$code) {
$error[]="Please fill code input";
} else {
if($code != $_SESSION["captcha"]){$error[]= "Wrong captcha Code !";}
}
$check = odbc_exec($connect, "SELECT * FROM TB_User WHERE StrUserID = '".$user."'");
if (odbc_num_rows($check) > 0) {
$error[] = "Account with such username already exists please chose another one";
}
$home = ""; // If you want to reditect after register write your hame page link here if not keep it empty. $silk = "5000"; // Start silk amount. $gold = "1000000"; // User start gold on storage
replace with
PHP Code:
$home = ""; // If you want to reditect after register write your hame page link here if not keep it empty. $silk = "5000"; // Start silk amount. $silkl = "0"; // Start silk amount. $silkm = "0"; // Start silk amount. $gold = "1000000"; // User start gold on storage
and at
PHP Code:
odbc_exec($connect, "INSERT INTO SK_Silk(JID, silk_own) VALUES (".$gift.", ".$silk.")");
$home = ""; // If you want to reditect after register write your hame page link here if not keep it empty.
$silk = "5000"; // Start silk amount.
$gold = "1000000"; // User start gold on storage
replace with
PHP Code:
$home = ""; // If you want to reditect after register write your hame page link here if not keep it empty.
$silk = "5000"; // Start silk amount.
$silkl = "0"; // Start silk amount.
$silkm = "0"; // Start silk amount.
$gold = "1000000"; // User start gold on storage
and at
PHP Code:
odbc_exec($connect, "INSERT INTO SK_Silk(JID, silk_own) VALUES (".$gift.", ".$silk.")");
Problem in Vsro Files .. :( 12/25/2011 - SRO Private Server - 0 Replies Hello Elitepvpers . :) :handsdown:
WTF This Problem can't Fix :(
GlobalManager Work And Other Program Get Request Server Certifaction :(
Picture For The Problem ^^
GM Problem [VSRO ] Files 10/25/2011 - SRO Private Server - 0 Replies how to put that gm can talk but not create items for codes
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:
Problem with vsro files 09/16/2011 - SRO Private Server - 0 Replies Hi guys,my friend open server.Everyone can login with hamachi etc.But he cant login with him computer.He tried normal account working well(working for other ppl)
But he stuck at loading screen.
Any idea?