Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- define('__WEBENGINE_VERSION__', '2.0.0');
- @ini_set('default_charset', 'utf-8');
- if (version_compare(PHP_VERSION, '5.6', '>=') == false) {
- throw new Exception('Unsupported PHP version.');
- }
- if (version_compare(PHP_VERSION, '6', '<') == false) {
- throw new Exception('Unsupported PHP version.');
- }
- if (extension_loaded('mongodb') === false) {
- throw new Exception('Missing required PHP extension "mongodb"');
- }
- if (extension_loaded('openssl') === false) {
- throw new Exception('Missing required PHP extension "openssl"');
- }
- if (extension_loaded('PDO') === false) {
- throw new Exception('Missing required PHP extension "PDO"');
- }
- if (extension_loaded('pdo_sqlite') === false) {
- throw new Exception('Missing required PHP extension "pdo_sqlite"');
- }
- if (extension_loaded('curl') === false) {
- throw new Exception('Missing required PHP extension "curl"');
- }
- if (extension_loaded('json') === false) {
- throw new Exception('Missing required PHP extension "json"');
- }
- if (extension_loaded('ionCube Loader') === false) {
- throw new Exception('Missing required PHP extension "ionCube Loader"');
- }
- if (isset($_SERVER['HTTP_HOST']) && in_array($_SERVER['HTTP_HOST'], array('localhost', '127.0.0.1'))) {
- throw new Exception('Please use a domain/ip to run WebEngine CMS.');
- }
- if (!include_once(@rtrim(@str_replace('\\', '/', __DIR__), '/') . '/timezone.php')) {
- throw new Exception('Could not load timezone setting.');
- }
- if (!isset($_SERVER['SCRIPT_NAME'])) {
- $_SERVER['SCRIPT_NAME'] = '';
- }
- if (!isset($_SERVER['SCRIPT_FILENAME'])) {
- $_SERVER['SCRIPT_FILENAME'] = '';
- }
- define('HTTP_HOST', (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'CLI'));
- define('SERVER_PROTOCOL', (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https://' : 'http://'));
- define('__ROOT_DIR__', rtrim(str_replace('\\', '/', dirname(__DIR__)), '/') . '/');
- define('__RELATIVE_ROOT__', rtrim((access == 'admincp' ? dirname(dirname($_SERVER['SCRIPT_NAME'])) : dirname($_SERVER['SCRIPT_NAME'])), '\\/') . '/');
- define('__BASE_URL__', SERVER_PROTOCOL . HTTP_HOST . __RELATIVE_ROOT__);
- define('__PATH_INCLUDES__', __ROOT_DIR__ . 'includes/');
- define('__PATH_TEMPLATES__', __ROOT_DIR__ . 'templates/');
- define('__PATH_LANGUAGES__', __PATH_INCLUDES__ . 'languages/');
- define('__PATH_CLASSES__', __PATH_INCLUDES__ . 'classes/');
- define('__PATH_FUNCTIONS__', __PATH_INCLUDES__ . 'functions/');
- define('__PATH_MODULES__', __ROOT_DIR__ . 'modules/');
- define('__PATH_MODULES_USERCP__', __PATH_MODULES__ . 'usercp/');
- define('__PATH_EMAILS__', __PATH_INCLUDES__ . 'emails/');
- define('__PATH_CACHE__', __PATH_INCLUDES__ . 'cache/');
- define('__PATH_ADMINCP__', __ROOT_DIR__ . 'admincp/');
- define('__PATH_ADMINCP_INCLUDES__', __PATH_ADMINCP__ . 'includes/');
- define('__PATH_ADMINCP_MODULES__', __PATH_ADMINCP__ . 'modules/');
- define('__PATH_ADMINCP_TEMPLATES__', __PATH_ADMINCP__ . 'templates/');
- define('__PATH_ADMINCP_MODULE_SETTINGS__', __PATH_ADMINCP_MODULES__ . 'modulemanager/module_settings/');
- define('__PATH_NEWS_CACHE__', __PATH_CACHE__ . 'news/');
- define('__PATH_PLUGINS__', __PATH_INCLUDES__ . 'plugins/');
- define('__PATH_CONFIGS__', __PATH_INCLUDES__ . 'config/');
- define('__PATH_MODULE_CONFIGS__', __PATH_CONFIGS__ . 'modules/');
- define('__PATH_CRON__', __PATH_INCLUDES__ . 'cron/');
- define('__ADMINCP_BASE_URL__', __BASE_URL__ . 'admincp/');
- define('__ADMINCP_TEMPLATES_BASE_URL__', __ADMINCP_BASE_URL__ . 'templates/');
- define('__TEMPLATES_BASE_URL__', __BASE_URL__ . 'templates/');
- $fileWritePermissionList = array('cache/news', 'cache/downloads.cache', 'cache/news.cache', 'cache/server_info.cache', 'config/modules/account.email.json', 'config/modules/account.password.json', 'config/modules/account.profile.json', 'config/modules/contact.json', 'config/modules/downloads.json', 'config/modules/login.json', 'config/modules/news.json', 'config/modules/register.json', 'config/email.json', 'config/recaptcha.json', 'config/webengine.json', 'webengine.db');
- foreach ($fileWritePermissionList as $fileWritePermissionPath) {
- .............................................................
- .............................
- .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement