REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.25 KB
Close
/home/jambtst2015/public_html/tomorrowzfurniture.com/wp-content/plugins/wp-super-cache/plugins/multisite.php
Text
Base64
<?php if ( is_multisite() ) { add_cacheaction( 'add_cacheaction', 'wp_super_cache_multisite_init' ); } function wp_super_cache_multisite_init() { add_filter( 'wpmu_blogs_columns', 'wp_super_cache_blogs_col' ); add_action( 'manage_sites_custom_column', 'wp_super_cache_blogs_field', 10, 2 ); add_action( 'init', 'wp_super_cache_override_on_flag', 9 ); } function wp_super_cache_blogs_col( $col ) { $col['wp_super_cache'] = __( 'Cached', 'wp-super-cache' ); return $col; } function wp_super_cache_blogs_field( $name, $blog_id ) { if ( 'wp_super_cache' !== $name ) { return false; } $blog_id = (int) $blog_id; if ( isset( $_GET['id'], $_GET['action'], $_GET['_wpnonce'] ) && $blog_id === filter_input( INPUT_GET, 'id', FILTER_VALIDATE_INT ) && wp_verify_nonce( $_GET['_wpnonce'], 'wp-cache' . $blog_id ) ) { if ( 'disable_cache' === filter_input( INPUT_GET, 'action' ) ) { add_blog_option( $blog_id, 'wp_super_cache_disabled', 1 ); } elseif ( 'enable_cache' === filter_input( INPUT_GET, 'action' ) ) { delete_blog_option( $blog_id, 'wp_super_cache_disabled' ); } } if ( 1 === (int) get_blog_option( $blog_id, 'wp_super_cache_disabled' ) ) { echo '<a href="' . wp_nonce_url( add_query_arg( array( 'action' => 'enable_cache', 'id' => $blog_id ) ), 'wp-cache' . $blog_id ) . '">' . __( 'Enable', 'wp-super-cache' ) . '</a>'; } else { echo '<a href="' . wp_nonce_url( add_query_arg( array( 'action' => 'disable_cache', 'id' => $blog_id ) ), 'wp-cache' . $blog_id ) . '">' . __( 'Disable', 'wp-super-cache' ) . '</a>'; } } function wp_super_cache_multisite_notice() { if ( 'wpsupercache' === filter_input( INPUT_GET, 'page' ) ) { echo '<div class="error"><p><strong>' . __( 'Caching has been disabled on this blog on the Network Admin Sites page.', 'wp-super-cache' ) . '</strong></p></div>'; } } function wp_super_cache_override_on_flag() { global $cache_enabled, $super_cache_enabled; if ( true !== $cache_enabled ) { return false; } if ( 1 === (int) get_option( 'wp_super_cache_disabled' ) ) { $cache_enabled = false; $super_cache_enabled = false; define( 'DONOTCACHEPAGE', 1 ); define( 'SUBMITDISABLED', 'disabled style="color: #aaa" ' ); if ( is_admin() ) { add_action( 'admin_notices', 'wp_super_cache_multisite_notice' ); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
391 B
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
awaitingmoderation.php
2.82 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
badbehaviour.php
4.00 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
domain-mapping.php
4.47 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dynamic-cache-test.php
8.07 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jetpack.php
4.14 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
multisite.php
2.25 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).