-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAuthIncl.php
More file actions
executable file
·33 lines (27 loc) · 891 Bytes
/
Copy pathAuthIncl.php
File metadata and controls
executable file
·33 lines (27 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*
Copyright © 2009,2015,2022 Siggi Bjarnason.
Licensed under GNU GPL v3 and later. Check out LICENSE.TXT for details
or see <https://www.gnu.org/licenses/gpl-3.0-standalone.html>
Part of the authentication routine, required in auth.php
*/
$_SESSION["auth_username"] = $Row["vcName"];
$_SESSION["auth_UID"] = $Row["vcUID"];
$_SESSION["UID"] = $iUserID;
$_SESSION["dtLogin"] = $dtNow;
$_SESSION["iPrivLevel"] = $iPrivlvl;
$_SESSION["LastActivity"] = time();
$_SESSION["LoginTime"] = $dtNow;
$strActivity = "Login";
$arrTypes = array("SMS"=>"5","email"=>"4");
NotifyActivity($strActivity,$arrTypes);
if($strLastUpdated=="")
{
$strReturn = "myprofile.php";
}
$strQuery = "update tblUsers set dtLastLogin = '$dtNow' where iUserID='$iUserID'";
if(UpdateSQL($strQuery,"update"))
{
header("Location: " . $strReturn );
}
?>