status switch
This commit is contained in:
parent
d2c1e68dcb
commit
348e0c3fa1
22
config.php
22
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 = "";
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($torrenttype > "1") {
|
||||
$torrentname = "Transmission";
|
||||
} else {
|
||||
$torrentname = "uTorrent";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($sicktype > "1") {
|
||||
$sickname = "SickRage";
|
||||
} else {
|
||||
$sickname = "SickBeard";
|
||||
}
|
||||
?>
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user