Example #1
0
function zb_DBStatsRenderContainer()
{
    $result = '';
    $result .= wf_AjaxLoader();
    $result .= wf_AjaxLink('?module=report_sysload&ajaxdbstats=true', __('Database stats'), 'dbscontainer', false, 'ubButton');
    $result .= wf_AjaxLink('?module=report_sysload&ajaxdbcheck=true', __('Check database'), 'dbscontainer', true, 'ubButton');
    $result .= wf_tag('table', false, 'sortable', 'width="100%" border="0" id="dbscontainer"') . zb_DBStatsRender() . wf_tag('table', true);
    return $result;
}
Example #2
0
 if (wf_CheckGet(array('checkupdates'))) {
     zb_BillingCheckUpdates();
 }
 if (wf_CheckGet(array('phpinfo'))) {
     phpinfo();
     die;
 }
 zb_BillingStats(false);
 //ajax data loaders
 //database check
 if (wf_CheckGet(array('ajaxdbcheck'))) {
     die(zb_DBCheckRender());
 }
 //database stats
 if (wf_CheckGet(array('ajaxdbstats'))) {
     die(zb_DBStatsRender());
 }
 $globconf = $ubillingConfig->getBilling();
 $alterconf = $ubillingConfig->getAlter();
 $monit_url = $globconf['PHPSYSINFO'];
 //custom scripts output handling. We must run this before all others.
 if (isset($alterconf['SYSLOAD_CUSTOM_SCRIPTS'])) {
     if (!empty($alterconf['SYSLOAD_CUSTOM_SCRIPTS'])) {
         $customScriptsData = web_ReportSysloadCustomScripts($alterconf['SYSLOAD_CUSTOM_SCRIPTS']);
     }
 }
 $sysInfoData = '';
 //phpinfo()
 $phpInfoCode = wf_modal(__('Check required PHP extensions'), __('Check required PHP extensions'), zb_CheckPHPExtensions(), 'ubButton', '800', '600');
 if ($alterconf['UBCACHE_STORAGE'] == 'memcached') {
     $phpInfoCode .= wf_modal(__('Stats') . ' ' . __('Memcached'), __('Stats') . ' ' . __('Memcached'), web_MemCachedRenderStats(), 'ubButton', '800', '600');