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

Move to confirm screen

parent 55480ed0
No related branches found
No related tags found
No related merge requests found
<?php
$output_filename = "index.html";
if (isset($_POST['setup'])) {
$my_username = htmlspecialchars($_POST['my_username']);
$default_domain_name = htmlspecialchars($_POST['default_domain_name']);
if(file_exists("setup_confirm.html")) {
$my_username = htmlspecialchars($_POST['my_username']);
$default_domain_name = htmlspecialchars($_POST['default_domain_name']);
if(!file_exists(".temp_setup.txt")) {
$setup_file = fopen(".temp_setup.txt", "w") or die("Unable to create setup file");
fwrite($setup_file, $my_username.",".$default_domain_name."\n");
fclose($);
}
if(!file_exists(".temp_setup.txt")) {
$setup_file = fopen(".temp_setup.txt", "w") or die("Unable to create setup file");
fwrite($setup_file, $my_username.",".$default_domain_name."\n");
fclose($);
}
$output_filename = "setup_installing.html";
$htmlfile = fopen("$output_filename", "r") or die("Unable to open $output_filename");
echo fread($htmlfile,filesize("$output_filename"));
fclose($htmlfile);
$output_filename = "setup_confirm.html";
}
}
$htmlfile = fopen("$output_filename", "r") or die("Unable to open $output_filename");
echo fread($htmlfile,filesize("$output_filename"));
fclose($htmlfile);
?>
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