System update

when updating do not copy over following files:

  • index.php
  • wp-settings.php
  • xml-rpx.php
  • entire wp-content folder

if however wp-settings need to updated than reinsert following code

$checker = get_option('ap24_cache_deactivation');

if (!$_POST && strpos ($_SERVER['REQUEST_URI'], 'wp-admin') === false && strpos ($_SERVER['REQUEST_URI'], 'ap24-vehicle-service') === false && !isset ($_GET['dm']) && get_current_blog_id() != 1 && $checker != 1 && strpos(join(array_keys($_COOKIE)), 'wordpress_logged_in') === false && $_GET['ajax'] != "1") {
require_once (ABSPATH . 'wp-content/plugins/wp-mobile-detect/mobile-detect.php');
$marian_mobile_detect = new Mobile_Detect;
$is_ie = (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false));
$is_chrome = strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false;
$marian_mobile_mode = 4 * $is_chrome + 3 * $is_ie + 2 * ($marian_mobile_detect->isMobile() && ! $marian_mobile_detect->isTablet()) + ($marian_mobile_detect->isTablet());
$marian_mega_cache = array ($_SERVER['HTTP_HOST'], get_current_blog_id(), $_SERVER['REQUEST_URI'], $marian_mobile_mode);
$marian_mega_file = ABSPATH . 'wp-content/uploads/marian-cache/' . get_current_blog_id() . '-' . md5 (serialize ($marian_mega_cache)) . '.html';
if (file_exists ($marian_mega_file)) {
readfile ($marian_mega_file);
die;
}
ob_start(function ($content) {
global $marian_mega_file;
if ($marian_mega_file && strpos (join (headers_list()), 'ocation') === false) {
file_put_contents ($marian_mega_file, $content);
}
return $content;
});
}