/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to admin/cacheinfo.php

  • Committer: Suren A. Chilingaryan
  • Date: 2018-04-13 03:34:06 UTC
  • Revision ID: csa@suren.me-20180413033406-2g0diz65icnnruw8
Fix Active/InActive resolution in cache listings

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
}
91
91
*/
92
92
 
93
 
$flags = REQUEST::NEED_ITEMINFO|REQUEST::NEED_INFO|CACHE::TABLE_INFO|CACHE::NEED_REQUESTS|CACHE::FIND_BROKEN;
 
93
$flags = REQUEST::NEED_ITEMINFO|REQUEST::NEED_INFO|CACHE::TABLE_INFO|CACHE::NEED_REQUESTS|CACHE::FIND_BROKEN|REQUEST::LIST_WILDCARDED;
94
94
 
95
95
$cache = new CACHEDB();
96
96
$list = $cache->GetCacheList($flags);
204
204
      foreach ($servers as $server => &$srv) {
205
205
        if (isset($_GET['group_info'])&&(($filter_server === false)||($filter_server == $server))) $show_mark = true;
206
206
        else $show_mark = false;
 
207
        $i = 0;
207
208
        do {
208
209
            $grp0 = $groups[$srv['groups'][$i++]];
209
210
        } while ((is_numeric($grp0))&&(!$list[$grp0]['req']));
 
211
 
210
212
        ?><div class="source" <?= ($filter_server == $server)?"style=\"border: 2px solid pink;\"":""?>>
211
213
        <h3> Server: <a href="index.php?page=cacheinfo.php&source_info&group_info&table_info&filter=<?=$server?>"><?=$server?></a><?
212
214
        if ($show_mark) {
259
261
            echo translate("Active: yes") . "<br/>";
260
262
            if ($info['disconnected']) {
261
263
                echo translate("Mode: disconnected") . "<br/>";
 
264
            } else if ($info['wildcarded']) {
 
265
                echo translate("Mode: wildcarded") . "<br/>";
262
266
            }
263
267
        } else if ($info['disconnected']) {
264
268
            echo translate("Active: unknown");