Advertisement
Guest User

Untitled

a guest
Apr 16th, 2012
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.4.0
  8. * @ Author : DeZender
  9. * @ Release on : 30.03.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. define( 'GSP_CALLED', true );
  15. require_once( 'includes.inc.php' );
  16. if (!defined( 'INCLUDES_CALLED' )) {
  17. exit( 'Unable to load GSP-Panel files. Error: 1015' );
  18. }
  19.  
  20. if (!function_exists( 'LoadClass' )) {
  21. exit( 'Unable to load GSP-Panel files' );
  22. }
  23.  
  24. $fullpath = str_replace( array( '/includes/gsp-panel.php', '\includes\gsp-panel.php' ), '', realpath( __FILE__ ) );
  25. if (( ( !is_file( $fullpath . '/includes/mysql.conf.php' ) || !is_readable( $fullpath . '/includes/mysql.conf.php' ) ) || filesize( $fullpath . '/includes/mysql.conf.php' ) == 0 )) {
  26. if (!is_dir( $fullpath . '/installer' )) {
  27. exit( 'MySQL configuration and the installer are missing, please upload the installer.' );
  28. }
  29.  
  30. 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>' );
  31. }
  32.  
  33. if (version_compare( PHP_VERSION, '5.0.0', '<' )) {
  34. exit( 'This software requires php5 or higher' );
  35. }
  36.  
  37. if (( ( ( ( ( ( !extension_loaded( 'sockets' ) || !extension_loaded( 'mysql' ) ) || !extension_loaded( 'session' ) ) || !extension_loaded( 'curl' ) ) || !extension_loaded( 'soap' ) ) || !extension_loaded( 'gd' ) ) || !extension_loaded( 'xml' ) )) {
  38. exit( 'A required php extension is missing, please make sure sockets, mysql, session, soap, xml, gd, and curl are loaded' );
  39. }
  40.  
  41. $_REQUEST = array_merge( $_GET, $_POST );
  42. @header( 'Cache-Control: must-revalidate' );
  43. @header( 'Expires: 0' );
  44. @ini_set( 'magic_quotes_runtime', 0 );
  45. @ini_set( 'max_execution_time', '90' );
  46. @set_time_limit( 90 );
  47. $memlimt = str_replace( 'M', '', ini_get( 'memory_limit' ) );
  48. if ($memlimt < '16') {
  49. @ini_set( 'memory_limit', '64M' );
  50. }
  51.  
  52. if (file_exists( $fullpath . '/configuration.php' )) {
  53. include( $fullpath . '/configuration.php' );
  54. }
  55.  
  56. require_once( 'mysql.conf.php' );
  57. if (!LoadClass( 'security' )) {
  58. exit( 'Unable to load GSP-Panel files' );
  59. }
  60.  
  61. $security->CheckLogin( );
  62. $security->GetUserID( );
  63. $secheck = new zoJRVQBxn6ib( );
  64. $secheck->Run( );
  65. unset( $secheck );
  66. if (!LoadClass( 'gsp' )) {
  67. exit( 'Unable to load GSP-Panel files' );
  68. }
  69.  
  70. $gsp->connect_sql( );
  71. if (( ( ( ( ( ( ( !LoadClass( 'session' ) || !LoadClass( 'smarty' ) ) || !LoadClass( 'user' ) ) || !LoadClass( 'eventlog' ) ) || !LoadClass( 'strings' ) ) || !LoadClass( 'encryption' ) ) || !LoadClass( 'Display' ) ) || !LoadClass( 'safesql' ) )) {
  72. exit( 'Unable to load GSP-Panel files' );
  73. }
  74.  
  75. if (!isCli( )) {
  76. if (function_exists( 'phpinfo' )) {
  77. $phpmodules = parsePHPModules( );
  78. if (( !isset( $phpmodules['gd']['FreeType Support'] ) || empty( $phpmodules['gd']['FreeType Support'] ) )) {
  79. exit( 'FreeType support is required.' );
  80. }
  81. }
  82. }
  83. .........................................................
  84. .....................................
  85. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement