Re: Need:Registation Scprit
Re: Need:Registation Scprit
an english version should help player abit more, all i see there is "acc name" insert in blablabla.... but wtf is (only for example) "ban chua nhap mat khau" ..... does it mean "account aviable, damn asstard" ??? -.-
Re: Need:Registation Scprit
Quote:
Originally Posted by
Kasistar
an english version should help player abit more, all i see there is "acc name" insert in blablabla.... but wtf is (only for example) "ban chua nhap mat khau" ..... does it mean "account aviable, damn asstard" ??? -.-
:lol: amazing xD
@oztameth:
I´d advise you to learn php and create your own registration script.
All you need to do is, to make an interface, to connect it to the SQL Server, some SQL strings (very easy) and to secure it against SQL injection.
Re: Need:Registation Scprit
Quote:
Originally Posted by
ttlove9
SQLi FTW :D
Re: Need:Registation Scprit
@FutureAR:
Yes, it is so easy but i cant write the sql table with War0nline register script..... That's the problem.
Re: Need:Registation Scprit
Quote:
Originally Posted by
oztahmet
@FutureAR:
Yes, it is so easy but i cant write the sql table with War0nline register script..... That's the problem.
You are using the failest script ever from war0nline?...
Re: Need:Registation Scprit
Re: Need:Registation Scprit
Now, i am using ttlove9 script but i have a problem register_do.php(Ep3.5 patch). Username check doesnt work.So, if i register with same username,there are 2 same username in tables..
PHP Code:
<?php
$password1 = $_POST["password1"];
$password2 = $_POST["password2"];
$account = $_POST["account"];
include 'config.php';
if(preg_match("/^[0-9a-zA-Z]{3,15}$/i", $account)){
$strSql="select * from td_Account where AccountName = '$account'";
$result = odbc_do($dbhandle, $strSql)
or die('Co loi xay ra: ' . mysql_error());
// Get result count:
$Count = odbc_num_rows($result);
if ($Count > 0) { $errors[] = "please choose a Username"; }
}
if ($account == "")
{
echo "<CENTER><b>Error:</b> please choose a Username</CENTER>";
exit;
}
if ($password1 == "" OR $password2 == "")
{
echo "<CENTER><b>Error::</b> Please choose your Password</CENTER>";
exit;
}
if ($password1 != $password2)
{
echo "<CENTER><b>Error:</b> Password does not match</CENTER>";
exit;
}
if ($password1 == $password2){
$userid = $account;
$passwd_user = $password1;
$handle = fopen("accounts.txt","r");
$n = fgets($handle,1000);
fclose($handle);
$regquery = "INSERT INTO td_Account (AccountName, Password) VALUES ('$userid', '$passwd_user')";
$dk_account_result1=odbc_do($dbhandle,$regquery);
if($dk_account_result1 == TRUE)
{
echo "Account {$userid} has been registered successfuly!";
$n2 = $n;
$handle = fopen("accounts.txt","w");
fputs($handle,$n2);
fclose($handle);
}
else { echo "Failed to create a new account, please try again later"; }
odbc_close_all();
}
?>
Re: Need:Registation Scprit
Quote:
Originally Posted by
oztahmet
Now, i am using ttlove9 script but i have a problem register_do.php(Ep3.5 patch). Username check doesnt work.So, if i register with same username,there are 2 same username in tables..
PHP Code:
<?php
$password1 = $_POST["password1"];
$password2 = $_POST["password2"];
$account = $_POST["account"];
include 'config.php';
if(preg_match("/^[0-9a-zA-Z]{3,15}$/i", $account)){
$strSql="select * from td_Account where AccountName = '$account'";
$result = odbc_do($dbhandle, $strSql)
or die('Co loi xay ra: ' . mysql_error());
// Get result count:
$Count = odbc_num_rows($result);
if ($Count > 0) { $errors[] = "please choose a Username"; }
}
if ($account == "")
{
echo "<CENTER><b>Error:</b> please choose a Username</CENTER>";
exit;
}
if ($password1 == "" OR $password2 == "")
{
echo "<CENTER><b>Error::</b> Please choose your Password</CENTER>";
exit;
}
if ($password1 != $password2)
{
echo "<CENTER><b>Error:</b> Password does not match</CENTER>";
exit;
}
if ($password1 == $password2){
$userid = $account;
$passwd_user = $password1;
$handle = fopen("accounts.txt","r");
$n = fgets($handle,1000);
fclose($handle);
$regquery = "INSERT INTO td_Account (AccountName, Password) VALUES ('$userid', '$passwd_user')";
$dk_account_result1=odbc_do($dbhandle,$regquery);
if($dk_account_result1 == TRUE)
{
echo "Account {$userid} has been registered successfuly!";
$n2 = $n;
$handle = fopen("accounts.txt","w");
fputs($handle,$n2);
fclose($handle);
}
else { echo "Failed to create a new account, please try again later"; }
odbc_close_all();
}
?>
You are ready to start a server but you didn't got any web developper?!!!???
You are like official french server... you took other work and tell it's your :S
Re: Need:Registation Scprit
Quote:
Originally Posted by
decarvk
hum... what is an ace online server? a leech form official file why cry on leeching where all poeple still leeching an other source? how to start without "leech" a file? anyone a take his IDE and redo the game from scratch??? no so I want more respect between each other, give credit for the people who deserves these credit. and don't cry on leech anybody here have leech form a source or an other.
just remember without file nobody start to work on a private server, and so without file nobody share work..
everyone here uses others work
Re: Need:Registation Scprit
Quote:
Originally Posted by
FutureAR
everyone here uses others work
for the server part you are right, but for website...
Re: Need:Registation Scprit
Quote:
Originally Posted by
sami37
but for website...
same.... *remembers back to a bitchfight on releases*
Re: Need:Registation Scprit
Quote:
Originally Posted by
oztahmet
Now, i am using ttlove9 script but i have a problem register_do.php(Ep3.5 patch). Username check doesnt work.So, if i register with same username,there are 2 same username in tables..
PHP Code:
<?php
$password1 = $_POST["password1"];
$password2 = $_POST["password2"];
$account = $_POST["account"];
include 'config.php';
if(preg_match("/^[0-9a-zA-Z]{3,15}$/i", $account)){
$strSql="select * from td_Account where AccountName = '$account'";
$result = odbc_do($dbhandle, $strSql)
or die('Co loi xay ra: ' . mysql_error());
// Get result count:
$Count = odbc_num_rows($result);
if ($Count > 0) { $errors[] = "please choose a Username"; }
}
if ($account == "")
{
echo "<CENTER><b>Error:</b> please choose a Username</CENTER>";
exit;
}
if ($password1 == "" OR $password2 == "")
{
echo "<CENTER><b>Error::</b> Please choose your Password</CENTER>";
exit;
}
if ($password1 != $password2)
{
echo "<CENTER><b>Error:</b> Password does not match</CENTER>";
exit;
}
if ($password1 == $password2){
$userid = $account;
$passwd_user = $password1;
$handle = fopen("accounts.txt","r");
$n = fgets($handle,1000);
fclose($handle);
$regquery = "INSERT INTO td_Account (AccountName, Password) VALUES ('$userid', '$passwd_user')";
$dk_account_result1=odbc_do($dbhandle,$regquery);
if($dk_account_result1 == TRUE)
{
echo "Account {$userid} has been registered successfuly!";
$n2 = $n;
$handle = fopen("accounts.txt","w");
fputs($handle,$n2);
fclose($handle);
}
else { echo "Failed to create a new account, please try again later"; }
odbc_close_all();
}
?>
Thankyou, this bug of td_Account table:
http://nx0.upanh.com/b5.s37.d2/261de...6342820.as.jpg
Re: Need:Registation Scprit
net::ERR_CONNECTION_RESET
Nice Picture ;)
Re: Need:Registation Scprit
use original register_do.php ^^
Sorry oztahmet and St34lth4ng3l, don't recreate table td_Account,
Run this query in SQL Server to fix:
Code:
USE [atum2_db_account]
GO
/****** Object: Index [idx_AccountName_on_account] Script Date: 06/17/2013 22:50:18 ******/
CREATE UNIQUE NONCLUSTERED INDEX [idx_AccountName_on_account] ON [dbo].[td_Account]
(
[AccountName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
http://i159.photobucket.com/albums/t...ps3cec2f2f.jpg
Have a nice day! :)