99999999) $b4 = ''; else if ($num > 9999999) $b4 = ''; if ($b4 != '') $af = ''; return $b4.$fmt.$af; } # function dockp($data, $user) { $pg = '

CKPool

'; $msg = msgEncode('stats', 'stats', array()); $rep = sendsockreply('stats', $msg); if ($rep == false) $ans = array(); else $ans = repDecode($rep); $pg .= 'TotalRAM: '.stnum($ans['totalram']).'
'; $pg .= "\n"; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; if ($ans['STATUS'] == 'ok') { $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $pg .= ""; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; } } $pg .= "
NameAllocatedStoreRAM
'.$ans['name:'.$i].''.stnum($ans['allocated:'.$i]).''.stnum($ans['store:'.$i]).''.stnum($ans['ram:'.$i]).'
\n"; return $pg; } # function show_ckp($page, $menu, $name, $user) { gopage(NULL, 'dockp', $page, $menu, $name, $user); } # ?>