Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
2e5e5b00
Commit
2e5e5b00
authored
Oct 30, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor bug fix.
parent
ba7d5010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
www/tbauth.php3
www/tbauth.php3
+11
-9
No files found.
www/tbauth.php3
View file @
2e5e5b00
...
...
@@ -1089,6 +1089,17 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null,
$lastactive
=
$lastrow
[
0
];
$lastactivestr
=
$lastrow
[
1
];
if
(
$lastactive
&&
time
()
-
$lastactive
>
(
3600
*
24
*
365
))
{
TBMAIL
(
$TBMAIL_OPS
,
"Web Login Inactivity Alert: '
$uid
'"
,
"Login by
$uid
(
$uid_idx
) after extended period "
.
"of inactivity!
\n
"
.
"Last activity was
$lastactivestr
\n
"
,
"From:
$TBMAIL_OPS
\n
"
.
"Bcc:
$TBMAIL_AUDIT
\n
"
.
"Errors-To:
$TBMAIL_WWW
"
);
}
if
(
time
()
-
$lastactive
>
$limit
)
{
$rv
=
SUEXEC
(
"nobody"
,
"nobody"
,
"webexports_setup"
,
SUEXEC_ACTION_IGNORE
);
...
...
@@ -1102,15 +1113,6 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null,
return
;
}
}
if
(
time
()
-
$lastactive
>
(
3600
*
24
*
365
))
{
TBMAIL
(
$TBMAIL_OPS
,
"Web Login Inactivity Alert: '
$uid
'"
,
"Login by
$uid
(
$uid_idx
) after extended period "
.
"of inactivity!
\n
"
,
"From:
$TBMAIL_OPS
\n
"
.
"Bcc:
$TBMAIL_AUDIT
\n
"
.
"Errors-To:
$TBMAIL_WWW
"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment