The start of client logins has begun, now can link a user with a client to allow client logins, clients can only view client.php there is more work to be done

This commit is contained in:
root
2019-05-27 12:28:41 -04:00
parent 889a749d88
commit e0e723bb9f
8 changed files with 48 additions and 12 deletions

View File

@@ -16,8 +16,14 @@ if(isset($_POST['login'])){
$_SESSION['logged'] = TRUE;
$_SESSION['user_id'] = $row['user_id'];
$_SESSION['name'] = $row['name'];
header("Location: $config_start_page");
$_SESSION['client_id'] = $row['client_id'];
$client_id = $row['client_id'];
if($client_id > 0){
header("Location: client.php?client_id=$client_id");
}else{
header("Location: $config_start_page");
}
}else{
$response = "
<div class='alert alert-danger'>