Source of trunk/sidebar.php at revision 363 (05/07/2008 10:05:26, 1671 bytes, 59 lines, language: php) [download]:
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | ** Sidebar Functions |
| 5 | ** for CodewiseBlog Multi-User |
| 6 | ** |
| 7 | |
| 8 | ** Copyright (c) 2005-2008 Codewise.org |
| 9 | */ |
| 10 | |
| 11 | /* |
| 12 | ** This file is part of CodewiseBlog |
| 13 | ** |
| 14 | ** CodewiseBlog is free software; you can redistribute it and/or modify |
| 15 | ** it under the terms of the GNU General Public License as published by |
| 16 | ** the Free Software Foundation; either version 2 of the License, or |
| 17 | ** (at your option) any later version. |
| 18 | ** |
| 19 | ** CodewiseBlog is distributed in the hope that it will be useful, |
| 20 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | ** GNU General Public License for more details. |
| 23 | ** |
| 24 | ** You should have received a copy of the GNU General Public License |
| 25 | ** along with CodewiseBlog; if not, write to the Free Software |
| 26 | ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 27 | */ |
| 28 | |
| 29 | function welcomeback() |
| 30 | { |
| 31 | global $BLOGINFO; |
| 32 | |
| 33 | if($_SESSION['beenhere'] === TRUE) |
| 34 | { |
| 35 | if($_SESSION['postername'] != "") |
| 36 | { |
| 37 | $name = $_SESSION['postername']; |
| 38 | $contents = skinvoodoo("welcomeback", "name", array("name" => $name)); |
| 39 | } else { |
| 40 | $contents = skinvoodoo("welcomeback", "noname"); |
| 41 | } |
| 42 | return skinvoodoo("welcomeback", "", array("contents" => $contents, "url" => INDEX_URL . "?delsession")); |
| 43 | } else { |
| 44 | $_SESSION['beenhere'] = TRUE; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | function subscribeform() |
| 49 | { |
| 50 | return skinvoodoo("subscribeform", "", array("url" => INDEX_URL . "?subscribe")); |
| 51 | } |
| 52 | |
| 53 | function loginform() |
| 54 | { |
| 55 | return skinvoodoo("loginform", "", array("url" => INDEX_URL . "?login")); |
| 56 | } |
| 57 | |
| 58 | ?> |
| 59 |