daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jul 8th, 2018 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3.  *
  4.  * @ This file is created by http://DeZender.Net
  5.  * @ deZender (PHP5 Decoder for ionCube Encoder)
  6.  *
  7.  * @ Version        :   3.5.0.0
  8.  * @ Author         :   DeZender
  9.  * @ Release on     :   22.06.2018
  10.  * @ Official site  :   http://DeZender.Net
  11.  *
  12.  */
  13.  
  14. $CACHE = new Cache();
  15.  
  16. if (defined('VIR_PATH') == false || defined('VIR_CP_PATH') == false || defined('SYS_PATH') == false || defined('SYS_LICENSE') == false) {
  17.     exit('The system does not appear to be properly installed (1).');
  18. }
  19.  
  20. if (isset($DB) == false || isset($CACHE) == false) {
  21.     exit('The system does not appear to be installed properly (2).');
  22. }
  23.  
  24. class Cache
  25. {
  26.     public $enabled = null;
  27.     public $prefix = '';
  28.     public $group = null;
  29.     public $id = null;
  30.  
  31.     public function __construct()
  32.     {
  33.         $this->enabled = true;
  34.     }
  35.  
  36.     public function check($group, $id)
  37.     {
  38.         $filename = $this->get_filename($group, $id);
  39.  
  40.         if ($this->enabled && @file_exists($filename) && time() < @filemtime($filename)) {
  41.             return true;
  42.         }
  43.  
  44.         @unlink($filename);
  45.  
  46.         return false;
  47.     }
  48.  
  49.     public function start($group, $id, $ttl)
  50.     {
  51.         if (!$this->enabled) {
  52. .........................................................................................
  53. ............................................
  54. .................
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