Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  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. define('__WEBENGINE_VERSION__', '2.0.0');
  15. @ini_set('default_charset', 'utf-8');
  16.  
  17. if (version_compare(PHP_VERSION, '5.6', '>=') == false) {
  18. throw new Exception('Unsupported PHP version.');
  19. }
  20.  
  21. if (version_compare(PHP_VERSION, '6', '<') == false) {
  22. throw new Exception('Unsupported PHP version.');
  23. }
  24.  
  25. if (extension_loaded('mongodb') === false) {
  26. throw new Exception('Missing required PHP extension "mongodb"');
  27. }
  28.  
  29. if (extension_loaded('openssl') === false) {
  30. throw new Exception('Missing required PHP extension "openssl"');
  31. }
  32.  
  33. if (extension_loaded('PDO') === false) {
  34. throw new Exception('Missing required PHP extension "PDO"');
  35. }
  36.  
  37. if (extension_loaded('pdo_sqlite') === false) {
  38. throw new Exception('Missing required PHP extension "pdo_sqlite"');
  39. }
  40.  
  41. if (extension_loaded('curl') === false) {
  42. throw new Exception('Missing required PHP extension "curl"');
  43. }
  44.  
  45. if (extension_loaded('json') === false) {
  46. throw new Exception('Missing required PHP extension "json"');
  47. }
  48.  
  49. if (extension_loaded('ionCube Loader') === false) {
  50. throw new Exception('Missing required PHP extension "ionCube Loader"');
  51. }
  52.  
  53. if (isset($_SERVER['HTTP_HOST']) && in_array($_SERVER['HTTP_HOST'], array('localhost', '127.0.0.1'))) {
  54. throw new Exception('Please use a domain/ip to run WebEngine CMS.');
  55. }
  56.  
  57. if (!include_once(@rtrim(@str_replace('\\', '/', __DIR__), '/') . '/timezone.php')) {
  58. throw new Exception('Could not load timezone setting.');
  59. }
  60.  
  61. if (!isset($_SERVER['SCRIPT_NAME'])) {
  62. $_SERVER['SCRIPT_NAME'] = '';
  63. }
  64.  
  65. if (!isset($_SERVER['SCRIPT_FILENAME'])) {
  66. $_SERVER['SCRIPT_FILENAME'] = '';
  67. }
  68.  
  69. define('HTTP_HOST', (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'CLI'));
  70. define('SERVER_PROTOCOL', (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https://' : 'http://'));
  71. define('__ROOT_DIR__', rtrim(str_replace('\\', '/', dirname(__DIR__)), '/') . '/');
  72. define('__RELATIVE_ROOT__', rtrim((access == 'admincp' ? dirname(dirname($_SERVER['SCRIPT_NAME'])) : dirname($_SERVER['SCRIPT_NAME'])), '\\/') . '/');
  73. define('__BASE_URL__', SERVER_PROTOCOL . HTTP_HOST . __RELATIVE_ROOT__);
  74. define('__PATH_INCLUDES__', __ROOT_DIR__ . 'includes/');
  75. define('__PATH_TEMPLATES__', __ROOT_DIR__ . 'templates/');
  76. define('__PATH_LANGUAGES__', __PATH_INCLUDES__ . 'languages/');
  77. define('__PATH_CLASSES__', __PATH_INCLUDES__ . 'classes/');
  78. define('__PATH_FUNCTIONS__', __PATH_INCLUDES__ . 'functions/');
  79. define('__PATH_MODULES__', __ROOT_DIR__ . 'modules/');
  80. define('__PATH_MODULES_USERCP__', __PATH_MODULES__ . 'usercp/');
  81. define('__PATH_EMAILS__', __PATH_INCLUDES__ . 'emails/');
  82. define('__PATH_CACHE__', __PATH_INCLUDES__ . 'cache/');
  83. define('__PATH_ADMINCP__', __ROOT_DIR__ . 'admincp/');
  84. define('__PATH_ADMINCP_INCLUDES__', __PATH_ADMINCP__ . 'includes/');
  85. define('__PATH_ADMINCP_MODULES__', __PATH_ADMINCP__ . 'modules/');
  86. define('__PATH_ADMINCP_TEMPLATES__', __PATH_ADMINCP__ . 'templates/');
  87. define('__PATH_ADMINCP_MODULE_SETTINGS__', __PATH_ADMINCP_MODULES__ . 'modulemanager/module_settings/');
  88. define('__PATH_NEWS_CACHE__', __PATH_CACHE__ . 'news/');
  89. define('__PATH_PLUGINS__', __PATH_INCLUDES__ . 'plugins/');
  90. define('__PATH_CONFIGS__', __PATH_INCLUDES__ . 'config/');
  91. define('__PATH_MODULE_CONFIGS__', __PATH_CONFIGS__ . 'modules/');
  92. define('__PATH_CRON__', __PATH_INCLUDES__ . 'cron/');
  93. define('__ADMINCP_BASE_URL__', __BASE_URL__ . 'admincp/');
  94. define('__ADMINCP_TEMPLATES_BASE_URL__', __ADMINCP_BASE_URL__ . 'templates/');
  95. define('__TEMPLATES_BASE_URL__', __BASE_URL__ . 'templates/');
  96. $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');
  97.  
  98. foreach ($fileWritePermissionList as $fileWritePermissionPath) {
  99. .............................................................
  100. .............................
  101. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement