Guest User

Untitled

a guest
Nov 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. include 'bd.php';
  4.  
  5. $result = mysql_query("SELECT adminpass FROM adminpassword");
  6. $array = mysql_fetch_array($result);
  7.  
  8.  
  9. if(!empty($_POST['password'])){
  10.  
  11. if($_POST['password']==$array[adminpass]){
  12. session_start();
  13. $_SESSION['access']=true;
  14. header("Location: adminpanel");
  15. }
  16. else {
  17. header("Location: error");
  18. }
  19. }
  20. else
  21. {
  22. ?>
  23.  
  24. CONTENT...
  25.  
  26. <?php
  27. }
  28. ?>
Add Comment
Please, Sign In to add comment