Commit | Line | Data |
---|---|---|
3c13b9fb | 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 | ?> |