Changeset 1424 for trunk/rss/admin/index.php
- Timestamp:
- 04/09/06 23:29:35 (3 years ago)
- Files:
-
- 1 modified
-
trunk/rss/admin/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss/admin/index.php
r1421 r1424 72 72 define ('CST_ADMIN_OPML_IMPORT_MERGE',3); 73 73 74 $auth=rss_check_user_level(RSS_USER_LEVEL_ADMIN); 74 75 $auth=rss_user_check_user_level(RSS_USER_LEVEL_ADMIN); 75 76 if (! $auth) { 76 77 // check whether the admin password has been set. … … 86 87 set_admin_pass($admin_uname,$admin_pass); 87 88 } else { 88 // forget the password 89 unset($__pw__); 90 $login_uname = null; 91 $login_pass = null; 92 // Last chance: log in 93 if (isset($_POST['username']) && isset($_POST['password'])) { 94 $login_uname = $_POST['username']; 95 $login_pass = $_POST['password']; 96 $loginRes = explode('|', __exp_login($login_uname,md5($login_pass))); 97 $auth = $loginRes[0] >= RSS_USER_LEVEL_ADMIN; 98 } 99 if (!$auth) { 100 rss_login_form($login_uname,$login_pass); 101 exit(); 102 } 89 rss_login_form(); 90 exit(); 103 91 } 104 92 } … … 116 104 */ 117 105 function admin_main($authorised) { 118 119 106 echo "\n<div id=\"channel_admin\" class=\"frame\">"; 120 107 if ($authorised) {
