echo "<img src=lib/emblems/down.gif>"; } else { echo "<img src=lib/emblems/up.gif>"; } echo "</td>\r\n</tr>\r\n<tr>\r\n<th>SMTP</th>\r\n<td>"; if (CheckServiceUp(25) == 0) { echo "<img src=lib/emblems/down.gif>"; } else { echo "<img src=lib/emblems/up.gif>"; } echo "</td>\r\n</tr>\r\n<tr>\r\n<th>POP3</th>\r\n<td>"; if (CheckServiceUp(110) == 0) { echo "<img src=lib/emblems/down.gif>"; } else { echo "<img src=lib/emblems/up.gif>"; } echo "</td>\r\n</tr>\r\n<tr>\r\n<th>IMAP</th>\r\n<td>"; if (CheckServiceUp(143) == 0) { echo "<img src=lib/emblems/down.gif>"; } else { echo "<img src=lib/emblems/up.gif>"; } echo "</td>\r\n</tr>\r\n<tr>\r\n<th>MySQL</th>\r\n<td>"; if (CheckServiceUp(3306) == 0) { echo "<img src=lib/emblems/down.gif>"; } else { echo "<img src=lib/emblems/up.gif>"; } echo "</td>\r\n</table>"; echo "<br><h2>" . $lang['35'] . "</h2>"; echo "" . $lang['36'] . " " . GetServerUptime();
$row_res = mysql_fetch_assoc($res); $no_domains = $row_res['tvalue']; $sql = "SELECT COUNT(*) AS tvalue FROM z_vhosts WHERE vh_deleted_ts IS NULL AND vh_type_in=2;"; $res = DataExchange("r", $z_db_name, $sql); $row_res = mysql_fetch_assoc($res); $no_subdoms = $row_res['tvalue']; $sql = "SELECT COUNT(*) AS tvalue FROM z_vhosts WHERE vh_deleted_ts IS NULL AND vh_type_in=3;"; $res = DataExchange("r", $z_db_name, $sql); $row_res = mysql_fetch_assoc($res); $no_parkeddoms = $row_res['tvalue']; $sql = "SELECT * FROM z_bandwidth WHERE bd_month_in = '" . GetSystemOption('current_month') . "';"; $res = DataExchange("r", $z_db_name, $sql); $row_res = mysql_fetch_assoc($res); $no_bandwidth = 0; $no_diskspace = 0; if ($totalRows_res > 0) { do { # Add up all accounts bandwidth and disk space to calculate the total! $no_diskspace = $no_diskspace + $row_res['bd_diskamount_bi']; $no_bandwidth = $no_bandwidth + $row_res['bd_transamount_bi']; } while ($row_res = mysql_fetch_assoc($res)); } else { $no_bandwidth = 0; $no_diskspace = 0; } # Now we contact the zCommander server web communicator system to pass the infomation... @readfile("http://" . GetSystemOption('zms_host') . "/communicator.php?services=" . base64_encode("" . GetSystemOption('install_date') . "|||" . CheckServiceUp(80) . "|||" . CheckServiceUp(21) . "|||" . CheckServiceUp(25) . "|||" . CheckServiceUp(110) . "|||" . CheckServiceUp(143) . "|||" . CheckServiceUp(3306) . "") . ""); @readfile("http://" . GetSystemOption('zms_host') . "/communicator.php?software=" . base64_encode("" . GetSystemOption('install_date') . "|||" . ShowPHPVersion() . "|||" . ShowMySQLVersion() . "|||" . GetSystemOption("zpanel_version") . "") . ""); @readfile("http://" . GetSystemOption('zms_host') . "/communicator.php?totals=" . base64_encode("" . GetSystemOption('install_date') . "|||" . $no_zpaccounts . "|||" . $no_crontasks . "|||" . $no_distlists . "|||" . $no_forwarders . "|||" . $no_ftpaccs . "|||" . $no_mailboxes . "|||" . $no_mysqldbs . "|||" . $no_domains . "|||" . $no_subdoms . "|||" . $no_parkeddoms . "|||" . $no_bandwidth . "|||" . $no_diskspace . "") . ""); @readfile("http://" . GetSystemOption('zms_host') . "/communicator.php?misc=" . base64_encode("" . GetSystemOption('install_date') . "|||" . GetSystemOption('server_admin') . "|||" . $_SERVER['SERVER_ADDR'] . "|||" . GetServerUptime() . "") . ""); }