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>
<input type="password" class="form-control" id="password" name="password" required>
</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>
<?php
include "../config.php";

View File

@@ -1,50 +1,49 @@
<!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;
}
footer {
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<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>
<title>Cyberhex login page</title>
</head>
<body>
<h1>You have installed cyberhex! Thank you for choosing us!</h1>
<a href="end.php?end=true">Finish installation.</a>
<?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>');
}
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h4>You have installed cyberhex! Thank you for choosing us!</h4>
</div>
<div class="card-body">
<a href="end.php?end=true">Finish installation.</a>
<?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 '<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>
</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>';
}
}
?>
<footer>
<p>&copy; 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
</footer>
}
?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>