From 1c9d14ad79a1d436994be74e7ae66e9b365f5cfd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 11 Dec 2011 22:23:11 +0400 Subject: [PATCH] backend: do not include all modules all the time --- backend.php | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/backend.php b/backend.php index c702c9fb..077788dc 100644 --- a/backend.php +++ b/backend.php @@ -126,14 +126,7 @@ 5 => __("Power User"), 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); @@ -405,42 +398,42 @@ break; // viewfeed case "pref-feeds": + require_once "modules/pref-feeds.php"; module_pref_feeds($link); break; // pref-feeds case "pref-filters": + require_once "modules/pref-filters.php"; module_pref_filters($link); break; // pref-filters case "pref-labels": + require_once "modules/pref-labels.php"; module_pref_labels($link); break; // pref-labels case "pref-prefs": + require_once "modules/pref-prefs.php"; module_pref_prefs($link); break; // pref-prefs case "pref-users": + require_once "modules/pref-users.php"; module_pref_users($link); break; // prefs-users case "help": + require_once "modules/help.php"; module_help($link); break; // help case "dlg": + require_once "modules/popup-dialog.php"; module_popup_dialog($link); 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": + require_once "modules/pref-instances.php"; module_pref_instances($link); break; // pref-instances -- 2.39.5