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

View File

@@ -31,7 +31,7 @@
<label for="password">Password:</label> <label for="password">Password:</label>
<input type="password" class="form-control" id="password" name="password" required> <input type="password" class="form-control" id="password" name="password" required>
</div> </div>
<button type="submit" class="btn btn-primary btn-block">Add user</button> <button type="submit" class="btn btn-primary btn-block">Create user</button>
</form> </form>
<?php <?php
include "../config.php"; include "../config.php";

View File

@@ -1,50 +1,49 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Cyberhex Installation</title> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<style> <title>Cyberhex login page</title>
body {
font-family: 'Arial', sans-serif;
text-align: center;
margin: 50px;
}
h1 {
color: #333;
}
footer {
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head> </head>
<body> <body>
<h1>You have installed cyberhex! Thank you for choosing us!</h1>
<a href="end.php?end=true">Finish installation.</a> <div class="container mt-5">
<?php <div class="row justify-content-center">
if(isset($_GET["end"])){ <div class="col-md-6">
$success=1; <div class="card">
/* if(!unlink("create_admin.php")){ <div class="card-header">
$success=0; <h4>You have installed cyberhex! Thank you for choosing us!</h4>
}if(!unlink("welcome.php")){ </div>
$success=0; <div class="card-body">
}if(!unlink("create_db.php")){ <a href="end.php?end=true">Finish installation.</a>
$success=0; <?php
}*/ if(isset($_GET["end"])){
if($success!==1){ $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>'); /* if(!unlink("create_admin.php")){
}else{ $success=0;
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>'); }if(!unlink("welcome.php")){
} $success=0;
}if(!unlink("create_db.php")){
$success=0;
} }*/
?> if($success!==1){
<footer> echo '<br><div class="alert alert-danger" role="alert">
<p>&copy; 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p> 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>
</footer> </div>';
}else{
echo '<br><div class="alert alert-danger" role="alert">
All done, you can now start using cyberhex! <a href="/login.php">Go to login page</a>
</div>';
}
}
?>
</div>
</div>
</div>
</div>
</div>
</body> </body>
</html> </html>