projects
/
squirrelmail.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Moved a lot of duplicated code into a separate function to display the
[squirrelmail.git]
/
functions
/
auth.php
1
<
?php
2
3
/**
4
** auth.php
5
**
6
** Contains functions used to do authentication.
7
**
8
**/
9
10
$auth_php
=
true
;
11
12
function
is_logged_in
() {
13
if
(!
session_is_registered
(
"user_is_logged_in"
)) {
14
echo
_
(
"You must login first."
);
15
echo
"</body></html>
\n\n
"
;
16
exit
;
17
}
else
{
18
return true
;
19
}
20
}
21
22
?
>