diff --git a/backend/php/src/dump.php b/backend/php/src/dump.php index d4e8544..28ad223 100644 --- a/backend/php/src/dump.php +++ b/backend/php/src/dump.php @@ -11,7 +11,22 @@ header('Content-Disposition: attachment; filename=Clipperz_'.date("Ymd").'.html' include "./objects/class.onetimepassword.php"; include "./objects/class.onetimepasswordstatus.php"; - $htmlContent = file_get_contents("../index.html"); + //$htmlContent = file_get_contents("../index.html"); + switch ($_GET["frontend"]) { + case 'beta': + $htmlContent = file_get_contents("beta/index.html"); + break; + case 'gamma': + $htmlContent = file_get_contents("gamma/index.html"); + break; + case 'delta': + $htmlContent = file_get_contents("delta/index.html"); + break; + default: + exit ("Invalid Frontend"); + + } + session_start(); @@ -100,4 +115,4 @@ header('Content-Disposition: attachment; filename=Clipperz_'.date("Ymd").'.html' session_write_close(); echo str_replace("/*offline_data_placeholder*/", $data, $htmlContent); -?> \ No newline at end of file +?>