Show
Ignore:
Timestamp:
09/26/07 08:57:31 (14 months ago)
Author:
mdodoo
Message:

Lots of things are still not working, but I think this code is better than what was currently committed ([1639]
should have been reverted, and the person who committed should have had their SVN access pulled, for example).
Created this by grabbing the trunk code and then manually inserting the MU branch's changes in. This is probably
not usable in an actual installation (no support for creating new user accounts yet, for example), but patches are
welcome.

Not sure why I write so much here - I am not sure anyone other than my fellow devs actually read them...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/multiuser/admin/index.php

    r1627 r1759  
    7777 
    7878 
    79 $auth=rss_user_check_user_level(RSS_USER_LEVEL_ADMIN); 
     79$auth=rss_user_check_user_level(RSS_USER_LEVEL_BASIC); 
    8080if (! $auth) { 
     81// we should either be setting the admin password during installation 
     82// or setting it automatically and sending it to the person installing thr. email 
    8183    // check whether the admin password has been set. 
    8284    $sql = "select uname,password from " . getTable('users') . " where ulevel=99"; 
     
    9092        } 
    9193        set_admin_pass($admin_uname,$admin_pass); 
    92      } else if(!rss_user_check_user_level(RSS_USER_LEVEL_BASIC)) { 
    93                rss_login_form(); 
    94                exit(); 
     94    } else { 
     95        rss_login_form(); 
     96      exit(); 
    9597    } 
    9698} 
     
    114116            switch($_REQUEST[CST_ADMIN_DOMAIN]) { 
    115117            case CST_ADMIN_DOMAIN_FOLDER: 
    116                     $show = folder_admin(); 
     118                $show = folder_admin(); 
    117119                break; 
    118120            case CST_ADMIN_DOMAIN_CHANNEL: 
     
    120122                break; 
    121123            case CST_ADMIN_DOMAIN_CONFIG: 
    122                 $show = config_admin(); 
     124                if ($authorised >= RSS_USER_LEVEL_ADMIN) $show = config_admin(); 
    123125                break; 
    124126            case CST_ADMIN_DOMAIN_ITEM: 
    125                 $show = item_admin(); 
     127                if ($authorised >= RSS_USER_LEVEL_ADMIN) $show = item_admin(); 
    126128                break; 
    127129            case CST_ADMIN_DOMAIN_PLUGINS: 
    128                 $show = plugins_admin(); 
     130                // TODO: add plugin management for individual users 
     131                if ($authorised >= RSS_USER_LEVEL_ADMIN) $show = plugins_admin(); 
    129132                break; 
    130133            case CST_ADMIN_DOMAIN_THEMES: