updating small things
This commit is contained in:
@@ -296,7 +296,7 @@ async function checkRegistration() {
|
||||
$row = $result->fetch_assoc();
|
||||
if($row["allow_pw_login"]==1){
|
||||
if (password_verify($password, $row['password'])) {
|
||||
$_SESSION["username"]=$username;
|
||||
$_SESSION["username"]=htmlspecialchars($username);
|
||||
$_SESSION["login"]=true;
|
||||
$_SESSION["perms"]=$row["perms"];
|
||||
$_SESSION["email"]=$row["email"];
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
//with db:
|
||||
|
||||
require_once 'WebAuthn.php';
|
||||
// Assuming you've already established a database connection here
|
||||
include "../../../config.php";
|
||||
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD,$DB_DATABASE);
|
||||
if ($conn->connect_error) {
|
||||
@@ -170,7 +169,7 @@ try {
|
||||
|
||||
// Authentication success
|
||||
//set sessionso user is authenticated
|
||||
$_SESSION["username"]=$row["username"];
|
||||
$_SESSION["username"]=htmlspecialchars($row["username"]);
|
||||
$_SESSION["login"]=true;
|
||||
$_SESSION["perms"]=$row["perms"];
|
||||
$_SESSION["email"]=$row["email"];
|
||||
|
||||
@@ -8,7 +8,7 @@ if (!isset($_SESSION['username']) or !isset($_SESSION["login"])) {
|
||||
exit();
|
||||
}
|
||||
|
||||
$username = $_SESSION['username'];
|
||||
$username = htmlspecialchars($_SESSION['username']);
|
||||
$perms = $_SESSION["perms"];
|
||||
if(isset($_GET["page"])){
|
||||
$page=htmlspecialchars($_GET["page"]);
|
||||
@@ -24,7 +24,7 @@ if(isset($_GET["page"])){
|
||||
<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</title>
|
||||
<title>Cyberhex (<?php echo(str_replace("_"," ",explode(".",$page))[0]); ?>)</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- navbar -->
|
||||
@@ -98,7 +98,6 @@ if(isset($_GET["page"])){
|
||||
echo("<p>Clients</p>");
|
||||
?>
|
||||
<ul>
|
||||
<!-- <li><a href="index.php?page=mass_add_clients.php">Mass Add CLients</a></li> -->
|
||||
<?php
|
||||
if($perms[7]=="1")
|
||||
echo('<li><a href="index.php?page=add_client.php">Add Client</a></li>');
|
||||
|
||||
@@ -27,7 +27,7 @@ $filter_query = "&hash=$hash&path=$path&machine_id=$machine_id&action=$action&ma
|
||||
<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>Change Password</title>
|
||||
<title>Cyberhex</title>
|
||||
</head>
|
||||
<body>
|
||||
<br><br>
|
||||
|
||||
Reference in New Issue
Block a user