backend: do not include all modules all the time

This commit is contained in:
Andrew Dolgov 2011-12-11 22:23:11 +04:00
parent aea655489c
commit 1c9d14ad79
1 changed files with 9 additions and 16 deletions

View File

@ -126,14 +126,7 @@
5 => __("Power User"), 5 => __("Power User"),
10 => __("Administrator")); 10 => __("Administrator"));
require_once "modules/pref-prefs.php";
require_once "modules/popup-dialog.php";
require_once "modules/help.php";
require_once "modules/pref-feeds.php";
require_once "modules/pref-filters.php";
require_once "modules/pref-labels.php";
require_once "modules/pref-users.php";
require_once "modules/pref-instances.php";
$error = sanity_check($link); $error = sanity_check($link);
@ -405,42 +398,42 @@
break; // viewfeed break; // viewfeed
case "pref-feeds": case "pref-feeds":
require_once "modules/pref-feeds.php";
module_pref_feeds($link); module_pref_feeds($link);
break; // pref-feeds break; // pref-feeds
case "pref-filters": case "pref-filters":
require_once "modules/pref-filters.php";
module_pref_filters($link); module_pref_filters($link);
break; // pref-filters break; // pref-filters
case "pref-labels": case "pref-labels":
require_once "modules/pref-labels.php";
module_pref_labels($link); module_pref_labels($link);
break; // pref-labels break; // pref-labels
case "pref-prefs": case "pref-prefs":
require_once "modules/pref-prefs.php";
module_pref_prefs($link); module_pref_prefs($link);
break; // pref-prefs break; // pref-prefs
case "pref-users": case "pref-users":
require_once "modules/pref-users.php";
module_pref_users($link); module_pref_users($link);
break; // prefs-users break; // prefs-users
case "help": case "help":
require_once "modules/help.php";
module_help($link); module_help($link);
break; // help break; // help
case "dlg": case "dlg":
require_once "modules/popup-dialog.php";
module_popup_dialog($link); module_popup_dialog($link);
break; // dlg break; // dlg
case "pref-pub-items":
module_pref_pub_items($link);
break; // pref-pub-items
case "pref-feed-browser":
module_pref_feed_browser($link);
break; // pref-feed-browser
case "pref-instances": case "pref-instances":
require_once "modules/pref-instances.php";
module_pref_instances($link); module_pref_instances($link);
break; // pref-instances break; // pref-instances