Advertisement
Guest User

Untitled

a guest
Jun 10th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.87 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <?php
  3. // credits to : caffeine238 , Swiftsmoke , Adriann
  4.  
  5.  
  6.  
  7.  
  8. //-------------------DATABASE Configuration-------------------------
  9.  
  10.  
  11.  
  12.  
  13. $db_user    = "root"; // MySQL username
  14. $db_pass    = "ascent"; // MySQL password
  15. $db_host    = "localhost"; // MySQL Server Host
  16. $db_db      = "Realmd"; // Account database
  17.  
  18.  
  19.  
  20. //------------DO NOY EDIT BELOW THIS LINE!----------
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. if($_POST)
  31. {
  32.     $con = mysql_connect($db_host,$db_user,$db_pass);
  33.     if(!$con)
  34.         $msg = "Unable to create a Database connection.";
  35.     if($con)
  36.     {
  37.         mysql_select_db($db_db, $con);
  38.         $user = $_POST['login'];
  39.         $pass = $_POST['password'];
  40.         $email = $_POST['email'];
  41.         $pack = 24;
  42.        
  43.         if(!$user)
  44.             echo "You have not inserted your username.";
  45.         else if(!$pass)
  46.             echo "You have not inserted your password.";
  47.         else if(!$email)
  48.             echo "You have not inserted your e-mail";
  49.         else
  50.         {
  51.             $check = mysql_query("SELECT `login` FROM `accounts` WHERE login=".$user." LIMIT 1", $con);
  52.             if(mysql_numrows($check) > 0)
  53.             {
  54.                 echo "Account ".$user." already exists. Please Try Again";
  55.             }
  56.             else
  57.             {
  58.                 $query = "INSERT INTO accounts (login, password, email, flags) VALUES ('" . mysql_real_escape_string($user) . "', '" . mysql_real_escape_string($pass) . "', '" . mysql_real_escape_string($email) . "', '" . mysql_real_escape_string($pack) . "');";
  59.  
  60.                 if(!mysql_query($query, $con))
  61.                     echo "Creation of account ".$user." has failed. Please try again later.";
  62.                 else
  63.                     echo "Account ".$user." has been created.";
  64.             }
  65.         }
  66.         @mysql_close($con);
  67.     }
  68.  
  69. }
  70.  
  71. ?>
  72. <html>
  73. <head>
  74. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  75. <title>Account Creation Page</title>
  76.  
  77. <style type="text/css">
  78. /*----------Text Styles----------*/
  79. .ws6 {font-size: 8px;}
  80. .ws7 {font-size: 9.3px;}
  81. .ws8 {font-size: 11px;}
  82. .ws9 {font-size: 12px;}
  83. .ws10 {font-size: 13px;}
  84. .ws11 {font-size: 15px;}
  85. .ws12 {font-size: 16px;}
  86. .ws14 {font-size: 19px;}
  87. .ws16 {font-size: 21px;}
  88. .ws18 {font-size: 24px;}
  89. .ws20 {font-size: 27px;}
  90. .ws22 {font-size: 29px;}
  91. .ws24 {font-size: 32px;}
  92. .ws26 {font-size: 35px;}
  93. .ws28 {font-size: 37px;}
  94. .ws36 {font-size: 48px;}
  95. .ws48 {font-size: 64px;}
  96. .ws72 {font-size: 96px;}
  97. .wpmd {font-size: 13px;font-family: 'Arial';font-style: normal;font-weight: normal;}
  98. /*----------Para Styles----------*/
  99. DIV,UL,OL /* Left */
  100. {
  101.  margin-top: 0px;
  102.  margin-bottom: 0px;
  103. }
  104. </style>
  105.  
  106. <style type="text/css">
  107. a.style1:link{color:#FFFFFF;text-decoration: none;}
  108. a.style1:visited{color:#FFFFFF;text-decoration: none;}
  109. a.style1:active{color:#FFFFFF;text-decoration: none;}
  110. a.style1:hover{color:#FFFFFF;text-decoration: underline;}
  111. </style>
  112.  
  113. <style type="text/css">
  114. div#container
  115. {
  116.     position:relative;
  117.     width: 895px;
  118.     margin-top: 0px;
  119.     margin-left: auto;
  120.     margin-right: auto;
  121.     text-align:left;
  122. }
  123. body {text-align:center;margin:0}
  124. </style>
  125.  
  126. </head>
  127.  
  128. <body Text="#FFFFFF" bgColor="#000000">
  129.  
  130. <div id="container">
  131. <div id="image1" style="position:absolute; overflow:hidden; left:0px; top:150px; width:895px; height:587px; z-index:0"><img src="images/skin-wow.jpg" alt="" border=0 width=895 height=587></div>
  132.  
  133. <div id="text1" style="position:absolute; overflow:hidden; left:495px; top:333px; width:247px; height:208px; z-index:1"><div class="wpmd">
  134. <div><font class="ws14" color="#008000" face="Tahoma">Select Expansion!</font></div>
  135. <div><font class="ws14" color="#008000" face="Tahoma"><BR></font></div>
  136. <div><font color="#000000" face="Tahoma">Select your WoW Expansion:</font></div>
  137. <div><font color="#000000" face="Tahoma"><BR></font></div>
  138. <div><font color="#000000" face="Tahoma">World Of Warcraft</font></div>
  139. <div><font color="#000000" face="Tahoma">The Burning Crusade</font></div>
  140. <div><font color="#000000" face="Tahoma">Wrath of the Lich King</font></div>
  141. </div></div>
  142.  
  143. <div id="text2" style="position:absolute; overflow:hidden; left:232px; top:367px; width:48px; height:14px; z-index:5"><div class="wpmd">
  144. <div><font class="ws7" color="#000000" face="Tahoma">Username</font></div>
  145. </div></div>
  146.  
  147. <div id="text3" style="position:absolute; overflow:hidden; left:231px; top:409px; width:48px; height:14px; z-index:6"><div class="wpmd">
  148. <div><font class="ws7" color="#000000" face="Tahoma">Password</font></div>
  149. </div></div>
  150.  
  151. <div id="text4" style="position:absolute; overflow:hidden; left:231px; top:447px; height:14px; z-index:8"><div class="wpmd">
  152. <div><font class="ws7" color="#000000" face="Tahoma">E-mail address</font></div>
  153. </div></div>
  154.  
  155. <form method="POST" action="">
  156. <input name="login" type="text" style="position:absolute;width:200px;left:232px;top:380px;z-index:3">
  157. <input name="password" type="password" style="position:absolute;width:200px;left:231px;top:422px;z-index:4">
  158. <input name="email" type="text" style="position:absolute;width:200px;left:231px;top:460px;z-index:7">
  159. <input name="submit" type="image" src="images/reg.png" style="position:absolute;left:288px;top:492px;z-index:11">
  160. </form>
  161.  
  162. <div id="text5" style="position:absolute; overflow:hidden; left:149px; top:607px; width:599px; height:16px; z-index:10">
  163.   <div class="wpmd">
  164. <div align=center><font class="ws7" face="Tahoma"><B>© 2010 YourWebsite ofzo D:</B></font></div>
  165. </div></div>
  166.  
  167. </div>
  168. </body>
  169.  
  170. </SMALL></TD>
  171.                 <TD width=124><IMG height=1
  172.                   src="<?php print $img_base ?>pixel.gif" width=124></TD></TR>
  173.               <TR>
  174.                 <TD colSpan=3><IMG height=100
  175.                   src="<?php print $img_base ?>pixel.gif"
  176.             width=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></BODY></HTML>
  177.  
  178. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement