u
This commit is contained in:
@@ -21,6 +21,7 @@ if($perms[6]!=="1"){
|
||||
//for the get_perms_str() function
|
||||
include "perms_functions.php";
|
||||
include "../../../config.php";
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
//create connection to db
|
||||
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ $machine_id = htmlspecialchars(isset($_GET["machine_id"]) ? $_GET["machine_id"]
|
||||
$time = htmlspecialchars(isset($_GET["time"]) ? $_GET["time"] : "");
|
||||
$machine_location = htmlspecialchars(isset($_GET["machine_location"]) ? $_GET["machine_location"] : "");
|
||||
$filter_query = "&loglevel=$loglevel&logtext=$logtext&machine_id=$machine_id&time=$time&machine_location=$machine_location";
|
||||
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
@@ -20,6 +20,7 @@ if($perms[0]!=="1"){
|
||||
}
|
||||
//for the get_perms_str() function
|
||||
include "perms_functions.php";
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
@@ -11,6 +11,7 @@ if (!isset($_SESSION['username']) or !isset($_SESSION["login"])) {
|
||||
$username = $_SESSION['username'];
|
||||
$perms = $_SESSION["perms"];
|
||||
$email = $_SESSION["email"];
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
@@ -12,6 +12,7 @@ $username = $_SESSION['username'];
|
||||
$perms = $_SESSION["perms"];
|
||||
$email = $_SESSION["email"];
|
||||
$telegram_id=$_SESSION["telegram_id"];
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
?>
|
||||
<?php
|
||||
//update the info, if provided.
|
||||
|
||||
@@ -18,8 +18,10 @@ if($perms[1]!=="1"){
|
||||
}else{
|
||||
$block=0;
|
||||
}
|
||||
|
||||
//for the get_perms_str() function
|
||||
include "perms_functions.php";
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
@@ -29,6 +29,7 @@ $machine_location = htmlspecialchars(isset($_GET["machine_location"]) ? $_GET["m
|
||||
$filter_query = "&loglevel=$loglevel&logtext=$logtext&machine_id=$machine_id&time=$time&machine_location=$machine_location";
|
||||
|
||||
include "../../../config.php";
|
||||
include "../../../api/php/log/add_server_entry.php"; //to log things
|
||||
//get data for pie chart
|
||||
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
|
||||
if ($conn->connect_error) {
|
||||
|
||||
Reference in New Issue
Block a user