Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. session_start();
  4.  
  5. include_once 'dbcon.php';
  6.  
  7. if(isset($_POST['btn-signup'])) {
  8.  
  9. $name = trim($_POST['name']);
  10.  
  11.  
  12.  
  13. $name = strip_tags($name);
  14.  
  15.  
  16.  
  17. // paymoney encrypt using SHA256();
  18.  
  19.  
  20. // check usuario dup
  21. $query = "UPDATE player SET paymoney='10000'
  22. WHERE name ='$name'";
  23.  
  24.  
  25. }
  26. ?>
  27. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  28. <html xmlns="http://www.w3.org/1999/xhtml">
  29. <head>
  30. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  31. <title>Registro Lixo</title>
  32. <link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css" />
  33. <link rel="stylesheet" href="style.css" type="text/css" />
  34. </head>
  35. <body>
  36.  
  37. <div class="container">
  38.  
  39. <div id="login-form">
  40. <form method="post" autocomplete="off">
  41.  
  42. <div class="col-md-12">
  43.  
  44. <div class="form-group">
  45. <h2 class="">Sign Up.</h2>
  46. </div>
  47.  
  48. <div class="form-group">
  49. <hr />
  50. </div>
  51.  
  52. <?php
  53. if ( isset($errMSG) ) {
  54.  
  55. ?>
  56. <div class="form-group">
  57. <div class="alert alert-<?php echo ($errTyp=="success") ? "success" : $errTyp; ?>">
  58. <span class="glyphicon glyphicon-info-sign"></span> <?php echo $errMSG; ?>
  59. </div>
  60. </div>
  61. <?php
  62. }
  63. ?>
  64.  
  65. <div class="form-group">
  66. <div class="input-group">
  67. <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
  68. <input type="text" name="name" class="form-control" placeholder="Enter User name" required />
  69. </div>
  70. </div>
  71.  
  72.  
  73.  
  74.  
  75. <div class="form-group">
  76. <hr />
  77. </div>
  78.  
  79. <div class="form-group">
  80. <button type="submit" class="btn btn-block btn-primary"  name="btn-signup">Enviar</button>
  81. </div>
  82.  
  83. <div class="form-group">
  84. <hr />
  85. </div>
  86.  
  87.  
  88.  
  89. </div>
  90.  
  91. </form>
  92. </div>
  93.  
  94. </div>
  95.  
  96. </body>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement