Browse Source

htdocs/cacher: adds coredump test

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1066 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
894dca755a
  1. 4
      htdocs/cacher/cacher-zh-simplified.lang.php
  2. 4
      htdocs/cacher/cacher-zh-traditional.lang.php
  3. 3
      htdocs/cacher/cacher.php
  4. 13
      htdocs/cacher/cacher.tpl.php

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

@ -7,8 +7,8 @@ $strings = array(
=> '帮助',
'Clear'
=> '清除',
'Sure to clear?'
=> '确认要清除吗?',
'Sure?'
=> '确认?',
'% Free'
=> '% 剩余',
'% Used'

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

@ -7,8 +7,8 @@ $strings = array(
=> '說明',
'Clear'
=> '清除',
'Sure to clear?'
=> '確認要清除嗎?',
'Sure?'
=> '確認?',
'% Free'
=> '% 剩余',
'% Used'

3
htdocs/cacher/cacher.php

@ -178,6 +178,9 @@ function processAction()
}
}
processAction();
if (isset($_POST['coredump'])) {
xcache_coredump();
}
// }}}
// {{{ load info/list
$cacheinfos = array();

13
htdocs/cacher/cacher.tpl.php

@ -59,7 +59,7 @@ $b = new Cycle('class="col1"', 'class="col2"');
$l_enable = _('Enable');
$l_compiling = _('Compiling');
$l_normal = _('Normal');
$l_clear_confirm = _('Sure to clear?');
$l_confirm = _('Sure?');
foreach ($cacheinfos as $i => $ci) {
echo "
<tr ", $a->next(), ">";
@ -128,7 +128,7 @@ $b = new Cycle('class="col1"', 'class="col2"');
><div
><input type="hidden" name="type" value="{$ci['type']}"
/><input type="hidden" name="cacheid" value="{$ci['cacheid']}"
/><input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_clear_confirm}');"
/><input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_confirm}');"
/><input type="submit" name="{$enabledisable}" value="{$l_enabledisable}" class="submit"
/></div
></form
@ -311,6 +311,15 @@ ENTRY;
}
ob_end_flush();
}
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 $l_confirm ?>');"
/></div
></form>
<?php
}
if ($moduleinfo) {
$t_moduleinfo = _("Module Info");
echo <<<HTML

Loading…
Cancel
Save