Changeset 1066


Ignore:
Timestamp:
2012-07-27T19:00:08+02:00 (21 months ago)
Author:
moo
Message:

htdocs/cacher: adds coredump test

Location:
trunk/htdocs/cacher
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/cacher-zh-simplified.lang.php

    r1064 r1066  
    88        'Clear' 
    99        => '清除', 
    10         'Sure to clear?' 
    11         => '确认要清除吗?', 
     10        'Sure?' 
     11        => '确认?', 
    1212        '% Free' 
    1313        => '% 剩余', 
  • trunk/htdocs/cacher/cacher-zh-traditional.lang.php

    r1064 r1066  
    88        'Clear' 
    99        => '清除', 
    10         'Sure to clear?' 
    11         => '確認要清除嗎?', 
     10        'Sure?' 
     11        => '確認?', 
    1212        '% Free' 
    1313        => '% 剩余', 
  • trunk/htdocs/cacher/cacher.php

    r1064 r1066  
    179179} 
    180180processAction(); 
     181if (isset($_POST['coredump'])) { 
     182    xcache_coredump(); 
     183} 
    181184// }}} 
    182185// {{{ load info/list 
  • trunk/htdocs/cacher/cacher.tpl.php

    r1064 r1066  
    6060    $l_compiling = _('Compiling'); 
    6161    $l_normal = _('Normal'); 
    62     $l_clear_confirm = _('Sure to clear?'); 
     62    $l_confirm = _('Sure?'); 
    6363    foreach ($cacheinfos as $i => $ci) { 
    6464        echo " 
     
    129129                    ><input type="hidden" name="type" value="{$ci['type']}" 
    130130                    /><input type="hidden" name="cacheid" value="{$ci['cacheid']}" 
    131                     /><input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_clear_confirm}');" 
     131                    /><input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_confirm}');" 
    132132                    /><input type="submit" name="{$enabledisable}" value="{$l_enabledisable}" class="submit" 
    133133                /></div 
     
    312312    ob_end_flush(); 
    313313} 
     314if (ini_get("xcache.test")) { 
     315?> 
     316<form method="post" action="" 
     317    ><div 
     318        /><input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo $l_confirm ?>');" 
     319    /></div 
     320></form> 
     321<?php 
     322} 
    314323if ($moduleinfo) { 
    315324    $t_moduleinfo = _("Module Info"); 
Note: See TracChangeset for help on using the changeset viewer.