SHARE
TWEET

Untitled

Booyaabes Oct 10th, 2019 140 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top