PHP 7.4.33
Preview: db.php Size: 1.37 KB
/var/www/fresco.wpress.dk/httpdocs/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();
	}
}

Directory Contents

Dirs: 9 × Files: 6
Name Size Perms Modified Actions
cache DIR
- drwxrwxr-x 2023-10-03 11:29:20
Edit Download
plugins DIR
- drwxrwxr-x 2023-10-03 11:28:53
Edit Download
- drwxrwxr-x 2023-08-18 07:20:22
Edit Download
themes DIR
- drwxrwxr-x 2023-10-03 11:29:37
Edit Download
upgrade DIR
- drwxrwxr-x 2023-10-03 11:29:50
Edit Download
- drwxrwxr-x 2023-10-03 11:29:33
Edit Download
uploads DIR
- drwxrwxr-x 2023-09-29 09:41:27
Edit Download
- drwxrwxr-x 2023-10-03 11:29:20
Edit Download
wflogs DIR
- drwxrwxr-x 2023-10-03 11:53:56
Edit Download
1.16 KB lrw-rw-r-- 2021-11-11 07:20:38
Edit Download
1.37 KB lrw-rw-r-- 2021-11-11 10:09:22
Edit Download
49.90 KB lrw-r--r-- 2023-10-03 11:29:50
Edit Download
30 B lrw-rw-r-- 2023-10-03 09:35:39
Edit Download
4.41 KB lrw-rw-r-- 2021-11-11 10:09:22
Edit Download
182 B lrw-rw-r-- 2020-10-27 10:14:26
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).