Advertisement
Guest User

Untitled

a guest
Sep 5th, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function &get_instance()
  15. {
  16. return CI_Controller::get_instance();
  17. return NULL;
  18. }
  19. defined('BASEPATH') || exit('No direct script access allowed');
  20. const CI_VERSION = '3.1.11';
  21.  
  22. if (file_exists(APPPATH . 'config/' . ENVIRONMENT . '/constants.php')) {
  23. require_once APPPATH . 'config/' . ENVIRONMENT . '/constants.php';
  24. }
  25.  
  26. if (file_exists(APPPATH . 'config/constants.php')) {
  27. require_once APPPATH . 'config/constants.php';
  28. }
  29.  
  30. require_once BASEPATH . 'core/Common.php';
  31.  
  32. if (!is_php('5.4')) {
  33. ini_set('magic_quotes_runtime', 0);
  34.  
  35. if ((bool) ini_get('register_globals')) {
  36. $_protected = ['_SERVER', '_GET', '_POST', '_FILES', '_REQUEST', '_SESSION', '_ENV', '_COOKIE', 'GLOBALS', 'HTTP_RAW_POST_DATA', 'system_path', 'application_folder', 'view_folder', '_protected', '_registered'];
  37. $_registered = ini_get('variables_order');
  38.  
  39. foreach (['E' => '_ENV', 'G' => '_GET', 'P' => '_POST', 'C' => '_COOKIE', 'S' => '_SERVER'] as $key => $superglobal) {
  40. if (strpos($_registered, $key) === false) {
  41. continue;
  42. }
  43.  
  44. foreach (array_keys($$superglobal) as $var) {
  45. if (isset($GLOBALS[$var]) && !in_array($var, $_protected, true)) {
  46. $GLOBALS[$var] = NULL;
  47. }
  48. }
  49. }
  50. }
  51. }
  52.  
  53. set_error_handler('_error_handler');
  54. set_exception_handler('_exception_handler');
  55. register_shutdown_function('_shutdown_handler');
  56.  
  57. if (!empty($assign_to_config['subclass_prefix'])) {
  58. get_config(['subclass_prefix' => $assign_to_config['subclass_prefix']]);
  59. }
  60.  
  61. if ($composer_autoload = config_item('composer_autoload')) {
  62. if ($composer_autoload === true) {
  63. file_exists(APPPATH . 'vendor/autoload.php') ? require_once APPPATH . 'vendor/autoload.php' : log_message('error', '$config[\'composer_autoload\'] is set to TRUE but ' . APPPATH . 'vendor/autoload.php was not found.');
  64. }
  65. else if (file_exists($composer_autoload)) {
  66. require_once $composer_autoload;
  67. }
  68. else {
  69. log_message('error', 'Could not find the specified $config[\'composer_autoload\'] path: ' . $composer_autoload);
  70. }
  71. }
  72.  
  73. $BM = &load_class('Benchmark', 'core');
  74. $BM->mark('total_execution_time_start');
  75. $BM->mark('loading_time:_base_classes_start');
  76. $EXT = &load_class('Hooks', 'core');
  77. ........................................................................
  78. ........................................
  79. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement