Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.7.0
- * @ Author : DeZender
- * @ Release on : 22.06.2017
- * @ Official site : http://DeZender.Net
- *
- */
- session_name( 'DHRUFUSION' );
- session_set_cookie_params( 0, '/', NULL, false, true );
- session_start( );
- if (isset( $_REQUEST['show_errors'] ) && ($_REQUEST['pass'] == 'jlkasdjfk234lsdfjasdklasjdlkdaklsjdlksa')) {
- $display_errors = true;
- $debug_output = true;
- $mysql_errors = true;
- }
- else {
- error_reporting( 0 );
- }
- define( 'DHRUSOFT', true );
- define( 'ROOTDIR', dirname( __FILE__ ) );
- if (defined( COMMSTART )) {
- }
- else {
- define( 'COMMSTART', true );
- include ROOTDIR . '/includes/comm.inc.php';
- if (CLIENT == '1') {
- if (is_dir( 'installer' )) {
- 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>';
- exit( );
- }
- }
- if ((ADMIN == '1') && is_dir( 'installer' )) {
- header( 'Location: ../installer/index.php' );
- exit( );
- }
- if (!($config['cart_page_limit'])) {
- $config['cart_page_limit'] = 100;
- }
- if (isset( $_REQUEST['display_errors'] )) {
- unset( $_REQUEST[display_errors] );
- }
- if (isset( $_REQUEST['debug_output'] )) {
- unset( $_REQUEST[debug_output] );
- }
- if (isset( $_REQUEST['mysql_errors'] )) {
- unset( $_REQUEST[mysql_errors] );
- }
- $PHP_SELF = htmlspecialchars_array( $_SERVER['PHP_SELF'] );
- $_SERVER['PHP_SELF'] = $PHP_SELF;
- foreach ($_COOKIE as $reg_globals_key => $reg_globals_value) {
- unset( $_REQUEST[$reg_globals_key] );
- }
- $_GET = htmlspecialchars_array( $_GET );
- $_POST = htmlspecialchars_array( $_POST );
- $_REQUEST = htmlspecialchars_array( $_REQUEST );
- $_COOKIE = htmlspecialchars_array( $_COOKIE );
- foreach ($_REQUEST as $reg_globals_key => $reg_globals_value) {
- if (($reg_globals_key == '_SERVER') || ($reg_globals_key == '_COOKIE') || ($reg_globals_key == '_SESSION')) {
- exit( );
- }
- $$reg_globals_key = $reg_globals_value;
- }
- unset( $reg_globals_key, $reg_globals_value, $donloaddirpath, $cmslink, $_where, $where, $_ClientsDetails, $templatecompilerpath, $languagedirectorypath, $admindirpath );
- if (file_exists( ROOTDIR . '/configs/config.php' )) {
- require ROOTDIR . '/configs/config.php';
- }
- else if (ADMIN == '1') {
- header( 'Location: ../installer/index.php' );
- exit( );
- }
- else {
- echo '<strong>Critical Error C404</strong><br>Could not connect to the database';
- exit( );
- }
- if (!(isset( $overidephptimelimit ))) {
- $overidephptimelimit = 300;
- }
- if (ini_get( 'safe_mode' )) {
- }
- else {
- @set_time_limit( $overidephptimelimit );
- }
- include ROOTDIR . '/includes/mysqlfunction.inc.php';
- include ROOTDIR . '/includes/mysqlclass.php';
- $db = Database::obtain( $config['server'], $config['user'], $config['pass'], $config['database'] );
- if ((CLIENT == '1') && !(isset( $mysql_errors ))) {
- $db->debug = false;
- }
- $db->connect( );
- $db_conn2 = @mysql_connect( $config['server'], $config['user'], $config['pass'] );
- if (!(@mysql_select_db( $config['database'] ))) {
- exit( '<strong>Critical Error</strong><br>Could not connect to the database' );
- (bool) true;
- }
- mysql_query( 'set character_set_client=\'utf8\'' );
- mysql_query( 'set character_set_results=\'utf8\'' );
- mysql_query( 'set collation_connection=\'utf8_general_ci\'' );
- $DB_USER = $config['user'];
- $DB_PASS = $config['pass'];
- $DB_HOST = $config['server'];
- $DB_NAME = $config['database'];
- .................................................................................
- ........................................................
- ........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement