Try and get a better exit for Koozali SME

This commit is contained in:
John Crisp
2021-09-30 18:01:45 +02:00
parent 9821fc8a7a
commit 50c23a4035

View File

@@ -192,6 +192,9 @@ switch ($stage) {
printFooter(); printFooter();
break; break;
} }
// Here we have "if (not $er)" then fall through to case 'write'
// It's pretty crappy coding TBH
case 'write': case 'write':
printHeader('about'); printHeader('about');
@@ -787,14 +790,26 @@ EOS;
} }
?> ?>
<p><br><br> <p><br><br>
<form action=index.php> <form action='<?php echo $PHP_SELF?>' method=post>
<input type=submit name=submit value="Proceed To The PHPki Main Menu"> <input type=submit name=submit value="Proceed To The PHPki Main Menu">
<input type=hidden name=stage value=finished>
</form> </form>
</center> </center>
<?php <?php
printFooter(); printFooter();
break; break;
case 'finished':
// We get here if we complete the previous section
// if OS = SME the go to server manager else, reload
if (getOSInformation){
$location = "/server-manager/cgi-bin/phpki";
} else {
$location = $PHP_SELF;
}
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=' . $location . '">';
exit;
default: default:
if (! $country) { if (! $country) {
$country = $config['country']; $country = $config['country'];