<?php session_start(); include_once 'config.php'; // loads config variables include_once 'functions.php'; $servers = server_status(); $users = online_count(); opentable('<font color="yellow">Evangelis RO</font><br><font size="1" color="gray">- 500x500x100x -<br>High Rates Premium</font>'); echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center"><b>Login</b></td> <td align="center"><b>Char</b></td> <td align="center"><b>Map</b></td> </tr> <tr> '; if ($servers & 1) { echo ' <td><img src="online.png"></td> '; } else { echo ' <td><img src="offline.png"></td> '; } if ($servers & 2) { echo ' <td><img src="online.png"></td> ';
function proxy_dashboard() { $page = CurrentPageName(); $tpl = new templates(); $users = new usersMenus(); $sock = new sockets(); $SquidPerformance = intval($sock->GET_INFO("SquidPerformance")); $EnableIntelCeleron = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/EnableIntelCeleron")); $SQUIDEnable = intval($sock->GET_INFO("SQUIDEnable")); $jsload = "Loadjs('{$page}?graph1-js=yes');"; if (!$users->SQUID_INSTALLED) { $SQUIDEnable = 0; } if ($users->POSTFIX_INSTALLED) { $jsload = "Loadjs('admin.dashboard.smtpgraphs.php');"; } $jsload2 = "AnimateDivRound('graph1-dashboard');"; $jsloadEnc = base64_encode($jsload); if (!is_file("{$GLOBALS["BASEDIR"]}/FLUX_HOUR")) { $jsload = null; $jsload2 = null; } $FLUX_HOUR = unserialize(@file_get_contents("{$GLOBALS["BASEDIR"]}/FLUX_HOUR")); if (count($FLUX_HOUR) < 2) { $jsload = null; } $content = " "; $md5CacheF = md5("bxSliderTopRight{$_SESSION["uid"]}{$tpl->language}"); $cachefile = "/usr/share/artica-postfix/ressources/interface-cache/{$md5CacheF}"; $jsBxtop = "LoadAjaxSilent('bxslider-top','{$page}?bx-slider-top-right=yes&jsafter={$jsloadEnc}');"; if (is_file($cachefile)) { $content = @file_get_contents($cachefile); $jsBxtop = $jsload; } if ($SQUIDEnable == 1) { if ($SquidPerformance > 1) { $explain = "{performance_level_nostats}"; $error_stats = $tpl->_ENGINE_parse_body("\n\t\t\t<center style='margin:20px;font-size:18px'>\n\t\t\t\t\t<p class=text-info style=';font-size:18px'>" . texttooltip("{artica_statistics_disabled}<br>{$explain}", "{SQUID_LOCAL_STATS_DISABLED}", "GotoSquidPerformances()") . "\n\t\t\t\t\t</p>\n\t\t\t\t\t</center>"); } if ($EnableIntelCeleron == 1) { $explain = "{CELERON_METHOD_EXPLAIN}"; $error_stats = $tpl->_ENGINE_parse_body("\n\t\t\t<center style='margin:20px;font-size:18px'>\n\t\t\t\t\t<p class=text-info style=';font-size:18px'>" . texttooltip("{artica_statistics_disabled}<br>{$explain}", "{SQUID_LOCAL_STATS_DISABLED}", "GotoOptimizeSystem()") . "\n\t\t\t\t\t</p>\n\t\t\t\t\t</center>"); } } $html = "\n\t<center>\n\t\t\t\n\t<table style='width:1545px'>\n\t\t<tr>\n\t\t\t<td style='width:410px;padding:15px;vertical-align:top'><div id='sequence-proxy'><center>" . proxy_status() . "</center></div></td>\n\t\t\t<td style='width:410px;padding:15px;vertical-align:top'><div id='sequence-server'><center>" . server_status() . "</center></div></td>\n\t\t\t<td style='width:410px;padding:15px;vertical-align:top'><div id='sequence-firewall'><center>" . firewall_status() . "</center></div></td>\n\t\t</tr>\n\t\t</table>\n\t</center>\n\t<center>\n\t<div id='bxslider-top' class='bx-slider-top'>{$content}</div>\n\t</center>\n\t<center id='proxy_dashboard_counters' style='height:57px'>\n\t" . proxy_dashboard_counters() . "\n\t</center>\n\t{$error_stats}\n\t<div id='graph1-dashboard' style='width:1500px;heigth:300px'></div>\n\t<div id='graph2-dashboard' style='width:1500px;heigth:300px'></div>\n\t<div id='graph3-dashboard' style='width:1500px;heigth:300px'></div>\n\t<script>\n\t\tLoadAjaxTiny('id-dashboard-button-refresh','{$page}?button-refresh=yes');\n\t\t{$jsload2}\n\t\t{$jsBxtop}\n\t</script>"; echo $tpl->_ENGINE_parse_body($html); }
<?php //MaNGOS Registration Script by kylef ?> <table width="170" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" class="box_top">Menu</td> </tr> <tr> <td width="168" height="100%" class="box_border box_content"><a href="index.php">Home</a><br /> <a href="register.php">Register</a></td> </tr> </table> <p> </p> <table width="170" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" class="box_top">Server Information</td> </tr> <tr> <td width="168" height="100%" align="center" class="box_border box_content"><?php server_status(); ?> </td> </tr> </table>