Skip to content
Snippets Groups Projects
Commit 722e3299 authored by Bob Mottram's avatar Bob Mottram
Browse files

App install progress screen

parent 60190674
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,24 @@ if (isset($_POST['installconfirmsubmit'])) {
}
if(! exec('grep '.escapeshellarg("install_".$app_name).' ./pending_installs.txt')) {
if(! file_exists("index_app_installing.html")) {
exec('cp index.html index_app_installing.html');
exec('cp app_installing_progress.html index.html');
}
$pending_installs = fopen("pending_installs.txt", "a") or die("Unable to append to installs file");
fwrite($pending_installs, "install_".$app_name.",".$install_domain.",".$freedns_code."\n");
fclose($pending_installs);
$output_filename = "app_installing.html";
$output_filename = "index.html";
# remain on this screen
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
if (endsWith($uri, 'admin')) {
header("Location: http://$host$uri/index.html");
}
else {
header("Location: http://$host$uri/admin/index.html");
}
}
else {
// The app is already scheduled for installation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment