芝麻web文件管理V1.00
编辑当前文件:/home/conskgoa/doughi.co.uk/Compat.zip
PK i\A LiteSpeedCache.phpnu [ getProperty('_instance'); $prop->setAccessible(true); $instance = $prop->getValue(); } catch (\ReflectionException $e) { return null; } if (!$instance) { return null; } $priority = has_filter('after_setup_theme', [$instance, 'init']); if ($priority === false) { return null; } return (int) $priority; } } PK i\B9 9 Log.phpnu [ $messages) { foreach ($messages as $message) { $o .= 'console.log(' . json_encode($plugin ? "{$plugin}: {$message}" : $message) . ');'; } } $o .= 'console.groupEnd();'; echo phastpress_script($o, ['data-phast-no-defer' => '']); } } PK i\m} Slimstat.phpnu [ ]*>\s*(/\*.*?\*/)?\s*var\s+SlimStatParams\s*=)~', '$1 data-phast-no-defer$2', $chunk); }, 8192); }); } } PK i\d>2 2 GoogleSiteKit.phpnu [ add_data('google_gtagjs', 'phast_no_defer', true); }); } } PK i\ߙ MonsterInsights.phpnu [ add_data('burst', 'phast_no_defer', true); wp_scripts()->add_data('burst-timeme', 'phast_no_defer', true); }); } } PK i\ʈ? ? Ajax.phpnu [ getPhastAPI()->deployOutputBufferForSnippets(); }); return true; } return false; } } PK i\xv[T TwentyTwentyOneDarkMode.phpnu [ afterSetupTheme(); }, 20); } private function afterSetupTheme() { if (!class_exists(Twenty_Twenty_One_Dark_Mode::class)) { return; } Log::add('twentytwentyone', 'adding script to set is-dark-theme class early'); $darkMode = $this->findDarkModeObject(); if (!$darkMode) { Log::add('twentytwentyone', 'could not find hook'); return; } try { $cls = new ReflectionClass($darkMode); $meth = $cls->getMethod('switch_should_render'); if (!$meth->invoke($darkMode)) { Log::add('twentytwentyone', 'switch won\'t render'); return; } } catch (Exception $e) { Log::add('twentytwentyone', 'unable to call Twenty_Twenty_One_Dark_Mode::switch_should_render; check error log'); error_log(sprintf( 'Caught %s while trying to call Twenty_Twenty_One_Dark_Mode::switch_should_render: (%d) %s', get_class($e), $e->getCode(), $e->getMessage() )); } add_filter('wp_body_open', function () { echo phastpress_script(file_get_contents(__FILE__ . '.js'), ['data-phast-no-defer' => '']); }); } private function findDarkModeObject() { foreach ($GLOBALS['wp_filter']['wp_footer'] as $priority => $actions) { foreach ($actions as $action) { if (is_array($action['function']) && sizeof($action['function']) == 2 && $action['function'][0] instanceof Twenty_Twenty_One_Dark_Mode ) { return $action['function'][0]; } } } return null; } } PK i\@Sr9 9 TwentyTwentyOneDarkMode.php.jsnu [ (function () { var isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches; if ("yes" === window.localStorage.getItem("twentytwentyoneDarkMode")) { isDarkMode = true; } else if ("no" === window.localStorage.getItem("twentytwentyoneDarkMode")) { isDarkMode = false; } if (isDarkMode) { document.documentElement.classList.add("is-dark-theme"); document.body.classList.add("is-dark-theme"); } else { document.documentElement.classList.remove("is-dark-theme"); document.body.classList.remove("is-dark-theme"); } })(); PK i\iZj GAGoogleAnalytics.phpnu [ template_redirect(); }); } private function template_redirect() { if (!class_exists(\AdThrive_Ads\Components\Ads\Main::class)) { return; } if (!isset($GLOBALS['wp_filter']['wp_head'])) { return; } $filter = $GLOBALS['wp_filter']['wp_head']; array_walk($filter->callbacks, function (&$callbacks) { array_walk($callbacks, function (&$callback) { $function = $callback['function']; if (is_array($function) && isset($function[0]) && $function[0] instanceof \AdThrive_Ads\Components\Ads\Main && isset($function[1]) && $function[1] === 'ad_head' ) { $callback['function'] = function (...$args) use ($function) { ob_start(function ($buffer) { return $this->processOutput($buffer); }); try { return call_user_func_array($function, $args); } finally { ob_end_flush(); } }; } }); }); } private function processOutput($output) { return preg_replace('~