Advertisement
Guest User

Untitled

a guest
Aug 9th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.    
  3.     /*
  4.     *
  5.     *
  6.     *
  7.     * PERMISSION OF THE REGISTRATER:
  8.     * 'user'
  9.     *
  10.     *
  11.     *
  12.     *
  13.     *
  14.     */
  15.     $jog = "User";
  16.    
  17.    
  18.     //sql connect:
  19.    
  20.     include "sql/config.php";
  21.    
  22.     /*
  23.     * Getting the variables_:
  24.     */
  25.    
  26.     $username = $_POST['felhasznalonev'];
  27.     $password = $_POST['password'];
  28.     $email = $_POST['email'];
  29.     $password = md5($_POST['password']);
  30.    
  31.     $hash = hash("haval128,4", $password); /*PW HASH*/
  32.    
  33.     $insert = 'INSERT into users(email,password,jog) VALUES("'.$email.'","'.$hash.'","'.$jog.'")';
  34.     mysql_query($insert);
  35.    
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement