Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 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. $start = microtime(true);
  15. define('GSP_CALLED', true);
  16. require_once 'includes.inc.php';
  17.  
  18. if (!function_exists('LC')) {
  19. exit('Unable to load GSP-Panel files');
  20. }
  21.  
  22. @define('DOC_ROOT', @str_replace(array('/includes/gsp-panel.php', '\\includes\\gsp-panel.php'), '', @realpath(__FILE__)));
  23.  
  24. if (!is_file(DOC_ROOT . '/includes/mysql.conf.php') || !is_readable(DOC_ROOT . '/includes/mysql.conf.php') || filesize(DOC_ROOT . '/includes/mysql.conf.php') == 0) {
  25. if (!is_dir(DOC_ROOT . '/installer')) {
  26. exit('The MySQL configuration and the installer are missing, please upload the installer.');
  27. }
  28.  
  29. exit('GSP-Panel is not installed, please go to the <a href="installer/index.php">installer</a> to continue.<br />For more information please visit <a href="http://wiki.gsp-panel.com/gettingstarted:install_frontend">http://wiki.gsp-panel.com/gettingstarted:install_frontend</a>');
  30. }
  31.  
  32. if (version_compare(PHP_VERSION, '5.3.0', '<')) {
  33. exit('This software requires PHP 5.3 or higher');
  34. }
  35.  
  36. $requiredExtensions = array('sockets', 'mysqli', 'session', 'curl', 'soap', 'xml', 'mcrypt', 'json');
  37.  
  38. foreach ($requiredExtensions as $rq) {
  39. if (!extension_loaded($rq)) {
  40. exit('A required php extension is missing, please make sure ' . $rq . ' is loaded');
  41. }
  42. }
  43.  
  44. if (!is_dir(DOC_ROOT . '/installer')) {
  45. exit("The 'installer' folder is missing, please upload this folder.");
  46. }
  47.  
  48. $_REQUEST = array_merge($_GET, $_POST);
  49.  
  50. if (file_exists(DOC_ROOT . '/configuration.php')) {
  51. include DOC_ROOT . '/configuration.php';
  52. }
  53.  
  54. @header('Cache-Control: must-revalidate');
  55. @header('Expires: 0');
  56. @ini_set('magic_quotes_runtime', 0);
  57. @ini_set('max_execution_time', '90');
  58. @set_time_limit(90);
  59. $memlimt = str_replace('M', '', @ini_get('memory_limit'));
  60.  
  61. if ($memlimt < '16') {
  62. @ini_set('memory_limit', '64M');
  63. }
  64.  
  65. $gsp = GSP::getInstance();
  66. $session = new session();
  67. $display = Display::getInstance();
  68. $smarty = Display::getSmartyInstance();
  69. ............................................................................
  70. .........................................
  71. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement