Advertisement
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 Encoder)
- *
- * @ Version : 1.1.4.0
- * @ Author : DeZender
- * @ Release on : 30.03.2012
- * @ Official site : http://DeZender.Net
- *
- */
- class MainClass {
- public static $protocol = "http://";
- public static $domain = NULL;
- public static $site_path = NULL;
- public static $default_component = __FILE__;
- public static $randstr = "2jt9vjs045@_u8j%^E#smv889475^%";
- public static $_source = "aHR0cDovL2FwaS5saWdodG1vbi5ydS8=";
- public static $filename = NULL;
- public static $os = NULL;
- public static $service = NULL;
- public static $ip = NULL;
- public static $lang = NULL;
- public static $gzip = true;
- public static $content_type = "text/html";
- public static $langs = array( );
- public static $var = array( );
- public static $db = NULL;
- public static $session = NULL;
- public static $modules = NULL;
- public static $tpl = NULL;
- public static $email = NULL;
- public static $update = NULL;
- private static $Instance = NULL;
- function getInstance($_method) {
- if (!isset( self::$Instance )) {
- self::$Instance = new self( );
- self::$ip = $_SERVER['REMOTE_ADDR'];
- self::$os = (stripos( PHP_OS, 'win' ) === 0 ? 'w' : 'u');
- self::$domain = $_SERVER['HTTP_HOST'];
- self::$site_path = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
- self::$filename = basename( $_SERVER['SCRIPT_FILENAME'] );
- if (get_magic_quotes_gpc( )) {
- array_walk_recursive( $_GET, 'stripslashes_gpc' );
- array_walk_recursive( $_POST, 'stripslashes_gpc' );
- array_walk_recursive( $_COOKIE, 'stripslashes_gpc' );
- array_walk_recursive( $_REQUEST, 'stripslashes_gpc' );
- }
- self::$var['general'] = include_once( DATA_DIR . '/config/general.config.php' );
- self::$var['user'] = include_once( DATA_DIR . '/config/user.config.php' );
- self::$var['gaming'] = include_once( DATA_DIR . '/config/gaming.config.php' );
- self::$var['other'] = include_once( DATA_DIR . '/config/other.config.php' );
- self::$var['service'] = include_once( DATA_DIR . '/config/service.config.php' );
- if (!defined( 'INSTALL' )) {
- if (( file_exists( ROOT_DIR . '/install' ) && !file_exists( ROOT_DIR . '/install/install.lock' ) )) {
- header( 'Location: ' . self::$protocol . self::$domain . self::$site_path . 'install/index.php' );
- } else {
- self::$c = include_once( DATA_DIR . '/config/mysqli.config.php' );
- self::$db = new DBClass( array( 'host' => $c['lm_serv'], 'user' => $c['lm_user'], 'pass' => $c['lm_pass'], 'db' => $c['lm_name'] ) );
- self::$modules = new ModulesClass( );
- self::$session = new SessionClass( );
- }
- }
- self::$tpl = new TemplateClass( );
- self::$email = new EmailClass( );
- self::$update = new selfUpdateClass( );
- }
- (true ? method_exists( 'MainClass', $_method ) : $Instance);
- exit( );
- }
- function __construct() {
- }
- function __clone() {
- }
- function SetCookie($n, $v = '', &$t = false) {
- if ($t === false) {
- $t = time( ) + 60 * 60 * 24 * (int)self::$var['user']['time_of_life_session'];
- } else {
- if ($t) {
- switch (substr( $t, 0 - 1 )) {
- case 's': {
- $t = (int)$t;
- break;
- }
- case 'm': {
- $t = (int)$t * 60;
- break;
- }
- case 'h': {
- $t = (int)$t * 3600;
- break;
- }
- default: {
- $t = (int)$t * 86400;
- }
- }
- $t += time( );
- }
- }
- return setcookie( 'lm_' . $n, $v, $t, self::$site_path );
- }
- function GetCookie($n) {
- $n = 'lm_' . $n;
- return (isset( $_COOKIE[$n] ) ? $_COOKIE[$n] : false);
- }
- .....................................................
- ....................................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement