Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 13:40

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

Advertisement



Aurora register screen problem

Discussion on Aurora register screen problem within the DarkOrbit forum part of the Browsergames category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2011
Posts: 25
Received Thanks: 6
Aurora register screen problem

Hello,i've set a new Aurora darkorbit private server but,after doing all the necessary,i've got a problem,the register tabs aren't working and i'm not able to register nor i can see register number count,here is a screenshot with the console and the error.


Any help would be appreciated.
samuele330 is offline  
Old 04/06/2014, 13:30   #2
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422

You have to fix that bug.
NoCheatImPGM is offline  
Thanks
1 User
Old 04/06/2014, 13:41   #3
 
elite*gold: 0
Join Date: Oct 2011
Posts: 25
Received Thanks: 6
Show me how?
samuele330 is offline  
Old 04/06/2014, 13:55   #4
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
Body.php
PHP Code:
<?php
require '\KERNEL-DOCMS\Server.Config.php';

$condb=mysql_connect ($Config['MySQL']["host"], $Config['MySQL']["user"], $Config['MySQL']["pass"], $Config['MySQL']["dbname"]) or
  die(
"Problemas en la conexion");
mysql_select_db("YOURDATABASENAME",$condb) or
  die(
"Problemas en la selección de la base de datos");
$registros=mysql_query("select count(*) as cantidad 
                         from users"
,$condb) or
  die(
"Problemas en el select:".mysql_error());
$reg=mysql_fetch_array($registros);
echo 
"Registered: ".$reg['cantidad']."<br/><br/><a href=\"http://elitepvpers.com/\">http://elitepvpers.com</a>";
?>
Copy-Past this code and just change 'YOURDATABASENAME' to your database name...
NoCheatImPGM is offline  
Thanks
1 User
Old 04/06/2014, 14:06   #5
 
elite*gold: 0
Join Date: Oct 2011
Posts: 25
Received Thanks: 6
I have this screen now:

still,the register tabs such as "username" "password" etc..aren't showing up..
I think it's an index.php problem,but i don't know how to fix it.
Here is my index.php
Code:
<?php
require '/KERNEL-DOCMS/Init.php';

if(isset($_POST['loginForm_default_username'], $_POST['loginForm_default_password'], $_POST['loginForm_default_login_submit']) && $_POST['loginForm_default_login_submit'] === 'Login'):
	$errorData = "";
	if(strlen($_POST['loginForm_default_password']) < 6 || strlen($_POST['loginForm_default_password']) > 20 || !preg_match('`[0-9]`', $_POST['loginForm_default_password']) || $_POST['loginForm_default_password'] === '******' || strlen($_POST['loginForm_default_username']) < 3 || strlen($_POST['loginForm_default_username']) > 20):
		$errorData .= '<p class="singup_errorMessage signup_errorMessage">Username and password combination doesn\'t exist.<br>Please check your info and try again.</p>';
	else:
		$query = $MySQLi->query('SELECT ID, Email FROM users WHERE Name = \'' .$_POST['loginForm_default_username'] . '\' AND pwHash = \'' . md5($_POST['loginForm_default_password']) . '\' LIMIT 1');
		if($query->num_rows === 1):
			$row = $query->fetch_assoc();
			$sessionId = $Core::GenerateRandom(18, true, false);
			$MySQLi->query('UPDATE users SET sessionId = \' ' . $sessionId . '\' WHERE ID = ' . $row['ID'] . '');
			$_SESSION['server1']['user']['sessionId'] = $sessionId;
			$_SESSION['server1']['user']['email'] = $row['Email'];
			header('Location: /indexInternal.es?action=internalStart');
		else:
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">Username and password combination doesn\'t exist.<br>Please check your info and try again.</p>';
		endif;
	endif;
