39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?php
|
|
include 'config.php';
|
|
/*
|
|
* Script: Server Status
|
|
* Author: Martin Dixon
|
|
* From: Tutorial-Resource.com
|
|
* URL: www.tutorial-resource.com
|
|
* Version: 1.0
|
|
* License: Free
|
|
*/
|
|
/********
|
|
DO NOT EDIT THESE CONFIG LINES.
|
|
*/
|
|
$configs = array();
|
|
$configs['services1'] = array();
|
|
$configs['services2'] = array();
|
|
$configs['services3'] = array();
|
|
$configs['services4'] = array();
|
|
|
|
/********
|
|
DO NOT EDIT THESE CONFIG LINES.
|
|
********/
|
|
|
|
|
|
|
|
# You may edit these configs.
|
|
$configs['server_ip'] = $server1url; // The Servers URL or IP to check.
|
|
$configs['server_ip2'] = $server2url; // The Servers URL or IP to check.
|
|
$configs['server_ip3'] = $server3url; // The Servers URL or IP to check.
|
|
$configs['server_ip4'] = $server4url; // The Servers URL or IP to check.
|
|
|
|
|
|
|
|
# For services1 simply add new lines with the Name and port number.
|
|
$configs['services1']["<a href='$http/$server1url' target=\'_blank\'>$server1name</a>"] = 80;
|
|
$configs['services2']["<a href='$http/$server2url' target=\'_blank\'>$server2name</a>"] = 80;
|
|
$configs['services3']["<a href='$http/$server3url' target=\'_blank\'>$server3name</a>"] = 80;
|
|
$configs['services4']["<a href='$http/$server4url' target=\'_blank\'>$server4name</a>"] = 80;
|
|
?>
|