Try and get a better exit for Koozali SME
This commit is contained in:
@@ -192,6 +192,9 @@ switch ($stage) {
|
||||
printFooter();
|
||||
break;
|
||||
}
|
||||
|
||||
// Here we have "if (not $er)" then fall through to case 'write'
|
||||
// It's pretty crappy coding TBH
|
||||
|
||||
case 'write':
|
||||
printHeader('about');
|
||||
@@ -787,14 +790,26 @@ EOS;
|
||||
}
|
||||
?>
|
||||
<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=hidden name=stage value=finished>
|
||||
</form>
|
||||
</center>
|
||||
<?php
|
||||
printFooter();
|
||||
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:
|
||||
if (! $country) {
|
||||
$country = $config['country'];
|
||||
|
Reference in New Issue
Block a user