This commit is contained in:
jakani24
2024-01-20 11:11:11 +01:00
parent 33788300ef
commit c1b1c7939b
2 changed files with 18 additions and 20 deletions

View File

@@ -18,27 +18,25 @@
<div class="card-body"> <div class="card-body">
<a href="end.php?end=true">Finish installation.</a> <a href="end.php?end=true">Finish installation.</a>
<?php <?php
if(isset($_GET["end"])){ if(isset($_GET["end"])){
$success=1; $success=1;
/* if(!unlink("create_admin.php")){ /* if(!unlink("create_admin.php")){
$success=0; $success=0;
}if(!unlink("welcome.php")){ }if(!unlink("welcome.php")){
$success=0; $success=0;
}if(!unlink("create_db.php")){ }if(!unlink("create_db.php")){
$success=0; $success=0;
}*/ }*/
if($success!==1){ if($success!==1){
echo '<br><div class="alert alert-danger" role="alert"> echo '<br><div class="alert alert-danger" role="alert">
There was an error finishing the installation. Please try again or contact support at: <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a> There was an error finishing the installation. Please try again or contact support at: <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a>
</div>'; </div>';
}else{ }else{
echo '<br><div class="alert alert-danger" role="alert"> echo '<br><div class="alert alert-success" role="alert">
All done, you can now start using cyberhex! <a href="/login.php">Go to login page</a> All done, you can now start using cyberhex! <a href="/login.php">Go to login page</a>
</div>'; </div>';
}
} }
}
?> ?>
</div> </div>
</div> </div>