Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
c307cb3a
Commit
c307cb3a
authored
Nov 01, 2006
by
Martyn Smith
Committed by
Martyn Smith
Nov 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added is_logged_in() function
parent
f5649864
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
htdocs/lib/session.php
htdocs/lib/session.php
+9
-0
No files found.
htdocs/lib/session.php
View file @
c307cb3a
...
...
@@ -146,6 +146,15 @@ class Session {
);
}
/**
* Determines if the user is currently logged in
*
* @return boolean
*/
public
function
is_logged_in
()
{
return
(
$this
->
get
(
'logout_time'
)
>
0
?
true
:
false
);
}
/**
* Adds a message that indicates something was successful
...
...
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