working on installl

This commit is contained in:
jakani24
2024-01-14 13:56:11 +01:00
parent 1ceae86ffa
commit 28875e8908
4 changed files with 91 additions and 5 deletions

View File

@@ -33,10 +33,28 @@
border: none; border: none;
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
} }
</style> </style>
</head> </head>
<body> <body>
<header>
<p>Cyberhex installation (step 3/4)</p>
</header>
<h1>Please create an admin user:</h1> <h1>Please create an admin user:</h1>
<form action="create_admin.php?create=true" method="post"> <form action="create_admin.php?create=true" method="post">
<label for="username">Username:</label> <label for="username">Username:</label>
@@ -50,7 +68,6 @@
<button type="submit">Submit</button> <button type="submit">Submit</button>
</form> </form>
</body>
<?php <?php
include "../config.php"; include "../config.php";
if(isset($_GET["create"])){ if(isset($_GET["create"])){
@@ -67,7 +84,7 @@
die("Connection failed: " . $conn->connect_error); die("Connection failed: " . $conn->connect_error);
} }
$stmt = $conn->prepare("INSERT INTO users (email, username, password,perms) VALUES (?, ?, ?)"); $stmt = $conn->prepare("INSERT INTO users (email, username, password,perms) VALUES (?, ?, ?)");
$stmt->bind_param("sss", $email, $username, $hash, $permissions); $stmt->bind_param("ssss", $email, $username, $hash, $permissions);
$email=htmlspecialchars($_POST["email"]); $email=htmlspecialchars($_POST["email"]);
$username=htmlspecialchars($_POST["username"]); $username=htmlspecialchars($_POST["username"]);
@@ -81,4 +98,8 @@
} }
?> ?>
<footer>
<p>&copy; 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
</footer>
</body>
</html> </html>

View File

@@ -13,13 +13,31 @@
} }
h1 { h1 {
color: #333; color: #333;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
} }
</style> </style>
</head> </head>
<body> <body>
<header>
<p>Cyberhex installation (step 2/4)</p>
</header>
<h1>We are creating the databases used in cyberhex, please stand by</h1> <h1>We are creating the databases used in cyberhex, please stand by</h1>
</body> <br>If the creation fails, please wait a minute and try again. The database server might still be starting at the time.</p>
</html>
<?php <?php
$success=1; $success=1;
@@ -151,3 +169,8 @@ if($success!==1){
$conn->close(); $conn->close();
?> ?>
<footer>
<p>&copy; 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
</footer>
</body>
</html>

View File

@@ -12,13 +12,30 @@
} }
h1 { h1 {
color: #333; color: #333;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
} }
</style> </style>
</head> </head>
<body> <body>
<header>
<p>Cyberhex installation (step 4/4)</p>
</header>
<h1>You have installed cyberhex! Thank you for choosing us!</h1> <h1>You have installed cyberhex! Thank you for choosing us!</h1>
<a href="end.php?end=true">Finish installation.</a> <a href="end.php?end=true">Finish installation.</a>
</body>
<?php <?php
if(isset($_GET["end"])){ if(isset($_GET["end"])){
$success=1; $success=1;
@@ -38,4 +55,8 @@ if(isset($_GET["end"])){
} }
?> ?>
<footer>
<p>&copy; 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
</footer>
</body>
</html> </html>

View File

@@ -12,13 +12,34 @@
} }
h1 { h1 {
color: #333; color: #333;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
} }
</style> </style>
</head> </head>
<body> <body>
<header>
<p>Cyberhex installation (step 1/4)</p>
</header>
<h1>Welcome to the Cyberhex Installation</h1> <h1>Welcome to the Cyberhex Installation</h1>
<p>The installer will guide you through the installation.</p> <p>The installer will guide you through the installation.</p>
<p>If there are any errors during installation or you are stuck, please contatact <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p> <p>If there are any errors during installation or you are stuck, please contatact <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
<a href="create_db.php">Start installation.</a> <a href="create_db.php">Start installation.</a>
<footer>
<p>&copy; 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
</footer>
</body> </body>
</html> </html>