diff --git a/config.php b/config.php index ff822e1..2cafcd3 100644 --- a/config.php +++ b/config.php @@ -16,7 +16,9 @@ $madsonicport = ""; $plexport = ""; $squeezeport = ""; +$drive1visible = "1"; // Set drive visible or not 0 = no 1 = yes $drive1 = "C:"; // Set the hard drives to display +$drive2visible = "1"; $drive2 = "D:"; $drive3 = "E:"; $drive4 = "F:"; @@ -33,9 +35,10 @@ $server3url = ""; $server4name = ""; $server4url = ""; -$clockvisable = "1"; -$kknowledgefeedvisable = "1"; -$webclipfeedvisable = "1"; +// Set widgets visible or not 0 = no 1 = yes +$clockvisible = "1"; +$kknowledgefeedvisible = "1"; +$webclipfeedvisible = "1"; // do not edit past here diff --git a/right.php b/right.php index 9ee5f7c..0951e45 100644 --- a/right.php +++ b/right.php @@ -30,7 +30,7 @@ indicateSelected(formref.switchcontrol)
"0") { +if ($clockvisible > "0") { require "clock.php"; } else { @@ -38,7 +38,7 @@ if ($clockvisable > "0") { ?> "0") { +if ($kknowledgefeedvisible > "0") { require "kknowledgefeed.php"; } else { @@ -46,7 +46,7 @@ if ($kknowledgefeedvisable > "0") { ?> "0") { +if ($webclipfeedvisible > "0") { require "webclipfeed.php"; } else { diff --git a/space.php b/space.php index 58233da..e0aefd8 100644 --- a/space.php +++ b/space.php @@ -51,7 +51,8 @@ indicateSelected(formref.switchcontrol) require_once 'DiskStatus.class.php'; -try { +if ($drive1visible > "0") { + try { $diskStatusC = new DiskStatus("$drive1"); $freeSpaceC = $diskStatusC->freeSpace(); @@ -61,6 +62,7 @@ try { } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); +} } try {