Show
Ignore:
Timestamp:
04/09/06 23:29:35 (3 years ago)
Author:
mbonetti
Message:

Handle all user business in a new (early loaded) User class. Also fixes #382

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/admin/index.php

    r1421 r1424  
    7272define ('CST_ADMIN_OPML_IMPORT_MERGE',3); 
    7373 
    74 $auth=rss_check_user_level(RSS_USER_LEVEL_ADMIN); 
     74 
     75$auth=rss_user_check_user_level(RSS_USER_LEVEL_ADMIN); 
    7576if (! $auth) { 
    7677    // check whether the admin password has been set. 
     
    8687        set_admin_pass($admin_uname,$admin_pass); 
    8788    } 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(); 
    10391    } 
    10492} 
     
    116104 */ 
    117105function admin_main($authorised) { 
    118  
    119106    echo "\n<div id=\"channel_admin\" class=\"frame\">"; 
    120107    if ($authorised) {