Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Web registrartion

Initiate Mage
Joined
Mar 7, 2016
Messages
9
Reaction score
0
Can anyone give a script registering a new account ???
 
Joined
Jan 24, 2007
Messages
653
Reaction score
320
a temporary way to create web accounts

attached files not work
download mega work fine
scripts:

V2 script
 

Attachments

You must be registered for see attachments list
Last edited:
Initiate Mage
Joined
Jan 24, 2020
Messages
55
Reaction score
17
Can't use this scrips :(
 

Attachments

You must be registered for see attachments list
Joined
Jan 24, 2007
Messages
653
Reaction score
320
Code:
<?php $connn = pg_connect("host=[COLOR=#ff0000]IP CENTOS HERE[/COLOR] dbname=ffaccount user=[COLOR=#ff0000]USER DATABSE HERE[/COLOR] password=[COLOR=#ff0000]PASS DATABASE HERE[/COLOR] port=5432"); 
$login = isset($_POST['login']) ? $_POST['login'] : ''; 
$passs = isset($_POST['passs']) ? $_POST['passs'] : ''; 
$passcript = md5 ($passs);$Error = 0;
$login_username_check = pg_query("SELECT username FROM accounts WHERE username='$login'"); 
$username_check = pg_num_rows($login_username_check);
if (empty($login) || empty($passs)) {    echo "login or Pass enpty.";  
$Error=1;    
$find_empty = array($login,$passs);    
$i=0;    }    elseif (($username_check > 0))
{     echo "<center><h1>Please correct the following errors: <br />";       
if ($username_check > 0)
{         echo "Your login has already been used in our database!<br /></center></h1>";
$Error=1;    } }elseif ($passs != $passs) 
{    echo "<center><h1>The passwords you entered are not identical. <br>Enter the same password in the 2 fields.</center></h1>";  
$Error=1;
}
if ($Error!=1){$id_last = pg_query ("SELECT id FROM accounts ORDER BY id DESC");
$id_result = pg_fetch_array ($id_last);
$id_last = $id_result["id"] +1 ;
//echo "$id_last";
$sql = pg_query("INSERT INTO accounts (id,username,password) VALUES ('$id_last','$login','$login')");
$connn = pg_connect("host=[COLOR=#ff0000]IP CENTOS HERE[/COLOR] dbname=ffmember user=[COLOR=#ff0000]USER DATABASE HERE[/COLOR] password=[COLOR=#ff0000]PASS DATABASE HERE[/COLOR] port=5432");
$sql2 = pg_query ("INSERT INTO tb_user (mid,password,pwd) VALUES ('$login','$login','$passcript')");
if ($sql == TRUE)
{    
echo"sucess!";
}
else
{    
echo"Failed";
}
}
?>
 
Initiate Mage
Joined
Jan 24, 2020
Messages
55
Reaction score
17
Code:
<?php $connn = pg_connect("host=[COLOR=#ff0000]IP CENTOS HERE[/COLOR] dbname=ffaccount user=[COLOR=#ff0000]USER DATABSE HERE[/COLOR] password=[COLOR=#ff0000]PASS DATABASE HERE[/COLOR] port=5432"); 
$login = isset($_POST['login']) ? $_POST['login'] : ''; 
$passs = isset($_POST['passs']) ? $_POST['passs'] : ''; 
$passcript = md5 ($passs);$Error = 0;
$login_username_check = pg_query("SELECT username FROM accounts WHERE username='$login'"); 
$username_check = pg_num_rows($login_username_check);
if (empty($login) || empty($passs)) {    echo "login or Pass enpty.";  
$Error=1;    
$find_empty = array($login,$passs);    
$i=0;    }    elseif (($username_check > 0))
{     echo "<center><h1>Please correct the following errors: <br />";       
if ($username_check > 0)
{         echo "Your login has already been used in our database!<br /></center></h1>";
$Error=1;    } }elseif ($passs != $passs) 
{    echo "<center><h1>The passwords you entered are not identical. <br>Enter the same password in the 2 fields.</center></h1>";  
$Error=1;
}
if ($Error!=1){$id_last = pg_query ("SELECT id FROM accounts ORDER BY id DESC");
$id_result = pg_fetch_array ($id_last);
$id_last = $id_result["id"] +1 ;
//echo "$id_last";
$sql = pg_query("INSERT INTO accounts (id,username,password) VALUES ('$id_last','$login','$login')");
$connn = pg_connect("host=[COLOR=#ff0000]IP CENTOS HERE[/COLOR] dbname=ffmember user=[COLOR=#ff0000]USER DATABASE HERE[/COLOR] password=[COLOR=#ff0000]PASS DATABASE HERE[/COLOR] port=5432");
$sql2 = pg_query ("INSERT INTO tb_user (mid,password,pwd) VALUES ('$login','$login','$passcript')");
if ($sql == TRUE)
{    
echo"sucess!";
}
else
{    
echo"Failed";
}
}
?>

I did so but still could not
 
Back
Top