Exemplo n.º 1
0
function PostfixLogs()
{
    $sock = new sockets();
    $tbl = unserialize(base64_decode($sock->getFrameWork('cmd.php?postfix-tail=yes')));
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $html = $html . "<div style='color:white;margin-bottom:3px'><code>{$val}</code></div>";
    }
    echo RoundedBlack($html);
}
Exemplo n.º 2
0
function PostfixLogs()
{
    $datas = @file_get_contents('ressources/logs/postfix-events.log');
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $html = $html . "<div style='color:white;margin-bottom:3px'><code>{$val}</code></div>";
    }
    echo RoundedBlack($html);
}
Exemplo n.º 3
0
function PostfixLogs()
{
    $sock = new sockets();
    $datas = $sock->getfile('cyrus_events');
    writelogs(strlen($datas) . ' bytes', __FUNCTION__, __FILE__);
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $html = $html . "<div style='color:white;margin-bottom:3px;font-size:10px'><code>{$val}</code></div>";
    }
    echo RoundedBlack($html);
}
function events()
{
    $sock = new sockets();
    $tbl = unserialize(base64_decode($sock->getFrameWork('cmd.php?fetchmail-logs=yes')));
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $val = htmlentities($val);
        $html = $html . "<div style='color:white;margin-bottom:3px;'><code>{$val}</code></div>";
    }
    echo RoundedBlack($html);
}
Exemplo n.º 5
0
function popup()
{
    if (trim($_GET["MONTH"]) == null) {
        if ($_SESSION["ARTICA_SMTP_DAYS_GRAPH_MONTH"] != null) {
            $_GET["MONTH"] = $_SESSION["ARTICA_SMTP_DAYS_GRAPH_MONTH"];
        } else {
            $_GET["MONTH"] = calcul_month();
            $_SESSION["ARTICA_SMTP_DAYS_GRAPH_MONTH"] = $_GET["MONTH"];
        }
    }
    $field = ArrayDays();
    $html = "<h1>{monthly_statistics} {$_GET["MONTH"]}</H1>\n\t<div style='text-align:right;padding-bottom:9px;'>{$field}</div>\n\t" . RoundedLightWhite("<div style='width:100%;height:450px;overflow:auto'>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td align='center'>" . RoundedBlack("<a href='#' OnClick=\"javascript:ZoomCourbeParMois()\"><img src='" . courbeparmois() . "'></a>") . "</td>\n\t\t</tr>\n\t\t<tr><td>&nbsp;</td></tR>\n\t\t<tr>\n\t\t<td align='center'>" . RoundedLightGrey("<a href='#' OnClick=\"javascript:ZoomCamParMois()\"><img src='" . camparmois() . "'>") . "</a></td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td valign='top'>\n\t\t\t<hr>\n\t\t\t\n\t\t\t<div style='width:100%;height:300px;overflow;auto'>" . tableaudomains() . "</div></td>\n\t\t</tR>\n\t</table></div>");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Exemplo n.º 6
0
function events()
{
    $sock = new sockets();
    $datas = $sock->getfile('logs_squid');
    writelogs(strlen($datas) . ' bytes', __FUNCTION__, __FILE__);
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $val = htmlentities($val);
        if (!preg_match('#GET cache_object.+127\\.0\\..+#', $val)) {
            $html = $html . "<div style='color:white;margin-bottom:3px'><code>{$val}</code></div>";
        }
    }
    echo RoundedBlack($html);
}
Exemplo n.º 7
0
function popup()
{
    $html = "<h1>{daily_mailboxes_connections_statistics}</H1>\n\t\n\t" . RoundedLightWhite("<div style='width:100%;height:450px;overflow:auto'>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td align='center'>" . RoundedBlack("<img src='" . CourbeParHeure() . "'></a>") . "</td>\n\t\t</tr>\n\t\t<tr><td>&nbsp;</td></tR>\n\t\t<tr>\n\t\t<td align='center'>" . RoundedLightGrey("\n\t\t\t<img src='" . camTodayCon() . "'></a>\n\t\t\t<hr>\n\t\t\t<div style='width:100%;height:220px;overflow:auto'>" . tableauTodayUsersCon() . "</div>\n\t\t\t\n\t\t\t") . "</td>\n\t\t</tr>\n\t\t<tr><td>&nbsp;</td></tR>\n\t\t<td align='center'>" . RoundedLightGrey("\n\t\t\t<img src='" . camTodayIP() . "'></a>\n\t\t\t<hr>\n\t\t\t\n\t\t\t\n\t\t\t") . "</td>\n\t\t</tr>\n\t\t\n\t\t\n\t\t\n\t\t<tr>\n\t\t\t<td valign='top'>\n\t\t\t<hr>\n\t\t\t\n\t\t\t<div style='width:100%;height:300px;overflow;auto'></div></td>\n\t\t</tR>\n\t</table></div>");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Exemplo n.º 8
0
function main_kav4samba_events()
{
    $sock = new sockets();
    $tabs = main_tabs();
    $datas = $sock->getfile("kav4sambaevents");
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $html = $html . "<div style='color:white;margin-bottom:3px;'><code>{$val}</code></div>";
    }
    $html = "{$tabs}\n\t\t<input type='hidden' id='kaveventsShow' value='yes'>\n\t\t<br><H5>{APP_KAV4SAMBA}</H5>\n\t\t" . main_kav4samba_tabs() . "<div style='width:100%;height:300px;overflow:auto'>" . RoundedBlack($html) . "</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Exemplo n.º 9
0
function kavmilter_events_page()
{
    $sock = new sockets();
    $datas = $sock->getfile('kavmilter_logs');
    writelogs(strlen($datas) . ' bytes', __FUNCTION__, __FILE__);
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $html = $html . "<div style='color:white;margin-bottom:3px;font-size:10px;'><code>{$val}</code></div>";
    }
    $logs = RoundedBlack($html);
    $tpl = new templates();
    $html = "<html>\n\t\t\n\t\t<head>{$tpl->head}\n\t\t\t<link href='css/styles_main.css' rel=\"styleSheet\" type='text/css' />\n\t\t\t<link href='css/styles_header.css' rel=\"styleSheet\" type='text/css' />\n\t\t\t<link href='css/styles_middle.css' rel=\"styleSheet\" type='text/css' />\n\t\t\t<link href='css/styles_forms.css' rel=\"styleSheet\" type='text/css' />\n\t\t\t<link href='css/styles_tables.css' rel=\"styleSheet\" type='text/css' />\n\t\t\t<META HTTP-EQUIV='REFRESH' CONTENT='10'>\n\t\t</head><body style='margin:0px;padding:0px;background-color:#FFFFFF'>{$logs}</body></html>";
    return $html;
}
Exemplo n.º 10
0
function popup_filters()
{
    $image_top_filtered = camWebSitesFilteredDay();
    $image_top_clients_filtered = camWebUserFilteredDay();
    $tabs = tabs();
    $html = "<H1>{dansguardian_statistics}</H1>\n\t<div id='main-dans-page'>\n\t{$tabs}\n\t\n\t" . RoundedLightWhite("<div style='width:100%;height:450px;overflow:auto'>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td align='center'>" . RoundedBlack("<img src='{$image_top_filtered}'></a>") . "</td>\n\t\t</tr>\n\t\t<tr><td>&nbsp;</td></tR>\n\t\t<tr>\n\t\t<td align='center'>" . RoundedLightGrey("<img src='{$image_top_clients_filtered}'></a>") . "</td>\n\t\t</tr>\n\t\t\n\t</table></div>") . "</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Exemplo n.º 11
0
function events()
{
    $sock = new sockets();
    $datas = $sock->getfile('logs_inadyn');
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $html = $html . "<div style='color:white;margin-bottom:3px;font-size:10px'><code>{$val}</code></div>";
    }
    $logs = RoundedBlack($html);
    echo iframe($logs);
}
Exemplo n.º 12
0
function events($return = 0)
{
    $sock = new sockets();
    $datas = $sock->getfile('pureftpd_logs');
    writelogs(strlen($datas) . ' bytes', __FUNCTION__, __FILE__);
    $tbl = explode("\n", $datas);
    $tbl = array_reverse($tbl, TRUE);
    while (list($num, $val) = each($tbl)) {
        $val = htmlentities($val);
        $html = $html . "<div style='color:white;margin-bottom:3px'><code>{$val}</code></div>";
    }
    if ($return == 1) {
        return RoundedBlack($html);
    }
    echo RoundedBlack($html);
}