mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
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:
10
login.php
10
login.php
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user