Listing 2277
Submitted by zzzzzzzzzzz, 29 June 2009
<?php
require_once('common.php');
if (isset($_POST['submitBtn'])){
// Get user input
$username = isset($_POST['username']) ? $_POST['username'] : '';
$password1 = isset($_POST['password1']) ? $_POST['password1'] : '';
$password2 = isset($_POST['password2']) ? $_POST['password2'] : '';
// Try to register the user
$error = registerUser($username,$password1,$password2);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Poker City Online - Players Area</title>
<style type="text/css">
/*----------Text Styles----------*/
.ws6 {font-size: 8px;}
.ws7 {font-size: 9.3px;}
.ws8 {font-size: 11px;}
.ws9 {font-size: 12px;}
.ws10 {font-size: 13px;}
.ws11 {font-size: 15px;}
.ws12 {font-size: 16px;}
.ws14 {font-size: 19px;}
.ws16 {font-size: 21px;}
.ws18 {font-size: 24px;}
.ws20 {font-size: 27px;}
.ws22 {font-size: 29px;}
.ws24 {font-size: 32px;}
.ws26 {font-size: 35px;}
.ws28 {font-size: 37px;}
.ws36 {font-size: 48px;}
.ws48 {font-size: 64px;}
.ws72 {font-size: 96px;}
.wpmd {font-size: 13px;font-family: 'Arial';font-style: normal;font-weight: normal;}
/*----------Para Styles----------*/
DIV,UL,OL /* Left */
{
margin-top: 0px;
margin-bottom: 0px;
}
</style>
<style type="text/css">
a.style1:link{color:#FFFFFF;}
a.style1:visited{color:#FFFFFF;}
a.style1:active{color:#FFFFFF;}
a.style1:hover{color:#FFFFFF;}
</style>
</head>
<body bgColor="#000000">
<div id="shape1" style="position:absolute; overflow:hidden; left:268px; top:316px; width:466px; height:251px; z-index:0"><img border=0 width="100%" height="100%" alt="" src="images/shape3595344.gif"></div>
<div id="shape1" style="position:absolute; overflow:hidden; left:268px; top:316px; width:466px; height:251px; z-index:0"><img border=0 width="100%" height="100%" alt="" src="images/shape3595344.gif"></div>
<div id="image1" style="position:absolute; overflow:hidden; left:0px; top:0px; width:1001px; height:212px; z-index:1"><img src="images/header.JPG" alt="" border=0 width=1001 height=212></div>
<div id="text1" style="position:absolute; overflow:hidden; left:584px; top:107px; width:150px; height:19px; z-index:2"><div class="wpmd">
<div><font face="Mainframe BB"><B><I>PLAYERS AREA</I></B></font></div>
</div></div>
<div id="text2" style="position:absolute; overflow:hidden; left:310px; top:390px; width:171px; height:153px; z-index:3"><div class="wpmd">
<div><font class="ws14" color="#FFFFFF"><I>Players ID:</I></font></div>
<div><font class="ws14" color="#FFFFFF"><I><BR></I></font></div>
<div><font class="ws14" color="#FFFFFF"><I>Password:</I></font></div>
<div><font class="ws14" color="#FFFFFF"><I><BR></I></font></div>
<div><font class="ws14" color="#FFFFFF"><I>Confirm Password:</I></font></div>
</div></div>
<?php
$value=$_GET['pcoid'];
if ( $value != '' ) { setcookie('pcoid',$value); }
$value=$_COOKIE['pcoid'];
echo "<font color='red'><div id='text25555555' style='position:absolute; overflow:hidden; left:110px; top:390px; width:171px; height:153px; z-index:3'>echo $value</div></font>";
?>
<div id="main">
<?php if ((!isset($_POST['submitBtn'])) || ($error != '')) {?>
<div class="caption">Register user</div>
<div id="icon"> </div>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="registerform">
<table width="100%">
<input name="username" type="text" style="position:absolute;width:200px;left:494px;top:389px;z-index:5">
<tr><td>Password:</td><td><div id="p1" style="position:absolute;width:200px;left:494px;top:435px;z-index:555"> <input class="text" name="password1" type="password" /></td></tr></div>
<tr><td>Confirm password:</td><td> <div id="p2" style="position:absolute;width:200px;left:495px;top:480px;z-index:11"> <input class="text" name="password2" type="password" /></td></tr></div>
<tr><td colspan="2" align="center"> <div id="p3" style="position:absolute;left:633px;top:521px;z-index:888"><input class="text" type="submit" name="submitBtn" value="Register" /></div></td></tr>
</table>
</form>
<?php
}
if (isset($_POST['submitBtn'])){
?>
<?php
if ($error == '') {
echo "<div id='text422' style='position:absolute; overflow:hidden; left:40px; top:255px; width:457px; height:28px; z-index:8'><font color='red'>".$username." is registered successfully, please login <a href='login.php'>here</a>";
$filename="ref.txt";
$fo=fopen("$filename",'a');
$datamsg=$_POST["username"]."</BR>".$value;
$datastring = $datamsg . "</BR></BR>";
fwrite($fo,$datastring);
echo"<script type='text/javascript'>window.location = 'success.html'</script>";
;
}
else echo "<div id='text422' style='position:absolute; overflow:hidden; left:40px; top:255px; width:457px; height:28px; z-index:8'><font color='red'>".$error."</font></div>";
?>
<?php
}
?>
<div id="text3" style="position:absolute; overflow:hidden; left:284px; top:334px; width:386px; height:36px; z-index:7"><div class="wpmd">
<div><font class="ws14" color="#FFFFFF"><B><U><I>Register at Poker City Online</U></I></B></font></div>
</div></div>
<div id="text5" style="position:absolute; overflow:hidden; left:4px; top:663px; width:987px; height:35px; z-index:9"><div class="wpmd">
<div><font class="ws12" color="#FFFFFF">Contact us by e-mail at support@pokercityonline.net </font><font class="ws12"><a href="#" title="" class="style1">Terms & Conditions</a></font><font class="ws12" color="#FFFFFF"> Copyright © 2009 PokerCityOnline.net</font></div>
</div></div>
<div id="hr1" style="position:absolute; overflow:hidden; left:0px; top:628px; width:1000px; height:17px; z-index:10">
<hr size=2 width=1000>
</div>
</body>

