From 348e0c3fa192f79e83c66c18921b35e1c0a7a6a5 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Wed, 8 Jul 2015 11:17:08 +0100 Subject: [PATCH] status switch --- config.php | 22 ++++++++++++++++++++-- configs_services.php | 23 ++++++++++++++++++++--- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/config.php b/config.php index aa0ee7d..e6737a8 100644 --- a/config.php +++ b/config.php @@ -10,7 +10,7 @@ $sabvisible = ""; // Set to turn on or off links (0 = Off 1 = On) $sabport = ""; // Set the ports for your services $sickvisible = ""; -$sicktype = ""; // 1 = Sickbeard / 2 = SickRage +$sicktype = "1"; // 1 = Sickbeard / 2 = SickRage $sickport = ""; $couchvisible = ""; @@ -21,7 +21,7 @@ $cpkidsvisible = ""; // Set to 0 if only running single couch instance $cpkids = ""; $torrentvisible = ""; -$torrenttype = ""; // 1 = uTorrent / 2 = Transmission +$torrenttype = "1"; // 1 = uTorrent / 2 = Transmission $torrentport = ""; // uTorrent = 86 / Transmission = 9091 $ftpvisible = ""; @@ -79,4 +79,22 @@ $myurl = "http://$base"; $webclip = "http://webclip.ml"; $kknowledge = "http://kknowledge.tk"; $kspot = "http://spot.k-world.me.uk"; +$torrentname = ""; +$sickname = ""; ?> + + "1") { + $torrentname = "Transmission"; + } else { + $torrentname = "uTorrent"; + } +?> + + "1") { + $sickname = "SickRage"; + } else { + $sickname = "SickBeard"; + } +?> \ No newline at end of file diff --git a/configs_services.php b/configs_services.php index 610f7dc..671982a 100644 --- a/configs_services.php +++ b/configs_services.php @@ -24,14 +24,31 @@ DO NOT EDIT THESE CONFIG LINES. $configs['server_ip'] = "$base"; // The Servers URL or IP to check. # For services simply add new lines with the Name and port number. -$configs['services']['uTorrent'] = $torrentport; +if ($torrentvisible > "0") { +$configs['services']["$torrentname"] = $torrentport; +} +if ($sabvisible > "0") { $configs['services']['SABNZBD'] = $sabport; -$configs['services']['SickBeard'] = $sickport; +} +if ($sickvisible > "0") { +$configs['services']["$sickname"] = $sickport; +} +if ($cpadultsvisible > "0") { $configs['services']['CPAdults'] = $cpadults; +} +if ($cpkidsvisible > "0") { $configs['services']['CPKids'] = $cpkids; +} +if ($ftpvisible > "0") { $configs['services']['FTP'] = $ftpport; +} +if ($madsonicvisible > "0") { $configs['services']['MadSonic'] = $madsonicport; -$configs['services']['Plex'] = $plexport; +} +if ($plexvisible > "0") { + $configs['services']['Plex'] = $plexport; + } + ?> \ No newline at end of file