Advertisement
Booyaabes

Untitled

Oct 10th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2.  
  3. require_once('../sql_connect.php');
  4.  
  5. class permissions
  6. {
  7.     public $username;
  8.     public $password;
  9.  
  10.     function __construct($u, $p){
  11.         $this->username = $u;
  12.         $this->password = $p;
  13.     }
  14.  
  15.     function is_admin(){
  16.         return TRUE;
  17.     }
  18. }
  19.  
  20.  
  21. if(isset($_COOKIE['user_info'])){
  22.     try{
  23.         $perm = unserialize(base64_decode(urldecode($_COOKIE['user_info'])));
  24.     }
  25.     catch(Exception $except){
  26.         die('Deserialization error.');
  27.     }
  28. }
  29.  
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement