Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "localhost";
  4. $username = "alcha_pro";
  5. $password = "password@123";
  6. $dbname = "alcha_pro";
  7.  
  8. // Create connection
  9. $conn = mysqli_connect($servername, $username, $password, $dbname);
  10. // Check connection
  11. if (!$conn) {
  12. die("Connection failed: " . mysqli_connect_error());
  13. }
  14.  
  15. $sql = "INSERT INTO `user`(`id`, `email`, `password`, `name`, `music`, `volume`, `uplink`, `invitecode`, `level`, `balance`, `order`, `banned`, `active`, `code`, `ip`)
  16. VALUES ('', '{$_POST['email']}', '{$_POST['password']}', '{$_POST['name']}', '%s', '%s', 'N/A', 'None', '%s', '5', '%s', '%s', '1', 'DOESNTNEED', '{$ip}')";
  17.  
  18. if (mysqli_query($conn, $sql)) {
  19. echo "Account Created Succesfull ! Your Account Is Active Now ";
  20. } else {
  21. echo "Machine Error, Please ""<br>" . mysqli_error($conn);
  22. }
  23.  
  24. mysqli_close($conn);
  25. ?>
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. ------------------------------------------------------------------------
  38.  
  39.  
  40.  
  41. <?php
  42. include '../function.php';
  43. if (isset($email)) {
  44. header('location: index.php');
  45. exit;
  46. }
  47.  
  48.  
  49. ?>
  50. <!DOCTYPE html>
  51. <html lang="en" class="app">
  52. <head>
  53. <meta charset="utf-8" />
  54. <title>- Alchemist </title>
  55. <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
  56. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  57. <link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
  58. <link rel="stylesheet" href="css/animate.css" type="text/css" />
  59. <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
  60. <link rel="stylesheet" href="css/icon.css" type="text/css" />
  61. <link rel="stylesheet" href="css/font.css" type="text/css" />
  62. <link rel="stylesheet" href="css/app.css" type="text/css" />
  63. <!--[if lt IE 9]>
  64. <script src="js/ie/html5shiv.js"></script>
  65. <script src="js/ie/respond.min.js"></script>
  66. <script src="js/ie/excanvas.js"></script>
  67. <![endif]-->
  68. </head>
  69. <body class="">
  70. <section id="content" class="m-t-lg wrapper-md animated fadeInDown">
  71. <div class="container aside-xl">
  72. <a class="navbar-brand block" href="index.php">Scale</a>
  73. <section class="m-b-lg">
  74. <header class="wrapper text-center">
  75. <strong>Sign up to find interesting thing</strong>
  76. </header>
  77. <form id="Form1" action="verify.php" method="post">
  78.  
  79. <div class="list-group">
  80. <div class="list-group-item">
  81. <input type="text" name="name" placeholder="Name" class="form-control no-border">
  82. </div>
  83. <div class="list-group-item">
  84. <input type="email" placeholder="email" class="form-control no-border"name="email">
  85. </div>
  86. <div class="list-group-item">
  87. <input type="password" placeholder="password" class="form-control no-border" name="password">
  88. </div>
  89. </div>
  90.  
  91. <button type="submit" class="btn btn-lg btn-primary btn-block">Sign up</button>
  92. <div class="line line-dashed"></div>
  93. <p class="text-muted text-center"><small>Already have an account?</small></p>
  94. <a href="signin.php" class="btn btn-lg btn-default btn-block">Sign in</a>
  95. </form>
  96. </section>
  97. </div>
  98. </section>
  99. <!-- footer -->
  100. <footer id="footer">
  101. <div class="text-center padder clearfix">
  102. <p>
  103. <small>Powered By Alcha Decode<br>&copy; 2K17</small>
  104. </p>
  105. </div>
  106. </footer>
  107. <!-- / footer -->
  108. <script src="js/jquery.min.js"></script>
  109. <!-- Bootstrap -->
  110. <script src="js/bootstrap.js"></script>
  111. <!-- App -->
  112. <script src="js/app.js"></script>
  113. <script src="js/slimscroll/jquery.slimscroll.min.js"></script>
  114. <script src="js/app.plugin.js"></script>
  115. </body>
  116. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement