Changeset 429 for trunk/admin

Show
Ignore:
Timestamp:
03/25/07 19:26:07 (20 months ago)
Author:
michiel
Message:

make it possible to remove all inactive users.
Re #132

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/index.php

    r423 r429  
    3838                                $_REQUEST["action"] = ""; 
    3939                        switch ($_REQUEST["action"]) { 
    40                                 case "check_login"         : $admin->check_login((array_key_exists("login", $_POST))?$_POST["login"]:"");                        break; 
    41                                 case "logout"              : $admin->logout();                                            break; 
    42                                 case "show_cats"           : $admin->show_cats();                                         break; 
    43                                 case "edit_cat"            : $admin->edit_cat((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                           break; 
    44                                 case "save_cat"            : $admin->save_cat($_POST["cat"]);                             break; 
    45                                 case "delete_cat"          : $admin->delete_cat($_REQUEST["cat"]["id"]);                  break; 
    46                                 case "show_posts"          : $admin->show_posts((array_key_exists("options", $_REQUEST))?$_REQUEST["options"]:"");                    break; 
    47                                 case "edit_post"           : $admin->edit_post((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                          break; 
    48                                 case "save_post"           : $admin->save_post($_POST["post"]);                           break; 
    49                                 case "delete_post"         : $admin->delete_post($_REQUEST["post"]["id"]);                break; 
    50                                 case "show_authors"        : $admin->show_authors();                                      break; 
    51                                 case "edit_author"         : $admin->edit_author((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                        break; 
    52                                 case "save_author"         : $admin->save_author($_POST["author"]);                       break; 
    53                                 case "show_users"          : $admin->show_users();                                        break; 
    54                                 case "edit_user"           : $admin->edit_user((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                          break; 
    55                                 case "save_user"           : $admin->save_user($_POST["user"]);                           break; 
    56                                 case "delete_user"         : $admin->delete_user($_REQUEST["user"]["id"]);                break; 
    57                                 case "show_settings"       : $admin->show_settings();                                     break; 
    58                                 case "save_settings"       : $admin->save_settings($_POST["settings"]); 
    59                                                              $admin->show_settings();                                     break; 
    60                                 case "show_menuitems"      : $admin->show_menuitems();                                    break; 
    61                                 case "save_menuitems"      : $admin->save_menuitems($_POST["link"]);                      break; 
    62                                 case "show_comments"       : $admin->show_comments($_REQUEST["options"]);                 break; 
    63                                 case "delete_comment"      : $admin->delete_comment($_REQUEST["id"]);                     break; 
    64                                 case "recover_comment"     : $admin->recover_comment($_REQUEST["id"]);                    break; 
    65                                 case "show_plugins"        : $admin->show_plugins();                                      break; 
    66                                 case "activate_plugin"     : $admin->_activate_plugin($_REQUEST["plugin"]); 
    67                                                              $admin->show_plugins();                                      break; 
    68                                 case "deactivate_plugin"   : $admin->_deactivate_plugin($_REQUEST["plugin"]); 
    69                                                              $admin->show_plugins();                                      break; 
    70                                 case "config_plugin"       : $admin->configure_plugin($_REQUEST["plugin"]);               break; 
    71                                 case "edit_plugin_setting" : $admin->edit_plugin_setting($_REQUEST["plugin"], $_REQUEST); break; 
    72                                 case "save_plugin_setting" : $admin->save_plugin_setting($_REQUEST["plugin"], $_REQUEST); break; 
    73                                 default                    : $admin->show_index();                                        break; 
     40                                case "check_login"           : $admin->check_login((array_key_exists("login", $_POST))?$_POST["login"]:"");                        break; 
     41                                case "logout"                : $admin->logout();                                            break; 
     42                                case "show_cats"             : $admin->show_cats();                                         break; 
     43                                case "edit_cat"              : $admin->edit_cat((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                           break; 
     44                                case "save_cat"              : $admin->save_cat($_POST["cat"]);                             break; 
     45                                case "delete_cat"            : $admin->delete_cat($_REQUEST["cat"]["id"]);                  break; 
     46                                case "show_posts"            : $admin->show_posts((array_key_exists("options", $_REQUEST))?$_REQUEST["options"]:"");                    break; 
     47                                case "edit_post"             : $admin->edit_post((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                          break; 
     48                                case "save_post"             : $admin->save_post($_POST["post"]);                           break; 
     49                                case "delete_post"           : $admin->delete_post($_REQUEST["post"]["id"]);                break; 
     50                                case "show_authors"          : $admin->show_authors();                                      break; 
     51                                case "edit_author"           : $admin->edit_author((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                        break; 
     52                                case "save_author"           : $admin->save_author($_POST["author"]);                       break; 
     53                                case "show_users"            : $admin->show_users();                                        break; 
     54                                case "edit_user"             : $admin->edit_user((array_key_exists("id", $_REQUEST))?$_REQUEST["id"]:0);                          break; 
     55                                case "save_user"             : $admin->save_user($_POST["user"]);                           break; 
     56                                case "delete_inactive_users" : $admin->delete_inactive_users($_POST["select_inactive"]);    break; 
     57                                case "delete_user"           : $admin->delete_user($_REQUEST["user"]["id"]);                break; 
     58                                case "show_settings"         : $admin->show_settings();                                     break; 
     59                                case "save_settings"         : $admin->save_settings($_POST["settings"]); 
     60                                                               $admin->show_settings();                                     break; 
     61                                case "show_menuitems"        : $admin->show_menuitems();                                    break; 
     62                                case "save_menuitems"        : $admin->save_menuitems($_POST["link"]);                      break; 
     63                                case "show_comments"         : $admin->show_comments($_REQUEST["options"]);                 break; 
     64                                case "delete_comment"        : $admin->delete_comment($_REQUEST["id"]);                     break; 
     65                                case "recover_comment"       : $admin->recover_comment($_REQUEST["id"]);                    break; 
     66                                case "show_plugins"          : $admin->show_plugins();                                      break; 
     67                                case "activate_plugin"       : $admin->_activate_plugin($_REQUEST["plugin"]); 
     68                                                               $admin->show_plugins();                                      break; 
     69                                case "deactivate_plugin"     : $admin->_deactivate_plugin($_REQUEST["plugin"]); 
     70                                                               $admin->show_plugins();                                      break; 
     71                                case "config_plugin"         : $admin->configure_plugin($_REQUEST["plugin"]);               break; 
     72                                case "edit_plugin_setting"   : $admin->edit_plugin_setting($_REQUEST["plugin"], $_REQUEST); break; 
     73                                case "save_plugin_setting"   : $admin->save_plugin_setting($_REQUEST["plugin"], $_REQUEST); break; 
     74                                default                      : $admin->show_index();                                        break; 
    7475                        } 
    7576$admin->html_footer();