Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 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.0.7.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. session_name( 'DHRUFUSION' );
  15. session_set_cookie_params( 0, '/', NULL, false, true );
  16. session_start( );
  17.  
  18. if (isset( $_REQUEST['show_errors'] ) && ($_REQUEST['pass'] == 'jlkasdjfk234lsdfjasdklasjdlkdaklsjdlksa')) {
  19. $display_errors = true;
  20. $debug_output = true;
  21. $mysql_errors = true;
  22. }
  23. else {
  24. error_reporting( 0 );
  25. }
  26.  
  27. define( 'DHRUSOFT', true );
  28. define( 'ROOTDIR', dirname( __FILE__ ) );
  29.  
  30. if (defined( COMMSTART )) {
  31. }
  32. else {
  33. define( 'COMMSTART', true );
  34. include ROOTDIR . '/includes/comm.inc.php';
  35.  
  36. if (CLIENT == '1') {
  37. if (is_dir( 'installer' )) {
  38. echo '<div style="border: 1px dashed #cc0000;font-family:Tahoma;background-color:#FBEEEB;width:95%;padding:10px;color:#cc0000;"><strong>Security Warning</strong><br>The installer folder needs to be deleted for security reasons before using Dhru Fusion</div>';
  39. exit( );
  40. }
  41. }
  42.  
  43. if ((ADMIN == '1') && is_dir( 'installer' )) {
  44. header( 'Location: ../installer/index.php' );
  45. exit( );
  46. }
  47.  
  48. if (!($config['cart_page_limit'])) {
  49. $config['cart_page_limit'] = 100;
  50. }
  51.  
  52. if (isset( $_REQUEST['display_errors'] )) {
  53. unset( $_REQUEST[display_errors] );
  54. }
  55.  
  56. if (isset( $_REQUEST['debug_output'] )) {
  57. unset( $_REQUEST[debug_output] );
  58. }
  59.  
  60. if (isset( $_REQUEST['mysql_errors'] )) {
  61. unset( $_REQUEST[mysql_errors] );
  62. }
  63.  
  64. $PHP_SELF = htmlspecialchars_array( $_SERVER['PHP_SELF'] );
  65. $_SERVER['PHP_SELF'] = $PHP_SELF;
  66.  
  67. foreach ($_COOKIE as $reg_globals_key => $reg_globals_value) {
  68. unset( $_REQUEST[$reg_globals_key] );
  69. }
  70.  
  71. $_GET = htmlspecialchars_array( $_GET );
  72. $_POST = htmlspecialchars_array( $_POST );
  73. $_REQUEST = htmlspecialchars_array( $_REQUEST );
  74. $_COOKIE = htmlspecialchars_array( $_COOKIE );
  75.  
  76. foreach ($_REQUEST as $reg_globals_key => $reg_globals_value) {
  77. if (($reg_globals_key == '_SERVER') || ($reg_globals_key == '_COOKIE') || ($reg_globals_key == '_SESSION')) {
  78. exit( );
  79. }
  80.  
  81. $$reg_globals_key = $reg_globals_value;
  82. }
  83.  
  84. unset( $reg_globals_key, $reg_globals_value, $donloaddirpath, $cmslink, $_where, $where, $_ClientsDetails, $templatecompilerpath, $languagedirectorypath, $admindirpath );
  85.  
  86. if (file_exists( ROOTDIR . '/configs/config.php' )) {
  87. require ROOTDIR . '/configs/config.php';
  88. }
  89. else if (ADMIN == '1') {
  90. header( 'Location: ../installer/index.php' );
  91. exit( );
  92. }
  93. else {
  94. echo '<strong>Critical Error C404</strong><br>Could not connect to the database';
  95. exit( );
  96. }
  97.  
  98. if (!(isset( $overidephptimelimit ))) {
  99. $overidephptimelimit = 300;
  100. }
  101.  
  102. if (ini_get( 'safe_mode' )) {
  103. }
  104. else {
  105. @set_time_limit( $overidephptimelimit );
  106. }
  107.  
  108. include ROOTDIR . '/includes/mysqlfunction.inc.php';
  109. include ROOTDIR . '/includes/mysqlclass.php';
  110. $db = Database::obtain( $config['server'], $config['user'], $config['pass'], $config['database'] );
  111.  
  112. if ((CLIENT == '1') && !(isset( $mysql_errors ))) {
  113. $db->debug = false;
  114. }
  115.  
  116. $db->connect( );
  117. $db_conn2 = @mysql_connect( $config['server'], $config['user'], $config['pass'] );
  118.  
  119. if (!(@mysql_select_db( $config['database'] ))) {
  120. exit( '<strong>Critical Error</strong><br>Could not connect to the database' );
  121. (bool) true;
  122. }
  123.  
  124. mysql_query( 'set character_set_client=\'utf8\'' );
  125. mysql_query( 'set character_set_results=\'utf8\'' );
  126. mysql_query( 'set collation_connection=\'utf8_general_ci\'' );
  127. $DB_USER = $config['user'];
  128. $DB_PASS = $config['pass'];
  129. $DB_HOST = $config['server'];
  130. $DB_NAME = $config['database'];
  131. .................................................................................
  132. ........................................................
  133. ........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement