Register for your free account! | Forgot your password?

You last visited: Today at 05:47

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

Advertisement



wow register help

Discussion on wow register help within the WoW Private Server forum part of the World of Warcraft category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2012
Posts: 352
Received Thanks: 150
wow register help

hi i have a test server. Stormcore 7.1.5 and i have friends that want to test.

i made a register i found,

Index.php:

HTML Code:
<?php

require_once("config.php");

session_start();

if(!empty($_POST["security"])){

	if($_SESSION["security"]  != $_POST["security"]) { $errors[] = "Invalid input. Please try again."; }

}

$security = rand(10000, 100000);
$_SESSION["security"] = $security;

if(!empty($_POST["accountname"]) && !empty($_POST["password"]) && !empty($_POST["password2"]) && !empty($_POST["email"]) && $_POST["expansion"] != "" && !empty($_POST["security"])){

	$mysql_connect = mysqli_connect($mysql["host"], $mysql["username"], $mysql["password"]) or die("Unable to connect to the database.");
	mysqli_select_db($mysql_connect, $mysql["realmd"]) or die("Unable to select logon database.");
	
	$post_accountname = mysqli_real_escape_string($mysql_connect, trim(strtoupper($_POST["accountname"])));
	$post_password = mysqli_real_escape_string($mysql_connect, trim(strtoupper($_POST["password"])));
	$post_password_final = mysqli_real_escape_string($mysql_connect, SHA1("".$post_accountname.":".$post_password.""));
	$post_password2 = trim(strtoupper($_POST["password2"]));
	$post_email = mysqli_real_escape_string($mysql_connect, trim($_POST["email"]));
	$post_expansion = mysqli_real_escape_string($mysql_connect, trim($_POST["expansion"]));
	
	$check_account_query = mysqli_query($mysql_connect, "SELECT COUNT(*) FROM account WHERE username = '".$post_accountname."'");
	$check_account_results = mysqli_fetch_array($check_account_query);
	if($check_account_results[0]!=0){ $errors[] = "The requested account name is already in use. Please try again."; }
	
	if(strlen($post_accountname) < 3) { $errors[] = "The requested account name is to short. Please try again."; }
	if(strlen($post_accountname) > 32) { $errors[] = "The requested account name is to long. Please try again."; }
	if(strlen($post_password) < 6) { $errors[] = "The requested password is to short. Please try again."; }
	if(strlen($post_password) > 32) { $errors[] = "The requested password is to long. Please try again."; }
	if(strlen($post_email) > 64) { $errors[] = "The requested e-mail address is to long. Please try again."; }
	if(strlen($post_email) < 8) { $errors[] = "The requested e-mail address is to short. Please try again."; }
	if(!ereg("^[0-9a-zA-Z%]+$", $post_accountname)) { $errors[] = "Your account name can only contain letters or numbers. Please try again."; }
	if(!ereg("^[0-9a-zA-Z%]+$", $post_password)) { $errors[] = "Your password can only contain letters or numbers. Please try again."; }
	if(!ereg("^[0-2%]+$", $post_expansion)) { $errors[] = "Invalid input. Please try again."; }
	if(strlen($post_expansion) > 1) { $errors[] = "Invalid input. Please try again."; }
	if($post_accountname == $post_password) { $errors[] = "The passwords do not match. Please try again."; }
	if($post_password != $post_password2) { $errors[] = "The passwords do not match. Please try again."; }
	
	if(!is_array($errors)){
	
		mysqli_query($mysql_connect, "INSERT INTO account (username, sha_pass_hash, email, last_ip, expansion) VALUES ('".$post_accountname."', '".$post_password_final."', '".$post_email."', '".$_SERVER["REMOTE_ADDR"]."', '".$post_expansion."')") or die(mysqli_error($mysql_connect));
		
	$errors[] = 'You have successfully created the account: <font color="yellow">'.$post_accountname.'</font>.';  
	
	}
	
	mysqli_close($mysql_connect);

}

