<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>WoW Server | Account creation</title>
<? $Offset = '../'; ?>
<? $Offsetpic = '../'; ?>
<? include $Offset."../setup/eng.php"; ?>
<? include $Offset."header.php"; ?>
<? include $Offset."center.php"; ?>
<title>WoW Server | Account creation</title>
<style type="text/css">
#contents{
visibility: hidden;
position: absolute;
Z-INDEX: 999999;
width: 5px;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='../../shared/wow-com/images/backgrounds/blue-bg.png');
}
#dynamicTooltip{
visibility: hidden;
position: absolute;
Z-INDEX: 999999;
}
#tooltipText{
visibility: hidden;
color: #ffffff;
font-family: verdana, arial, sans-serif;
font-size:8pt;
font-weight:normal;
padding: 4px;
white-space:nowrap;
}
.trans_div {
/* This is an IE filter command. Other browsers will ignore it */
/* It goes into the trans_div class */
}
.trans_div[class] {
background-image:url(../../shared/wow-com/images/backgrounds/blue-bg.png);
}
</style>
<div id="contents">
<table cellspacing = "0" cellpadding = "0" border = "0" width = "100%">
<tr>
<td width = "1" height = "1"></td>
<td bgcolor = "#ffffff" height = "1"><img src = "../../wow-com/images/layout/pixel.html" width = "1" height = "1"></td>
<td width = "1" height = "1"></td>
</tr>
<tr>
<td bgcolor = "#A5A5A5" width = "1"><img src = "../../wow-com/images/layout/pixel.html" width = "1" height = "1"></td>
<td valign = "top" class="trans_div"><div id="tooltipText"></div></td>
<td bgcolor = "#A5A5A5" width = "1"><img src = "../../wow-com/images/layout/pixel.html" width = "1" height = "1"></td>
</tr>
<tr>
<td width = "1" height = "1"></td>
<td bgcolor = "#4F4F4F"><img src = "../../wow-com/images/layout/pixel.html" width = "1" height = "2"></td>
<td width = "1" height = "1"></td>
</tr>
</table>
</div>
<script type="text/javascript" src="../../shared/wow-com/includes-client/third-party/tooltip.js"></script>
<link rel="stylesheet" type="text/css" href="../../shared/wow-com/includes-client/factionrewards/rewardstable.css">
<!--style type="text/css">
#icon { position: absolute;
top: -139px;
left: 550px;
z-index: 90;
}
#text { position: relative;
top: 47px;
left: 20px;
z-index: 100;
}
#wrapper { position: relative;
z-index: 100;
}
#wrapper99 { position: relative;
z-index: 90;
}
</style-->
<!--HEADER------------------------------------------>
<div class = "header">
<table border="0" cellpadding="0" cellspacing="0" width = "100%">
<tr>
<td colspan = "3"><img src = "../../shared/wow-com/images/layout/pixel.gif" width = "1" height = "12"></td>
</tr>
<tr>
<td width = "29"><img src = "../../shared/wow-com/images/headers/dateheader/dateheader-left.gif" width = "31" height = "38"></td>
<td background = "../../shared/wow-com/images/headers/dateheader/dateheader-bg.gif" width = "100%"><h3 class = "titleLight">Account creation</h3></td>
<td width = "17"><img src = "../../shared/wow-com/images/headers/dateheader/dateheader-right.gif" width = "17" height = "38"></td>
</tr>
</table>
</div>
<!------------------------------------------->
<table cellpadding="0" cellspacing="0" border="0" width = "100%">
<tr>
<td background = "../../shared/wow-com/images/underdev/header-background.jpg" width = "100%"></td>
<td background = "../../shared/wow-com/images/underdev/header-background.jpg" width = "1"><div style = "position: relative; Z-INDEX: 1000;"><div style = "position: absolute; left: -204px; top: -143px"></div></div><img src = "../../shared/wow-com/images/layout/pixel.gif" width = "31" height = "97"></td>
</tr>
</table>
<div class = "guideHeader">
<table width="100%" align="center" cellspacing = "0" cellpadding = "0" border = "0" >
<tr>
<td width="10"><img src="http://forum.ragezone.com/shared/wow-com/images/headers/tabheader/tabheader-left-left.jpg" width="17" height="29" border="0" ></td>
<td width = "362" background = "../../shared/wow-com/images/headers/tabheader/tabheader-left.jpg" align = "left" NOWRAP><h3 class = "guideTitle">Account creation</h3></td>
<td width="100%" background = "../../shared/wow-com/images/headers/tabheader/tabheader-bg.jpg"></td>
</tr>
</table>
</div>
<div class = "postContainerplain">
<div class = "postBody">
<!-----------------------------MAIN------------------------------>
<html>
<head><title>WoW Server | Account creation</title>
<br><br>
<div style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 1px 0px; font-family: arial,palatino,georgia,verdana,arial,sans-serif; color: rgb(*** 15, 1); font-size: 10pt; font-weight: normal; background-image: url(images/parchment-light.html);line-height: 140%;">
<div style="padding: 5px; background-image: url(images/header-gradiant.html); background-repeat: no-repeat;">
<h3 class="title">Step 2 - Account creation</h3>
<p></p><p>
</p><center>
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><img src="menu_files/left-end.gif" alt="" border="0" height="45" width="12"></td><td></td><td><img src="menu_files/step1b.gif" alt="" border="0" height="65" width="86"></td><td><img src="menu_files/step2c.gif" alt="" border="0" height="65" width="86"></td><td><img src="menu_files/right-end.gif" alt="" border="0" height="45" width="13"></td></tr></tbody></table>
<p>
<table border="0" cellpadding="4" cellspacing="0" width="80%">
<tbody><tr>
<td align="left">
<center>
<img src="menu_files/hr.gif" height="1" width="520">
</center>
<span>
<br><Br><Br>
<img src="menu_files/gryph2.jpg" align="right" height="114" width="180">
<img src="menu_files/F.gif" align="left" height="38" width="40">or creating an Account you have to put your <b>accountname and your Password. Refer tot the main page for installation instructions</b><br>
If you have problems contact an Admin in the <a href="http://forum.ragezone.com/f436/guide-release-krillins-blizzlike-www-frontend-263822/<? $Offsetpic = '../'; ?>../<? echo $lang['menu6link6'] ?>" >Forum</a>.
<p><Br><Br>
<!--PlainBox Top-->
<table border="0" cellpadding="0" cellspacing="0" width="80%"><tbody><tr><td><img src="menu_files/plainbox-top-left.gif" border="0" height="3" width="3"></td><td background="menu_files/plainbox-top.gif"></td><td><img src="menu_files/plainbox-top-right.html" border="0" height="3" width="3"></td></tr><tr><td background="menu_files/plainbox-left.gif"></td><td bgcolor="#cdb68e">
<!--PlainBox Top-->
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="17"><img src="menu_files/alert-tiny-brown.gif" height="14" width="17"></td>
<td><span><b> Important Section </b></span></td>
</tr>
</tbody></table>
<p>
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tbody><tr>
<td valign="top">
<small></small><ul>
<li><small>We do not allow making a second or third account.
</small></li></ul> </td>
</tr>
<tr>
<td valign="top">
<small></small><ul>
<li><small>This is a English Server but all over the world can connect to it. But the items Quests etc. are in English.
</small></li></ul> </td>
</tr>
<? if ($lang['emutype'] == 'WoWEmu') { ?>
<td valign="top">
<small></small><ul>
<li><small>Account creations works only in IE (for now). You should get a new window that display's new account created, otherwise the accountname is already taken
</small></li></ul> </td>
</tr> <? } ?>
</tbody></table>
<!--PlainBox Bottom-->
</p></td><td background="menu_files/plainbox-right.html"></td></tr><tr><td><img src="menu_files/plainbox-bot-left.gif" border="0" height="3" width="3"></td><td background="menu_files/plainbox-bot.gif"></td><td><img src="menu_files/plainbox-bot-right.gif" border="0" height="3" width="3"></td></tr></tbody></table>
<!--PlainBox Bottom-->
</center>
</span></td>
</tr>
</tbody></table>
</p>
<p></p>
<table width="520">
<tbody><tr>
<td>
<span>
<p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="24"><img src="menu_files/subheader-left-sword.gif" height="20" width="24"></td>
<td bgcolor="#05374a" width="100%"><span><b class="white">Account creation</b></span></td>
<td width="10"><img src="menu_files/subheader-right.gif" height="20" width="10"></td>
</tr>
</tbody></table>
<table style="border: 1px dotted rgb(146, 128, 88);"><tbody><tr><td>
<table style="border: 1px solid black; background-image: url(images/parchment-light3.html);"><tbody><tr><td>
<table border="0" cellpadding="4" cellspacing="0" width="510">
<tbody><tr>
<td colspan="2">
<span><center>
Fill in the fields Below:</span>
</center> </td>
</tr>
<tr>
<td colspan="2">
<span>
<center><img src="menu_files/hr.gif" height="1" width="450"></center>
</span> </td>
</tr>
<!--<tr>
<td colspan="2" align="center">
<? if ($lang['emutype'] == 'WoWEmu') { ?>
<p>
<iframe src="<? echo $lang['serveradress'] ?>" id="iframe" width="515" height="300"></iframe></p>
<? } if ($lang['emutype'] == 'Ludmilla') { ?>
<form action="new.php" method="post">
<table width="95%" border="0" align="center">
<td>Account name:</td>
<td><input style="color:#FF0000" type="text" size="60" name="accountname" value="">
</td>
<td></td></tr>
<td>Password:</td>
<td><input style="color:#FF0000" type="text" size="60" name="password" value="">
</td>
<td></td></tr>
<td>Email:</td>
<td><input style="color:#FF0000" type="text" size="60" name="email" value="">
</td>
<td></td></tr>
</table><br>
<input type="submit" value="Save"><input type="reset" value="Reset">
</form>
<? } if (($lang['emutype'] == 'Mangos') || ($lang['emutype'] == 'Antrix')) { ?>
<form action="new1.php" method="post">
<table width="95%" border="0" align="center">
<td>Account name:</td>
<td><input style="color:#FF0000" type="text" size="30" name="accountname" value="">
</td>
<td></td></tr>
<td>Password:</td>
<td><input style="color:#FF0000" type="text" size="30" name="password" value="">
</td>
<td></td></tr>
<td>Using Burning Crusade <small>(Note: need to be installed)</small>:</td>
<td><input style="color:#FF0000" type="checkbox" name="tbc" value="1">
</td>
<td></td></tr>
<td>Email:</td>
<td><input style="color:#FF0000" type="text" size="30" name="email" value="">
</td>
<td></td></tr>
</table><br>
<input type="submit" value="Save"><input type="reset" value="Reset">
</form>
<? } ?>
<br> </td>
</tr>
-->
<?php
function check_for_symbols($string){
$len=strlen($string);
$alowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
for($i=0;$i<$len;$i++)if(!strstr($alowed_chars,$string[$i]))return TRUE;
return FALSE;
}
function sha_password($user,$pass){
$user = strtoupper($user);
$pass = strtoupper($pass);
return SHA1($user.':'.$pass);
}
if ($_POST['registration']){
$realmd_bc_new_connect = mysql_connect ($lang['hostname'],$lang['dbaselogin'],decrypt($lang['dbasepw'], 1200));
if(!$realmd_bc_new_connect) { die(mysql_error()); }
$selectdb = mysql_select_db($lang['dbasename'],$realmd_bc_new_connect);
if (!$realmd_bc_new_connect || !$selectdb){
echo "Could NOT connect to db, please check the config part of the file!";
die;
}
$username = $_POST['username'];
$password = sha_password($username,$_POST['password']);
$email = $_POST['email'];
$expansion = 2;
$qry_check_username = mysql_query("SELECT username FROM `account` WHERE username='$username'");
if (check_for_symbols($_POST[password]) == TRUE || check_for_symbols($username) == TRUE || mysql_num_rows($qry_check_username) != 0){
echo "Error with creating account, might already be in use or your username / password has invalid symbols in it.";
}else{
mysql_query("INSERT INTO account (username,sha_pass_hash,email,expansion) VALUES ('$username','$password','$email','$expansion')");// Insert into database.
echo "Account created.";
}
}else{
?>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
Username <input type="text" name="username"><br>
Password <input type="password" name="password"><br>
Expansion
<select name="expansion">
<option value="0">Normal</option>
<option value="1">Burning Crusade</option>
<option value="2">WOTLK</option>
</select>
<br>
Email <input type="text" name="email"><br>
<center>
<input type="submit" name="registration">
</center>
</form>
<?php
}
?>
<tr>
<td colspan="2">
<span>
<center><img src="menu_files/hr.gif" height="1" width="450"></center>
</span> </td>
</tr>
</tbody></table>
</td></tr></tbody></table>
</p></span></td></tr></tbody></table>
</form></center>
<!--end content-->
</p></center>
<p> </p><center>
<table>
<tbody><tr>
<td><a href="agreement.php"><img src="menu_files/back-button.gif" alt="Back" border="0" height="46" width="116"></a></td>
</tr>
</tbody></table>
</center>
</td>
</tr>
</tbody></table>
</div>
</body>
</html>
<!---------------------------END MAIN------------------------------>
</div>
</div>
</td>
</tr>
</table>
</div>
</center>
</div>
<div id="pageEnd"></div>
</body>
</html>
<? include $Offset."bottem.php"; ?>