created installer software

This commit is contained in:
jakani24
2024-01-14 13:36:14 +01:00
parent 1fe2aad2b3
commit b2dcc8d3f6
5 changed files with 188 additions and 20 deletions

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cyberhex Installation</title>
<style>
body {
font-family: 'Arial', sans-serif;
text-align: center;
margin: 50px;
}
h1 {
color: #333;
}
</style>
</head>
<body>
<h1>You have installed cyberhex! Thank you for choosing us!</h1>
<a href="end.php?end=true">Finish installation.</a>
</body>
<?php
if(isset($_GET["end"])){
$success=1;
if(!unlink("create_admin.php")){
$success=0;
}if(!unlink("welcome.php")){
$success=0;
}if(!unlink("create_db.php")){
$success=0;
}
if($success!==1){
echo('<p style="font-size: 20px; color: red;">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></p>');
}else{
echo('<p style="font-size: 20px; color: green;">All done, you can now start using cyberhex! <a href="/login.php">Go to login page</a></p>');
}
}
?>
</html>