Browse Source

htdocs: removed help

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1088 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
31c41353a6
  1. 4
      htdocs/cacher/help-en.lang.php
  2. 4
      htdocs/cacher/help-zh-simplified.lang.php
  3. 4
      htdocs/cacher/help-zh-traditional.lang.php
  4. 13
      htdocs/cacher/help.tpl.php
  5. 14
      htdocs/cacher/index.php
  6. 5
      htdocs/cacher/sub/testcoredump.tpl.php

4
htdocs/cacher/help-en.lang.php

@ -1,4 +0,0 @@
<dl>
<dt>Compiler errors: </dt> <dd><a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd>
<dt>Readonly protection: </dt> <dd><a href="http://xcache.lighttpd.net/wiki/ReadonlyProtection">ReadonlyProtection</a></dd>
</dl>

4
htdocs/cacher/help-zh-simplified.lang.php

@ -1,4 +0,0 @@
<dl>
<dt>编译错误: </dt> <dd><a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd>
<dt>只读保护: </dt> <dd><a href="http://xcache.lighttpd.net/wiki/ReadonlyProtection">ReadonlyProtection</a></dd>
</dl>

4
htdocs/cacher/help-zh-traditional.lang.php

@ -1,4 +0,0 @@
<dl>
<dt>编译错误: </dt> <dd><a href="http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log">ini.error-log</a> and <a href="http://cn2.php.net/manual/en/ref.errorfunc.php#ini.display-errors">ini.display-errors</a></dd>
<dt>只读保护: </dt> <dd><a href="http://xcache.lighttpd.net/wiki/ReadonlyProtection">ReadonlyProtection</a></dd>
</dl>

13
htdocs/cacher/help.tpl.php

@ -1,13 +0,0 @@
<?php include "../common/header.tpl.php"; ?>
<div class="switcher"><?php echo switcher("do", $doTypes); ?></div>
<?php if (ini_get("xcache.test")) { ?>
<form method="post" action="">
<div>
<input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo _T('Sure?'); ?>');" />
</div>
</form>
<?php } ?>
<div id="help">
<?php include get_language_file("help"); ?>
</div>
<?php include "../common/footer.tpl.php" ?>

14
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;

5
htdocs/cacher/sub/testcoredump.tpl.php

@ -0,0 +1,5 @@
<form method="post" action=""
><div
><input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo _T('Sure?'); ?>');"
/></div
></form>
Loading…
Cancel
Save