elseif(isset($_POST['signup_winnings'], $_POST['signup_username'], $_POST['signup_submit'], $_POST['signup_province'], $_POST['signup_passwordRepeat'], $_POST['signup_password'], $_POST['signup_newsletter'], $_POST['signup_instance'], $_POST['signup_email'], $_POST['signup_country'], $_POST['signup_birthdayYear'], $_POST['signup_birthdayMonth'], $_POST['signup_birthdayDay'])):
	if($_POST['signup_submit'] == 'Register'):
		$errorData = "";
		if(strlen($_POST['signup_password']) < 6):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">The password is too short. Please choose a new password which has between 4 and 20 characters.</p>';
		elseif(strlen($_POST['signup_password']) > 20):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">The password is too long. Please choose a new password which has between 4 and 20 characters.</p>';
		elseif(!preg_match('`[0-9]`', $_POST['signup_password'])):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">The password must include numbers.</p>';
		endif;
		
		if(strlen($_POST['signup_username']) < 3):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">This username is too short. Please choose a new username which has between 3 and 20 characters.</p>';
		elseif(strlen($_POST['signup_username']) > 20):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">This username is too long. Please choose a new username which has between 3 and 20 characters.</p>';
		endif;
		
		if(empty($_POST['signup_email']) || strlen($_POST['signup_email']) > 50 || preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $_POST['signup_email']) !== 1):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">Your e-mail address doesn\'t seem to be correct. Please enter a valid e-mail address.</p>';
		endif;
		
		if(!isset($_POST['signup_termsAndCondition']) || $_POST['signup_termsAndCondition'] !== '1'):
			$errorData .= '<p class="singup_errorMessage signup_errorMessage">Please confirm that you have accepted our Terms & Conditions. Afterwards, you may continue with your registration.</p>';
		endif;
		
		if($errorData === ''):
			if($MySQLi->query('SELECT null FROM users WHERE Name = \'' .$_POST['signup_username'] . '\'')->num_rows > 0):
				$errorData .= '<p class="singup_errorMessage signup_errorMessage">This username already exists. Please select another username.</p>';
			else:
				$sessionId = $Core::GenerateRandom(18, true, false);
				if($MySQLi->query('INSERT INTO users (Email, Name, pwHash, Servers, sessionId) VALUES (\'' . $_POST['signup_email'] . '\', \'' . $_POST['signup_username'] . '\', \'' . md5($_POST['signup_password']) . '\', \'\', ' . $sessionId . ');')):
					$userId = $MySQLi->insert_id;
					$MySQLi->multi_query('INSERT INTO server_1_players (userId, settings) VALUES (' . $userId . ', \'\');UPDATE users SET Servers = \'[{1:' . $MySQLi->insert_id . '}]\' WHERE ID = \'' . $userId . '\'');
					
					$_SESSION['server1']['user']['sessionId'] = $sessionId;
					$_SESSION['server1']['user']['email'] = $_POST['signup_email'];
					header('Location: /indexInternal.es?action=internalCompanyChoose');
				endif;
			endif;
		endif;
	endif;
endif;

require GLOBALS . 'doc.php';
require GLOBALS . 'header.php';
require FILES . 'INDEX/header.php';
require GLOBALS . 'sajax.php';
require GLOBALS . 'xajax.php';
require GLOBALS . 'headerEndJS.php';
require FILES . 'INDEX/jsSubmit.php';
echo '</head>';
require FILES . 'INDEX/bodyHeader.php';
require 'body.php';
require FILES . 'INDEX/bodyFooter.php';

#Para modificar la alerta a tu gusto, modifica lo que hay entre "Aurora" y ".com"
#To modify the alert change what's between "Aurora" and ".com"
#Aurora pack by: Cydrex (lkInGx in epvp)
#Visit: www.elitegamehack.foroactivo.com
echo "<script languaje='javascript'>alert('Aurora pack instalado correctamente ;) visita: www.elitegamehack.foroactivo.com');</script>";
?>
samuele330 is offline  
Old 04/06/2014, 14:15   #6
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
You had to replace your code with mine...
NoCheatImPGM is offline  
Thanks
1 User
Old 04/06/2014, 14:17   #7
 
elite*gold: 0
Join Date: Oct 2011
Posts: 25
Received Thanks: 6
You mean i must replace all my body.php code with yours?or the index.
edit:i've replaced the code with all the body.php one.but now i the log in tabs aren't showing.i just see register tabs.
samuele330 is offline  
Old 04/06/2014, 14:50   #8

 
Arby's Avatar
 
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,036
Arby is offline  
Closed Thread


Similar Threads Similar Threads
ZSZC: Aurora PROBLEM
10/05/2011 - SRO Private Server - 0 Replies
Hallo, ich hab die beta von Aurora getestet aber auf einmal ging der client aus.. ja alles schön und gut nachdem ich ihn wieder starten wollte stand da es ist eine inspection..auch gut warte ich eben.. aber bis jetzt steht es immer da..UND..mein freund kann es zocken also kann es einfach keine ispection sein kennt da jemand eine lösung? MFG keine ideen?
have problem with log in screen
06/22/2009 - SRO Private Server - 2 Replies
guys here's what i get... i can log in, but at the char selection window i can't see the enter or start button.



All times are GMT +1. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.