Changeset 1424 for trunk/rss/cls/wrappers/header.php
- Timestamp:
- 04/09/06 23:29:35 (3 years ago)
- Files:
-
- 1 modified
-
trunk/rss/cls/wrappers/header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss/cls/wrappers/header.php
r1421 r1424 137 137 function rss_header_logininfo() { 138 138 139 // Login handler140 if (isset($_POST['username']) && isset($_POST['password'])) {141 $loginRes = explode('|', __exp_login($_POST['username'],md5($_POST['password'])));142 $user = array();143 list($user['ulevel'],$user['uname'],$dummy) = $loginRes;144 unset($dummy);145 } else {146 $user = rss_getUser();147 }148 149 139 $ret = "<span id=\"loginfo\">\n"; 150 140 151 if ( $user['ulevel']> RSS_USER_LEVEL_NOLEVEL) {152 $ret .= sprintf(LBL_LOGGED_IN_AS, $user['uname'])141 if (rss_user_level() > RSS_USER_LEVEL_NOLEVEL) { 142 $ret .= sprintf(LBL_LOGGED_IN_AS, rss_user_name()) 153 143 ." | <a href=\"".getPath()."?logout\">".LBL_LOG_OUT."</a>\n"; 154 144 } else {
