晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/stando/www/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
namespace W3TC;
/**
* W3 Total Cache Root_AdminMenu
*/
class Root_AdminMenu {
/**
* Current page
*
* @var string
*/
protected $_page = 'w3tc_dashboard';
private $_config;
function __construct() {
$this->_config = Dispatcher::config();
}
function generate_menu_array() {
$pages = array(
'w3tc_dashboard' => array(
'page_title' => __( 'Dashboard', 'w3-total-cache' ),
'menu_text' => __( 'Dashboard', 'w3-total-cache' ),
'visible_always' => true,
'order' => 100
),
'w3tc_general' => array(
'page_title' => __( 'General Settings', 'w3-total-cache' ),
'menu_text' => __( 'General Settings', 'w3-total-cache' ),
'visible_always' => false,
'order' => 200
),
'w3tc_pgcache' => array(
'page_title' => __( 'Page Cache', 'w3-total-cache' ),
'menu_text' => __( 'Page Cache', 'w3-total-cache' ),
'visible_always' => false,
'order' => 300
),
'w3tc_minify' => array(
'page_title' => __( 'Minify', 'w3-total-cache' ),
'menu_text' => __( 'Minify', 'w3-total-cache' ),
'visible_always' => false,
'order' => 400
),
'w3tc_dbcache' => array(
'page_title' => __( 'Database Cache', 'w3-total-cache' ),
'menu_text' => __( 'Database Cache', 'w3-total-cache' ),
'visible_always' => false,
'order' => 500
),
'w3tc_objectcache' => array(
'page_title' => __( 'Object Cache', 'w3-total-cache' ),
'menu_text' => __( 'Object Cache', 'w3-total-cache' ),
'visible_always' => false,
'order' => 600
),
'w3tc_browsercache' => array(
'page_title' => __( 'Browser Cache', 'w3-total-cache' ),
'menu_text' => __( 'Browser Cache', 'w3-total-cache' ),
'visible_always' => false,
'order' => 700
),
'w3tc_mobile' => array(
'page_title' => __( 'User Agent Groups', 'w3-total-cache' ),
'menu_text' => __( 'User Agent Groups', 'w3-total-cache' ),
'visible_always' => false,
'order' => 800
),
'w3tc_referrer' => array(
'page_title' => __( 'Referrer Groups', 'w3-total-cache' ),
'menu_text' => __( 'Referrer Groups', 'w3-total-cache' ),
'visible_always' => false,
'order' => 900
),
'w3tc_cdn' => array(
'page_title' => __( 'Content Delivery Network', 'w3-total-cache' ),
'menu_text' => __( '<acronym title="Content Delivery Network">CDN</acronym>', 'w3-total-cache' ),
'visible_always' => false,
'order' => 1000
),
'w3tc_faq' => array(
'page_title' => __( 'FAQ', 'w3-total-cache' ),
'menu_text' => __( 'FAQ', 'w3-total-cache' ),
'visible_always' => true,
'order' => 2000,
'redirect_faq' => '*'
),
'w3tc_support' => array(
'page_title' => __( 'Support', 'w3-total-cache' ),
'menu_text' => __( '<span style="color: red;">Support</span>', 'w3-total-cache' ),
'visible_always' => true,
'order' => 2100
),
'w3tc_install' => array(
'page_title' => __( 'Install', 'w3-total-cache' ),
'menu_text' => __( 'Install', 'w3-total-cache' ),
'visible_always' => false,
'order' => 2200
),
'w3tc_about' => array(
'page_title' => __( 'About', 'w3-total-cache' ),
'menu_text' => __( 'About', 'w3-total-cache' ),
'visible_always' => true,
'order' => 2300
)
);
$pages = apply_filters( 'w3tc_admin_menu', $pages, $this->_config );
return $pages;
}
function generate( $base_capability ) {
$pages = $this->generate_menu_array();
uasort( $pages, function($a, $b) {
return ($a['order'] - $b['order']);
}
);
add_menu_page( __( 'Performance', 'w3-total-cache' ),
__( 'Performance', 'w3-total-cache' ),
apply_filters( 'w3tc_capability_menu_w3tc_dashboard',
$base_capability ),
'w3tc_dashboard', '', 'none' );
$submenu_pages = array();
$is_master = ( is_network_admin() || !Util_Environment::is_wpmu() );
$remaining_visible = !$this->_config->get_boolean( 'common.force_master' );
foreach ( $pages as $slug => $titles ) {
if ( $is_master || $titles['visible_always'] || $remaining_visible ) {
$hook = add_submenu_page( 'w3tc_dashboard',
$titles['page_title'] . ' | W3 Total Cache',
$titles['menu_text'],
apply_filters( 'w3tc_capability_menu_' . $slug,
$base_capability ),
$slug,
array( $this, 'options' )
);
$submenu_pages[] = $hook;
}
}
return $submenu_pages;
}
/**
* Options page
*
* @return void
*/
function options() {
$this->_page = Util_Request::get_string( 'page' );
if ( !Util_Admin::is_w3tc_admin_page() )
$this->_page = 'w3tc_dashboard';
/*
* Hidden pages
*/
if ( isset( $_REQUEST['w3tc_dbcluster_config'] ) ) {
$options_dbcache = new DbCache_Page();
$options_dbcache->dbcluster_config();
}
/**
* Show tab
*/
switch ( $this->_page ) {
case 'w3tc_dashboard':
$options_dashboard = new Generic_Page_Dashboard();
$options_dashboard->options();
break;
case 'w3tc_general':
$options_general = new Generic_Page_General();
$options_general->options();
break;
case 'w3tc_pgcache':
$options_pgcache = new PgCache_Page();
$options_pgcache->options();
break;
case 'w3tc_minify':
$options_minify = new Minify_Page();
$options_minify->options();
break;
case 'w3tc_dbcache':
$options_dbcache = new DbCache_Page();
$options_dbcache->options();
break;
case 'w3tc_objectcache':
$options_objectcache = new ObjectCache_Page();
$options_objectcache->options();
break;
case 'w3tc_browsercache':
$options_browsercache = new BrowserCache_Page();
$options_browsercache->options();
break;
case 'w3tc_mobile':
$options_mobile = new Mobile_Page_UserAgentGroups();
$options_mobile->options();
break;
case 'w3tc_referrer':
$options_referrer = new Mobile_Page_ReferrerGroups();
$options_referrer->options();
break;
case 'w3tc_cdn':
$options_cdn = new Cdn_Page();
$options_cdn->options();
break;
case 'w3tc_stats':
$p = new UsageStatistics_Page();
$p->render();
break;
case 'w3tc_support':
$options_support = new Support_Page();
$options_support->options();
break;
case 'w3tc_install':
$options_install = new Generic_Page_Install();
$options_install->options();
break;
case 'w3tc_about':
$options_about = new Generic_Page_About();
$options_about->options();
break;
default:
// placeholder to make it the only way to show pages
// with the time
$view = new Base_Page_Settings();
$view->options();
do_action( "w3tc_settings_page-{$this->_page}" );
$view->render_footer();
break;
}
}
}