<?php include 'config.php';?>

<?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['services'] = array();
/********
DO NOT EDIT THESE CONFIG LINES.
********/



# You may edit these configs.
$configs['server_ip'] = "$base"; // The Servers URL or IP to check.

# For services simply add new lines with the Name and port number.
if ($torrentvisible > "0") {
$configs['services']["$torrentname"] = $torrentport;
} 
if ($sabvisible > "0") {
$configs['services']['SABNZBD'] = $sabport;
}
if ($sickvisible > "0") {
$configs['services']["$sickname"] = $sickport;
}
if ($cpadultsvisible > "0") {
$configs['services']["$couchname"] = $cpadults;
}
if ($cpkidsvisible > "0") {
$configs['services']['CPKids'] = $cpkids;
}
if ($ftpvisible > "0") {
$configs['services']['FTP'] = $ftpport;
}
if ($madsonicvisible > "0") {
$configs['services']['MadSonic'] = $madsonicport;
}
if ($plexvisible > "0") {
    $configs['services']['Plex'] = $plexport;
 } 



?>