root/releases/0.1.1b/units/users/function_define_ownership.php
| Revision 2, 275 bytes (checked in by sven, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | // Initially define the current page as either being owned by the current user, |
| 4 | // or the null user with ID -1 |
| 5 | |
| 6 | global $page_owner; |
| 7 | |
| 8 | if (logged_on) { |
| 9 | |
| 10 | $page_owner = $_SESSION['userid']; |
| 11 | |
| 12 | } else { |
| 13 | |
| 14 | $page_owner = -1; |
| 15 | |
| 16 | } |
| 17 | |
| 18 | ?> |
Note: See TracBrowser for help on using the browser.
