From 31c41353a6d58acfe66e7710a8f6393198743e7c Mon Sep 17 00:00:00 2001 From: Xuefer Date: Mon, 30 Jul 2012 07:56:32 +0000 Subject: [PATCH] htdocs: removed help git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1088 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- htdocs/cacher/help-en.lang.php | 4 ---- htdocs/cacher/help-zh-simplified.lang.php | 4 ---- htdocs/cacher/help-zh-traditional.lang.php | 4 ---- htdocs/cacher/help.tpl.php | 13 ------------- htdocs/cacher/index.php | 14 ++++++++------ htdocs/cacher/sub/testcoredump.tpl.php | 5 +++++ 6 files changed, 13 insertions(+), 31 deletions(-) delete mode 100644 htdocs/cacher/help-en.lang.php delete mode 100644 htdocs/cacher/help-zh-simplified.lang.php delete mode 100644 htdocs/cacher/help-zh-traditional.lang.php delete mode 100644 htdocs/cacher/help.tpl.php create mode 100644 htdocs/cacher/sub/testcoredump.tpl.php diff --git a/htdocs/cacher/help-en.lang.php b/htdocs/cacher/help-en.lang.php deleted file mode 100644 index 616a54e..0000000 --- a/htdocs/cacher/help-en.lang.php +++ /dev/null @@ -1,4 +0,0 @@ -
-
Compiler errors:
ini.error-log and ini.display-errors
-
Readonly protection:
ReadonlyProtection
-
diff --git a/htdocs/cacher/help-zh-simplified.lang.php b/htdocs/cacher/help-zh-simplified.lang.php deleted file mode 100644 index cef03a3..0000000 --- a/htdocs/cacher/help-zh-simplified.lang.php +++ /dev/null @@ -1,4 +0,0 @@ -
-
编译错误:
ini.error-log and ini.display-errors
-
只读保护:
ReadonlyProtection
-
diff --git a/htdocs/cacher/help-zh-traditional.lang.php b/htdocs/cacher/help-zh-traditional.lang.php deleted file mode 100644 index cef03a3..0000000 --- a/htdocs/cacher/help-zh-traditional.lang.php +++ /dev/null @@ -1,4 +0,0 @@ -
-
编译错误:
ini.error-log and ini.display-errors
-
只读保护:
ReadonlyProtection
-
diff --git a/htdocs/cacher/help.tpl.php b/htdocs/cacher/help.tpl.php deleted file mode 100644 index 39982fa..0000000 --- a/htdocs/cacher/help.tpl.php +++ /dev/null @@ -1,13 +0,0 @@ - -
- -
-
- -
-
- -
- -
- diff --git a/htdocs/cacher/index.php b/htdocs/cacher/index.php index 0f25bdd..bfe9b15 100644 --- a/htdocs/cacher/index.php +++ b/htdocs/cacher/index.php @@ -143,7 +143,14 @@ function getModuleInfo() // {{{ $moduleInfo[] = $info; } } - return implode('', $moduleInfo); + $moduleInfo = implode('', $moduleInfo); + if (ini_get("xcache.test")) { + ob_start(); + include "./sub/testcoredump.tpl.php"; + $test_coredump = trim(ob_get_clean()); + $moduleInfo = str_replace('xcache.coredump_directory', 'xcache.coredump_directory' . $test_coredump, $moduleInfo); + } + return $moduleInfo; } // }}} function getCacheInfos() // {{{ @@ -280,7 +287,6 @@ $doTypes = array( '' => _T('Summary'), 'listphp' => _T('List PHP'), 'listvar' => _T('List Var Data'), - 'help' => _T('Help'), ); function processPOST() // {{{ @@ -328,10 +334,6 @@ case 'listvar': include "./listentries.tpl.php"; break; -case 'help': - include "./help.tpl.php"; - break; - default: include "./summary.tpl.php"; break; diff --git a/htdocs/cacher/sub/testcoredump.tpl.php b/htdocs/cacher/sub/testcoredump.tpl.php new file mode 100644 index 0000000..1ae390a --- /dev/null +++ b/htdocs/cacher/sub/testcoredump.tpl.php @@ -0,0 +1,5 @@ +