当前位置: 首页>>代码示例>>PHP>>正文


PHP DAEMON_STATUS_ROUND函数代码示例

本文整理汇总了PHP中DAEMON_STATUS_ROUND函数的典型用法代码示例。如果您正苦于以下问题:PHP DAEMON_STATUS_ROUND函数的具体用法?PHP DAEMON_STATUS_ROUND怎么用?PHP DAEMON_STATUS_ROUND使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了DAEMON_STATUS_ROUND函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: lighttpd_status

function lighttpd_status()
{
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $tpl = new templates();
    $page = CurrentPageName();
    $ini->loadString(base64_decode($sock->getFrameWork('services.php?lighttpd-status=yes')));
    $LIGHTTPD = DAEMON_STATUS_ROUND("LIGHTTPD", $ini, null, 1);
    $LIGHTTPD_PID = $ini->_params["LIGHTTPD"]["master_pid"];
    $FRAMEWORK = DAEMON_STATUS_ROUND("FRAMEWORK", $ini, null, 1);
    $FRAMEWORK_PID = $ini->_params["FRAMEWORK"]["master_pid"];
    $php_cgi_array = unserialize(base64_decode($sock->getFrameWork('services.php?php-cgi-array=yes')));
    $LIGHTTPD_AR[] = "<table style='width:99%' class=form>";
    while (list($pid, $array) = each($php_cgi_array[$LIGHTTPD_PID])) {
        $RSS = FormatBytes($array["RSS"]);
        $VM = FormatBytes($array["VM"]);
        $TTL = $array["TTL"];
        $LIGHTTPD_AR[] = "<tr>\n\t\t<td><strong style='font-size:12px'>PID:{$pid}</strong></td>\n\t\t<td><strong style='font-size:12px'>RSS:{$RSS}</strong></td>\n\t\t<td><strong style='font-size:12px'>VM:{$VM}</strong></td>\n\t\t<td><strong style='font-size:12px'>TTL:{$TTL}</strong></td>\n\t\t</tr>\n\t\t";
    }
    $LIGHTTPD_AR[] = "</table>";
    $LIGHTTPDF_AR[] = "<table style='width:99%' class=form>";
    while (list($pid, $array) = each($php_cgi_array[$FRAMEWORK_PID])) {
        $RSS = FormatBytes($array["RSS"]);
        $VM = FormatBytes($array["VM"]);
        $TTL = $array["TTL"];
        $LIGHTTPDF_AR[] = "<tr>\n\t\t<td><strong style='font-size:12px'>PID:{$pid}</strong></td>\n\t\t<td><strong style='font-size:12px'>RSS:{$RSS}</strong></td>\n\t\t<td><strong style='font-size:12px'>VM:{$VM}</strong></td>\n\t\t<td><strong style='font-size:12px'>TTL:{$TTL}</strong></td>\n\t\t</tr>\n\t\t";
    }
    $LIGHTTPDF_AR[] = "</table>";
    $html = "<table style='width:99%' class=form>\n\t<tr>\n\t\t<td>{$LIGHTTPD} " . @implode("\n", $LIGHTTPD_AR) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td><hr></td>\n\t</tr>\n\t<tr>\n\t\t<td>{$FRAMEWORK}" . @implode("\n", $LIGHTTPDF_AR) . "</td>\n\t</tr>\n\t</table>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:lighttpd.php

示例2: status

function status()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $script = null;
    if (is_file("ressources/logs/global.status.ini")) {
        $ini = new Bs_IniHandler("ressources/logs/global.status.ini");
    } else {
        writelogs("ressources/logs/global.status.ini no such file");
        $sock = new sockets();
        $datas = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes'));
        $ini = new Bs_IniHandler($datas);
    }
    $sock = new sockets();
    $datas = $sock->getFrameWork('cmd.php?refresh-status=yes');
    $status = DAEMON_STATUS_ROUND("CLAMAV", $ini, null, 1);
    $q = new mysql();
    if ($q->TABLE_EXISTS("clamd_mem", "artica_events")) {
        if ($q->COUNT_ROWS("clamd_mem", "artica_events") > 1) {
            $script = "LoadAjax('clamd-graphs','{$page}?clamd-graphs=yes');";
        }
    }
    $html = "\n\t<div style='width:100%'>{$status}</div>\n\t<center style='margin-top:10px' id='clamd-graphs'></center>\n\t\n\t<script>\n\t\t{$script}\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:clamd.php

示例3: popup_status

function popup_status(){
	$ini=new Bs_IniHandler();
	$sock=new sockets();
	$ini->loadString(base64_decode($sock->getFrameWork('cmd.php?backuppc-ini-status=yes')));
	$status=DAEMON_STATUS_ROUND("APP_BACKUPPC",$ini);
	$page=CurrentPageName();
	$html="
	<table style='width:100%'>
	<tr>
		<td valign='top'>
			<img src='img/backuppc-128.png'>
			<hr>
		</td>
		<td valign='top'>
			$status		
		</td>			
	</tr>
	</table>
	
				<div style='font-size:14px'>
			{APP_BACKUPPC_TEXT}
			</div>
	
	<div id='users-backuppc-table'></div>
	
	<script>
		//LoadAjax('users-backuppc-table','$page?popup-users=yes');
	</script>
	
	";
	
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:35,代码来源:backup-pc.index.php

示例4: refresh_service_status

function refresh_service_status()
{
    if (!$GLOBALS["VERBOSE"]) {
        if (GET_CACHED(__FILE__, __FUNCTION__, md5($_GET["refresh-service-status"]), false, 1)) {
            return;
        }
    }
    $refresh["C-ICAP"] = "APP_C_ICAP";
    if (preg_match("#SERVICE-STATUS-ROUND-(.+)#", $_GET["refresh-service-status"], $re)) {
        $tpl = new templates();
        $key = $re[1];
        if ($GLOBALS["VERBOSE"]) {
            echo "Prod: {$key}\n<br>";
        }
        $content = GetIniContent($key);
        if ($content == null) {
            if (!is_file("ressources/logs/global.status.ini")) {
                return;
            }
            $bsini = new Bs_IniHandler("ressources/logs/global.status.ini");
        } else {
            $bsini = new Bs_IniHandler();
            $bsini->loadString($content);
        }
        if ($bsini->_params[$key]["service_name"] == null) {
            return null;
        }
        $prod = $bsini->_params[$key]["service_name"];
        $status = DAEMON_STATUS_ROUND($key, $bsini);
        $html = $tpl->_ENGINE_parse_body($status);
        SET_CACHED(__FILE__, __FUNCTION__, md5($_GET["refresh-service-status"]), $html);
        echo $html;
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:34,代码来源:Inotify.php

示例5: iscsi_status

function iscsi_status(){
	$sock=new sockets();
	$tpl=new templates();
	$ini=new Bs_IniHandler();
	$ini->loadString(base64_decode($sock->getFrameWork("cmd.php?iscsi-status=yes")));
	$status=DAEMON_STATUS_ROUND("APP_IETD",$ini,null,0);
	echo $tpl->_ENGINE_parse_body($status);		
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:8,代码来源:system.disks.iscsi.php

示例6: mysql_syslogs_service_status

function mysql_syslogs_service_status()
{
    $tpl = new templates();
    $sock = new sockets();
    $ini = new Bs_IniHandler();
    $ini->loadString(base64_decode($sock->getFrameWork('system.php?syslogdb-status=yes')));
    $APP_SQUID_DB = DAEMON_STATUS_ROUND("APP_SYSLOG_DB", $ini, null, 1);
    echo $tpl->_ENGINE_parse_body($APP_SQUID_DB);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:9,代码来源:miniadm.webstats.logrotate.php

示例7: MailGraphStatus

function MailGraphStatus()
{
    $tpl = new templates();
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $ini->loadFile("ressources/logs/global.status.ini");
    $status = DAEMON_STATUS_ROUND("MAILGRAPH", $ini, null);
    return $tpl->_ENGINE_parse_body($status);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:9,代码来源:mailgraph.php

示例8: FetchMailStatus

function FetchMailStatus(){
	$tpl=new templates();
	$ini=new Bs_IniHandler();
	$sock=new sockets();
	$datas=implode("\n",unserialize(base64_decode($sock->getFrameWork('cmd.php?fetchmail-status=yes'))));
	$ini->loadString($datas);
	$status=DAEMON_STATUS_ROUND("FETCHMAIL",$ini,null)."<br>".DAEMON_STATUS_ROUND("FETCHMAIL_LOGGER",$ini,null);
	echo $tpl->_ENGINE_parse_body($status);
	}
开发者ID:rsd,项目名称:artica-1.5,代码行数:9,代码来源:fetchmail.index.php

示例9: cntlm_status

function cntlm_status()
{
    $sock = new sockets();
    $tpl = new templates();
    $ini = new Bs_IniHandler();
    $ini->loadString(base64_decode($sock->getFrameWork('cmd.php?cntlm-ini-status=yes')));
    $APP_CNTLM = DAEMON_STATUS_ROUND("APP_CNTLM_PARENT", $ini, null, 0);
    echo $tpl->_ENGINE_parse_body($APP_CNTLM);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:squid.master-ntlm.php

示例10: status

function status()
{
    $sock = new sockets();
    $datas = base64_decode($sock->getFrameWork("cmd.php?squidguard-status=yes"));
    $ini = new Bs_IniHandler();
    $ini->loadString($datas);
    $tpl = new templates();
    $status = DAEMON_STATUS_ROUND("APP_SQUIDGUARD", $ini);
    echo $tpl->_ENGINE_parse_body($status);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:squidguard.status.php

示例11: vsftpd_status

function vsftpd_status()
{
    $tpl = new templates();
    $sock = new sockets();
    $ini = new Bs_IniHandler();
    $page = CurrentPageName();
    $ini->loadString(base64_decode($sock->getFrameWork('vsftpd.php?status=yes')));
    $html = DAEMON_STATUS_ROUND("APP_VSFTPD", $ini, null, 0) . "\n\t<div style='margin-top:15px;text-align:right'>" . imgtootltip("refresh-32.png", "{refresh}", "LoadAjax('vsftpd-status','{$page}?vsftpd-status=yes');") . "</div>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:vsftpd.php

示例12: status_service

function status_service()
{
    $sock = new sockets();
    $tpl = new templates();
    $ini = new Bs_IniHandler();
    $page = CurrentPageName();
    $ini->loadString(base64_decode($sock->getFrameWork("cmd.php?sabnzbdplus-ini-status=yes")));
    $status = DAEMON_STATUS_ROUND("APP_SABNZBDPLUS", $ini, null, 0);
    echo $tpl->_ENGINE_parse_body($status);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:sabnzbdplus.php

示例13: status

function status()
{
    $page = CurrentPageName();
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $ini->loadString(base64_decode($sock->getFrameWork('cmd.php?ocsagntlnx-status=yes')));
    $status = DAEMON_STATUS_ROUND("APP_OCSI_LINUX_CLIENT", $ini);
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($status);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:ocs.agent.php

示例14: FetchMailStatus

function FetchMailStatus()
{
    $tpl = new templates();
    $ini = new Bs_IniHandler();
    $sock = new sockets();
    $datas = implode("\n", unserialize(base64_decode($sock->getFrameWork('cmd.php?fetchmail-status=yes'))));
    $ini->loadString($datas);
    $status = "\n\t<div style='width:98%' class=form>\n\t<table style='width:90%'>\n\t<tr>\n\t<td>" . DAEMON_STATUS_ROUND("FETCHMAIL", $ini, null) . "</td>\n\t</tr>\n\t<tr>\n\t<td>" . DAEMON_STATUS_ROUND("FETCHMAIL_LOGGER", $ini, null) . "</td>\n\t</tr>\t\n\t</table></div>";
    echo $tpl->_ENGINE_parse_body($status);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:10,代码来源:fetchmail.index.php

示例15: services_status

function services_status()
{
    $sock = new sockets();
    $ini = new Bs_IniHandler();
    $ini->loadString(base64_decode($sock->getFrameWork('cmd.php?syncthing-ini-status=yes')));
    $APP_SYNCTHING = DAEMON_STATUS_ROUND("APP_SYNCTHING", $ini, null, 0);
    $tr[] = $APP_SYNCTHING;
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body(@implode("<p>&nbsp;</p>", $tr));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:syncthing.php


注:本文中的DAEMON_STATUS_ROUND函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。