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!

Gladiatus Clone by Crack

Status
Not open for further replies.
Initiate Mage
Joined
Jun 21, 2012
Messages
3
Reaction score
0
Parse error: syntax error, unexpected $end in C:\wamp\www\register.php on line 48


<?php
require_once('GameEngine/constable.php');

require_once('group_site.php');

require_once('menu.php');

if($_POST['ok']){
$name = htmlspecialchars($_POST['name']);
$password = md5($_POST['pass']);
$password_2 = md5($_POST['pass2']);
$email = $_POST['email'];
$race = $_POST['race'];
if(!empty($name) && !empty($password) && !empty($password_2) && !empty($email) && !empty($race)){

if($password == $password_2){
$mysql = mysql_fetch_array(mysql_query("select id from accounts where login = '".$name."'"));
if(!empty($mysql)){
echo "Given player already exists";
} else {
$mysql = "INSERT INTO accounts set login = '".$name."', password = '".$password."', email = '".$email."', race = '".$race."'";
$query = mysql_query($mysql);
if($query){
echo 'Welcome to our Gladiatus clone server!<br>';
echo 'Your account login settings are:<br>';
echo 'Login: '.$name.'<br>';
echo 'Password: '.$password.'<br>';
echo 'E-mail: '.$email.'<br>';
echo 'Thank you for choising us and have a good game play';
}
}
} else {
echo "given passwords are different!";
}
}
} else {
?>

<?php
include 'Templates/register.tpl';
?>
<?
}

require_once('down_page.php');

ob_end_flush();
?>
 
Newbie Spellweaver
Joined
Jun 21, 2013
Messages
5
Reaction score
0
thanks

items have problam . some item is hide
 
Last edited:
Status
Not open for further replies.
Back
Top