From cce3a829a40ec52193935901bafa1d7a2b70ee28 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 11 Jan 2018 12:27:55 +0100 Subject: [PATCH] - update.php: allow nightly builds in online-update --- archive-server/update.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/archive-server/update.php b/archive-server/update.php index 482af02c..c496092c 100644 --- a/archive-server/update.php +++ b/archive-server/update.php @@ -75,7 +75,15 @@ if (empty($boxtype_sc) ||empty($boxseries) || empty($boxmodel)) exit(1); } -$file = $directory . "/" . $image_type . "-" . $boxtype_sc . "-" . $boxmodel . ".txt"; +$file = "release/release-" . $boxtype_sc . "-" . $boxmodel . ".txt"; +if (file_exists($file)) + $result .= file_get_contents($file, true); + +$file = "beta/beta-" . $boxtype_sc . "-" . $boxmodel . ".txt"; +if (file_exists($file)) + $result .= file_get_contents($file, true); + +$file = "nightly/nightly-" . $boxtype_sc . "-" . $boxmodel . ".txt"; if (file_exists($file)) $result .= file_get_contents($file, true); @@ -91,17 +99,9 @@ $file = $directory . "/update-" . $boxtype_sc . "-" . $boxmodel . ".txt"; if (file_exists($file)) $result .= file_get_contents($file, true); -# allow to switch from beta to release -if (strcmp($image_type, "beta") == 0) -{ - $file = "release/release-" . $boxtype_sc . "-" . $boxmodel . ".txt"; - if (file_exists($file)) - $result .= file_get_contents($file, true); -} - #$file = "plugins/pr-auto-timer.txt"; #if (file_exists($file)) # $result .= file_get_contents($file, true); echo $result; -?> \ No newline at end of file +?>