Changeset 1040

Show
Ignore:
Timestamp:
03/21/07 12:57:07 (2 years ago)
Author:
ben
Message:

Find all admin / banned users.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/_admin/users.php

    r659 r1040  
    1212        templates_page_setup(); 
    1313         
     14        $flag = optional_param("flag"); 
     15        switch($flag) { 
     16            case "admin": 
     17                            $body = run("admin:users:admin"); 
     18                            break; 
     19            case "banned": 
     20                            $body = run("admin:users:banned"); 
     21                            break; 
     22            default: 
     23                            $body = run("admin:users"); 
     24                            break; 
     25        } 
     26         
    1427    // You must be logged on to view this! 
    1528                                 
     
    1932                        'context' => 'contentholder', 
    2033                        'title' => __gettext("Manage users"),  
    21                         'body' => run("admin:users") 
     34                        'body' => $body 
    2235                    ) 
    2336                    ) 
  • devel/lib/templates.php

    r1022 r1040  
    490490                                  'html' => a_href("{$CFG->wwwroot}_admin/users.php", 
    491491                                                   __gettext("Manage users"))); 
     492 
     493        $PAGE->menu_sub[] = array( 
     494                                  'name' => 'admin:users', 
     495                                  'html' => a_href("{$CFG->wwwroot}_admin/users.php?flag=banned", 
     496                                                   __gettext("Banned users"))); 
     497 
     498        $PAGE->menu_sub[] = array( 
     499                                  'name' => 'admin:users', 
     500                                  'html' => a_href("{$CFG->wwwroot}_admin/users.php?flag=admin", 
     501                                                   __gettext("Admin users"))); 
    492502 
    493503        $PAGE->menu_sub[] = array( 
  • devel/units/admin/main.php

    r963 r1040  
    3030    // Menu to view all users 
    3131        $function['admin:users'][] = $CFG->dirroot . "units/admin/admin_users.php"; 
     32        $function['admin:users:admin'][] = $CFG->dirroot . "units/admin/admin_admin_users.php"; 
     33        $function['admin:users:banned'][] = $CFG->dirroot . "units/admin/admin_banned_users.php"; 
    3234         
    3335    // Bulk user addition screen