Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- $PREFS = new Preferences();
- $PREFS->conf = $conf;
- $PREFS->compile("system");
- if ((((defined("VIR_PATH") == false) || defined("VIR_CP_PATH") == false) || defined("SYS_PATH") == false) || defined("SYS_LICENSE") == false)
- {
- exit("The system does not appear to be properly installed (1).");
- }
- if (((isset($DB) == false) || isset($CACHE) == false) || isset($PREFS) == false)
- {
- exit("The system does not appear to be installed properly (2).");
- }
- class Preferences {
- public $conf = array();
- public function init($key = "", $slash = false) {
- if ($key == "")
- {
- return false;
- }
- $pref = !isset($this->conf[$key]) ? false : ($this->conf[$key]);
- return $pref;
- }
- public function get_prefs($var) {
- global $DB;
- if (is_string($var) && !empty($var))
- {
- $result = $DB->query("SELECT val FROM " . DB_PREFIX . ("settings WHERE label='" . $var . "'"));
- if ($DB->num_rows($result))
- {
- $obj = $DB->fetch_object($result);
- $this->conf[$var] = $obj->val;
- unset($obj);
- }
- else
- {
- exit("Unable to fetch application settings.");
- }
- unset($result);
- ..........................................................................
- ................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment