Started Logs: Login attempts are now logged, created a logs list in the side nav

This commit is contained in:
johnny@pittpc.com
2019-09-06 00:16:19 -04:00
parent e47853f9cd
commit d259d1b3dc
7 changed files with 138 additions and 6 deletions

View File

@@ -1,11 +1,17 @@
<?php include("config.php"); ?>
<?php include("check_login.php"); ?>
<?php
if(isset($_GET['client_id'])){
$client_id = intval($_GET['client_id']);
$sql = mysqli_query($mysqli,"SELECT * FROM clients WHERE client_id = $client_id");
$sql = mysqli_query($mysqli,"SELECT * FROM clients WHERE client_id = $client_id AND company_id = $session_company_id");
if(mysqli_num_rows($sql) == 0){
include("header.php");
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1></center>";
}else{
$row = mysqli_fetch_array($sql);
$client_name = $row['client_name'];
@@ -157,6 +163,8 @@ if(isset($_GET['client_id'])){
<?php
}
}
?>