function error_msg(){

	global $errors;
	
	if(is_array($errors)){
	
		foreach($errors as $msg){
		
			echo '<div class="errors">'.$msg.'</div>';
		
		}
	
	}

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link rel="stylesheet" type="text/css" href="site.css" />
<meta name="description" content="<?php $site["meta_description"] ?>" />
<meta name="keywords" content="<?php echo $site["meta_keywords"]; ?>" />
<meta name="robots" content="<?php echo $site["meta_robots"] ?>" />
<meta name="author" content="Jordy Thery" />
<link rel="shortcut icon" href="img/favicon.png" type="image/png" />
<title><?php echo $site["title"]; ?></title>
</head>
<body>

 <script type="text/javascript">
 function checkform ( form )
 {
 
	 if (form.accountname.value == "") { alert( "You did not fill in your account name. Please try again." ); form.accountname.focus(); return false; } else { if (form.accountname.value.length < 3) { alert( "Az account neved túl rövid!" ); form.accountname.focus(); return false; } }
	 if (form.password.value == "") { alert( "You did not fill in a password. Please try again." ); form.password.focus(); return false; } else { if (form.password.value.length < 6) { alert( "A jelszavad túl rövid!" ); form.password.focus(); return false; } }
	 if (form.password2.value == "") { alert( "You did not fill in a password. Please try again." ); form.password2.focus(); return false; }
	 if (form.password.value == form.accountname.value) { alert( "The passwords do not patch. Please try again." ); form.password.focus(); return false; }
	 if (form.password.value != form.password2.value) { alert( "The passwords do not match. Please try again." ); form.password.focus(); return false; }
	 if (form.email.value == "") { alert( "You did not fill in your e-mail address. Please try again." ); form.email.focus(); return false; } else { if (form.email.value.length < 8) { alert( "Az email címed túl rövid!" ); form.email.focus(); return false; } }
	 if (form.security.value == "") { alert( "You did not fill in the security question. Please try again." ); form.security.focus(); return false; }
 
 return true ;
 }
 </script>

<table class="reg">
	<tr>
		<td>
			<a href="<?php echo $_SERVER["PHP_SELF"]; ?>"><img src="img/logo.png" alt="<?php echo $site["title"]; ?>" /></a>
		</td>
	</tr>
	<tr>
		<td>
		</td>
	</tr>
	<tr>
		<td>
		
		<?php error_msg(); ?>
			
			<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST" onsubmit="return checkform(reg);" name="reg">
			
			<table class="form">
				<tr>
					<td align="right">
						Account name:
					</td>
					<td align="left">
						<input name="accountname" type="text" maxlength="32" />
					</td>
				</tr>
				<tr>
					<td align="right">
						Password:
					</td>
					<td align="left">
						<input name="password" type="password" maxlength="32" />
					</td>
				</tr>
				<tr>
					<td align="right">
						Confirm password:
					</td>
					<td align="left">
						<input name="password2" type="password" maxlength="32" />
					</td>
				</tr>
				<tr>
					<td align="right">
						E-mail address:
					</td>
					<td align="left">
						<input name="email" type="text" maxlength="32" />
					</td>
				</tr>
				<tr>
					<td align="right">
						Expantion:
					</td>
					<td align="left">
						<select name="expansion">
							<option SELECTED value="2">Cronus's WOW</option>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right">
						Capacha: <font style="color:#00b0f2;"><?php echo $security; ?></font>
					</td>
					<td align="left">
						<input name="security" type="text" maxlength="5" />
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" class="sbm" value="Register" />
					</td>
				</tr>
			</table>
			
			</form>
			
			<div class="copy"><b><?php echo $site["realmlist"]; ?></b><br /></div>

		</td>
	</tr>
</table>

</body>
</html>
and Config

HTML Code:
<?php

$mysql = array(

	"host" => "localhost",
	"username" => "root",
	"password" => "ascent",
	"realmd" => "auth",

);

$site = array(

	"title" => "Registration Page",
	"meta_description" => "Jordythery's Blizzlike repack Account Registration",
	"meta_keywords" => "Jordythery, Blizzlike, Repack, Registration",
	"meta_robots" => "INDEX,NOFOLLOW",
	"realmlist" => "set realmlist 127.0.0.1"

);

?>
this makes accounts in db

but it has no session key, no reg mail and expansion is set to 2. others i make have expanion 6.

+ battle net set to NULL and batle net index is set to NULL

how can i fix this?

thanks for the help. there is alot german here that i can't understand so much about sorry

i changed expansion to 6. same effect. i can't login with it. but accounts i create from

.bnetaccount create username and password thing works great and i can play them
GMCronus is offline  
Old 06/21/2017, 04:29   #2
 
elite*gold: 0
Join Date: Nov 2012
Posts: 352
Received Thanks: 150
.netaccount create works great, but scripts only make the account in auth db under account. but batlenet account isnt matching and are set to NULL. seems i can't login with them then.

anyone help? the account is setup under auth and account, but i can't login

.netaccount create works great, but scripts only make the account in auth db under account. but batlenet account isnt matching and are set to NULL. seems i can't login with them then.

anyone help? the account is setup under auth and account, but i can't login
GMCronus is offline  
Old 06/21/2017, 04:54   #3
 
Dingledo's Avatar
 
elite*gold: 1
Join Date: May 2013
Posts: 2,361
Received Thanks: 205
@ Es tut mir leid dix, ich weiß ich darf nicht ruhemodus stören aber er kommt hier glaube net weiter.
Dingledo is offline  
Old 06/28/2017, 12:02   #4

 
elite*gold: 808
Join Date: Jul 2010
Posts: 7,984
Received Thanks: 1,653
Quote:
Originally Posted by peeks etwetwtwe View Post
@ Es tut mir leid dix, ich weiß ich darf nicht ruhemodus stören aber er kommt hier glaube net weiter.

Bitte poste es via PN, da ein solcher Service Geld kostet. Sollte ein Auftrag dazu erteilt werden, helfe ich gern weiter.
°"Crazy"° is offline  
Old 06/28/2017, 12:03   #5
 
elite*gold: 0
Join Date: Nov 2012
Posts: 352
Received Thanks: 150
do you understand english? i can not use german sorry
GMCronus is offline  
Old 06/28/2017, 12:11   #6
 
Dingledo's Avatar
 
elite*gold: 1
Join Date: May 2013
Posts: 2,361
Received Thanks: 205
Quote:
Originally Posted by °"Crazy"° View Post
Bitte poste es via PN, da ein solcher Service Geld kostet. Sollte ein Auftrag dazu erteilt werden, helfe ich gern weiter.
Ah, dass wusste ich natürlich nicht. Vermerkt fürs nächste mal.
Dingledo is offline  
Reply


Similar Threads Similar Threads
pvp server register button no funciona help - register button does not work help
12/02/2014 - DarkOrbit - 1 Replies
He instalado el servidor register button no funciona ¡ayuda ********************** I installed server register button does not work help **********************
why i cant register? how to register btw?
06/09/2012 - Rohan - 0 Replies
Registration denied, this forum runs an active policy of not allowing spammers. Please contact us via the "Contact Us" page link if you believe this is in error. i register 2 times and the mssg always shown.. some1 have solutions? Xor Rohan
Inline Asm -> Wert aus Register in anderes Register schreiben
03/17/2012 - C/C++ - 17 Replies
Huhu, die Frage klingt vielleicht etwas Blöd, aber ich würde gerne wissen, wie ich den Wert eines Registers in ein anderes schreiben kann. Wenn ich mov verwende wird lediglich die Speicheradresse auf das andere Register geschrieben und ich brauche den Wert in die Speicheradresse die mein Register hält. Mein Inline Asm Code sieht folgendermaßen aus: char *command; code = "insert 1"; _asm {
help help help help help help
06/28/2009 - Say Hello - 0 Replies
how i can dowmload Mangos 6385 ??????????????????????????????????? please give me the limk i can't see that i know it is in www.elitepvpers.com/.../153716-release-mangos-relea ses-blackscorpian-win32-2-4-3-a.html - but give me link sent it to my email plz
[HELP] register website page [HELP]
07/30/2008 - EO PServer Hosting - 2 Replies
HEY guys i got an question i have downloaded xampplite added the reg script(php script) in the folder htdocs and only on internet explorer can open the page but when its open captcha dont work.and when i open the page with mozilla firefox i only see the php script whats wrong????:confused::confused:



All times are GMT +2. The time now is 05:47.


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