working on installl
This commit is contained in:
@@ -33,10 +33,28 @@
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
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>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<p>Cyberhex installation (step 3/4)</p>
|
||||
</header>
|
||||
<h1>Please create an admin user:</h1>
|
||||
<form action="create_admin.php?create=true" method="post">
|
||||
<label for="username">Username:</label>
|
||||
@@ -50,7 +68,6 @@
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
<?php
|
||||
include "../config.php";
|
||||
if(isset($_GET["create"])){
|
||||
@@ -67,7 +84,7 @@
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
$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"]);
|
||||
$username=htmlspecialchars($_POST["username"]);
|
||||
@@ -81,4 +98,8 @@
|
||||
}
|
||||
|
||||
?>
|
||||
<footer>
|
||||
<p>© 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -13,13 +13,31 @@
|
||||
}
|
||||
h1 {
|
||||
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>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<p>Cyberhex installation (step 2/4)</p>
|
||||
</header>
|
||||
<h1>We are creating the databases used in cyberhex, please stand by</h1>
|
||||
</body>
|
||||
</html>
|
||||
<br>If the creation fails, please wait a minute and try again. The database server might still be starting at the time.</p>
|
||||
|
||||
|
||||
<?php
|
||||
$success=1;
|
||||
@@ -151,3 +169,8 @@ if($success!==1){
|
||||
|
||||
$conn->close();
|
||||
?>
|
||||
<footer>
|
||||
<p>© 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,13 +12,30 @@
|
||||
}
|
||||
h1 {
|
||||
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>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<p>Cyberhex installation (step 4/4)</p>
|
||||
</header>
|
||||
<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;
|
||||
@@ -38,4 +55,8 @@ if(isset($_GET["end"])){
|
||||
|
||||
}
|
||||
?>
|
||||
<footer>
|
||||
<p>© 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -12,13 +12,34 @@
|
||||
}
|
||||
h1 {
|
||||
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>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<p>Cyberhex installation (step 1/4)</p>
|
||||
</header>
|
||||
<h1>Welcome to the Cyberhex Installation</h1>
|
||||
<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>
|
||||
<a href="create_db.php">Start installation.</a>
|
||||
<footer>
|
||||
<p>© 2024 Cyberhex Antivirus by Jakach Software <a href="mailto:info.jakach@gmail.com">info.jakach@gmail.com</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user