Added get OS Browser Device and IP functions, added these functions to guest view invoice, also added invoice view alert and other minor fixes

This commit is contained in:
johnny@pittpc.com
2019-08-28 21:47:40 -04:00
parent 2e270a7f4e
commit 0e451056b4
11 changed files with 213 additions and 87 deletions

View File

@@ -25,19 +25,11 @@ if(isset($_POST['login'])){
$token = $row['token'];
$_SESSION['user_id'] = $row['user_id'];
$_SESSION['name'] = $row['name'];
$_SESSION['client_id'] = $row['client_id'];
$client_id = $row['client_id'];
if(empty($token)){
$_SESSION['logged'] = TRUE;
if($client_id > 0){
header("Location: client.php?client_id=$client_id");
}else{
//header("Location: $config_start_page");
header("Location: dashboard.php");
}
header("Location: dashboard.php");
}else{
require_once("rfc6238.php");