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
b72972fd
Commit
b72972fd
authored
Jan 07, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, forgot to conditionalize on ZFS!
parent
b9ec1a54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
www/tbauth.php3
www/tbauth.php3
+13
-9
No files found.
www/tbauth.php3
View file @
b72972fd
...
...
@@ -1113,16 +1113,20 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null,
# every time the user logs in of course, and since exports_setup is
# using one week as its threshold, we can just do it on a daily basis.
#
$query_result
=
DBQueryFatal
(
"select UNIX_TIMESTAMP(weblogin_last) from users as u "
.
"left join user_stats as s on s.uid_idx=u.uid_idx "
.
"where u.uid_idx='
$uid_idx
'"
);
if
(
mysql_num_rows
(
$query_result
))
{
$lastrow
=
mysql_fetch_row
(
$query_result
);
$lastlogin
=
$lastrow
[
0
];
if
(
$WITHZFS
&&
$ZFS_NOEXPORT
)
{
$query_result
=
DBQueryFatal
(
"select UNIX_TIMESTAMP(weblogin_last) "
.
" from users as u "
.
"left join user_stats as s on s.uid_idx=u.uid_idx "
.
"where u.uid_idx='
$uid_idx
'"
);
if
(
mysql_num_rows
(
$query_result
))
{
$lastrow
=
mysql_fetch_row
(
$query_result
);
$lastlogin
=
$lastrow
[
0
];
if
(
time
()
-
$lastlogin
>
(
24
*
3600
))
{
SUEXEC
(
"nobody"
,
"nobody"
,
"webexports_setup"
,
SUEXEC_ACTION_DIE
);
if
(
time
()
-
$lastlogin
>
(
24
*
3600
))
{
SUEXEC
(
"nobody"
,
"nobody"
,
"webexports_setup"
,
SUEXEC_ACTION_DIE
);
}
}
}
#
...
...
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