Advertisement
Guest User

Untitled

a guest
Jun 10th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.16 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 = "hoi"; // MySQL username
  14. $db_pass = "hoi"; // 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 = $_POST['formselect1'];
  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.  
  52.  
  53.  
  54. $check = mysql_query("SELECT login FROM accounts WHERE login=\"".$user."\" LIMIT 1", $con);
  55. if(mysql_numrows($check) > 0)
  56. echo "Account ".$user." already exists. Please Try Again";
  57. else
  58. {
  59. $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) . "');";
  60.  
  61. if(!mysql_query($query, $con))
  62. echo "Creation of account ".$user." has failed. Please try again later.";
  63. else
  64. echo "Account ".$user." has been created.";
  65. }
  66. }
  67. @mysql_close($con);
  68. }
  69.  
  70. }
  71.  
  72. ?>
  73. <html>
  74. <head>
  75. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  76. <title>Account Creation Page</title>
  77.  
  78. <style type="text/css">
  79. /*----------Text Styles----------*/
  80. .ws6 {font-size: 8px;}
  81. .ws7 {font-size: 9.3px;}
  82. .ws8 {font-size: 11px;}
  83. .ws9 {font-size: 12px;}
  84. .ws10 {font-size: 13px;}
  85. .ws11 {font-size: 15px;}
  86. .ws12 {font-size: 16px;}
  87. .ws14 {font-size: 19px;}
  88. .ws16 {font-size: 21px;}
  89. .ws18 {font-size: 24px;}
  90. .ws20 {font-size: 27px;}
  91. .ws22 {font-size: 29px;}
  92. .ws24 {font-size: 32px;}
  93. .ws26 {font-size: 35px;}
  94. .ws28 {font-size: 37px;}
  95. .ws36 {font-size: 48px;}
  96. .ws48 {font-size: 64px;}
  97. .ws72 {font-size: 96px;}
  98. .wpmd {font-size: 13px;font-family: 'Arial';font-style: normal;font-weight: normal;}
  99. /*----------Para Styles----------*/
  100. DIV,UL,OL /* Left */
  101. {
  102. margin-top: 0px;
  103. margin-bottom: 0px;
  104. }
  105. </style>
  106.  
  107. <style type="text/css">
  108. a.style1:link{color:#FFFFFF;text-decoration: none;}
  109. a.style1:visited{color:#FFFFFF;text-decoration: none;}
  110. a.style1:active{color:#FFFFFF;text-decoration: none;}
  111. a.style1:hover{color:#FFFFFF;text-decoration: underline;}
  112. </style>
  113.  
  114. <style type="text/css">
  115. div#container
  116. {
  117. position:relative;
  118. width: 895px;
  119. margin-top: 0px;
  120. margin-left: auto;
  121. margin-right: auto;
  122. text-align:left;
  123. }
  124. body {text-align:center;margin:0}
  125. </style>
  126.  
  127. </head>
  128.  
  129. <body Text="#FFFFFF" bgColor="#000000">
  130.  
  131. <div id="container">
  132. <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>
  133.  
  134. <div id="text1" style="position:absolute; overflow:hidden; left:495px; top:333px; width:247px; height:208px; z-index:1"><div class="wpmd">
  135. <div><font class="ws14" color="#008000" face="Tahoma">Select Expansion !</font></div>
  136. <div><font class="ws14" color="#008000" face="Tahoma"><BR></font></div>
  137. <div><font color="#000000" face="Tahoma">Select your WoW Expansion :</font></div>
  138. <div><font color="#000000" face="Tahoma"><BR></font></div>
  139. <div><font color="#000000" face="Tahoma">World Of Warcraft</font></div>
  140. <div><font color="#000000" face="Tahoma">The Burning Crusade</font></div>
  141. <div><font color="#000000" face="Tahoma">Wrath of the Lich King</font></div>
  142. </div></div>
  143.  
  144. <div id="text2" style="position:absolute; overflow:hidden; left:232px; top:367px; width:48px; height:14px; z-index:5"><div class="wpmd">
  145. <div><font class="ws7" color="#000000" face="Tahoma">username</font></div>
  146. </div></div>
  147.  
  148. <div id="text3" style="position:absolute; overflow:hidden; left:231px; top:409px; width:48px; height:14px; z-index:6"><div class="wpmd">
  149. <div><font class="ws7" color="#000000" face="Tahoma">password</font></div>
  150. </div></div>
  151.  
  152. <div id="text4" style="position:absolute; overflow:hidden; left:231px; top:447px; width:48px; height:14px; z-index:8"><div class="wpmd">
  153. <div><font class="ws7" color="#000000" face="Tahoma">e-mail</font></div>
  154. </div></div>
  155.  
  156. <form method="POST" action="">
  157. <select name="formselect1" style="position:absolute;left:512px;top:496px;width:200px;z-index:2">
  158. <option value="0">World of Warcraft</option>
  159. <option value="8">The Burning Crusade</option>
  160. <option value="24">Wrath of the Lich King</option>
  161. </select>
  162.  
  163. <input name="login" type="text" style="position:absolute;width:200px;left:232px;top:380px;z-index:3">
  164. <input name="password" type="password" style="position:absolute;width:200px;left:231px;top:422px;z-index:4">
  165. <input name="email" type="text" style="position:absolute;width:200px;left:231px;top:460px;z-index:7">
  166. <input name="submit" type="image" src="images/reg.png" style="position:absolute;left:288px;top:492px;z-index:11">
  167. </form>
  168.  
  169. <div id="text5" style="position:absolute; overflow:hidden; left:149px; top:607px; width:599px; height:16px; z-index:10">
  170. <div class="wpmd">
  171. <div align=center><font class="ws7" face="Tahoma"><B>YourSite © 2008, All rights reserved.</B></font></div>
  172. </div></div>
  173.  
  174. </div>
  175. </body>
  176.  
  177. </SMALL></TD>
  178. <TD width=124><IMG height=1
  179. src="<?php print $img_base ?>pixel.gif" width=124></TD></TR>
  180. <TR>
  181. <TD colSpan=3><IMG height=100
  182. src="<?php print $img_base ?>pixel.gif"
  183. width=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></BODY></HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement