-
Notifications
You must be signed in to change notification settings - Fork 0
/
w3tc_deny_support.php
31 lines (29 loc) · 1023 Bytes
/
w3tc_deny_support.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
Plugin Name: W3TC deny support page
Plugin URI: #
Description: The W3TC support page has a vulnerability. This plugin denies access to ALL users to the W3TC support page, gives you time to change plugins.
Author: Ramon Fincken MijnPress.nl ManagedWPHosting.nl
Version: 1.0
Author URI: https://www.mijnpress.nl
*/
function mp_get__logo() {
return '<img style="float:left; margin-right: 10px;" src="https://www.managedwphosting.nl/static/logo/xxs.png" title="Logo ManagedWPHosting.nl">';
}
/* --------------------------------------------------------------------------------- */
/**
* Deny support page
*/
if(isset($_GET['page']) && $_GET['page'] == 'w3tc_support') {
$title= 'W3 totalcache vulnerability';
$logo = '';
if(function_exists('mp_get__logo')) {
$logo = mp_get__logo();
}
wp_die( '<h1>'.$title. '</h1><p>'.$logo. 'We have disabled access to this page</p>', $title);
}
/**
* /Deny support page
*/
/* --------------------------------------------------------------------------------- */
?>