path: root/index.php
diff options
authorKjartan Mannes2002-04-14 19:34:04 (GMT)
committerKjartan Mannes2002-04-14 19:34:04 (GMT)
commit559276162095e907db21dd3da3c1bea13b4b7c62 (patch)
treeeaa3a34b8261c88e0dffd48059ceb0cd0577251b /index.php
parent3ffe07f57c6fd177e2693d1e4b60178644036a4b (diff)
This is a major change to the system, needs more testing!
Committing Changes by Moshe Weitzman: - admin_user_account(), user_edit(), and user_view() no longer have any hard code for authentication modules. instead authentication modules implement the _user hook. - fixed a couple 'help' typos. - linked the 'REGISTER' text in the login block to the register page. this page now advertises DA better if site employs DA. - admins may now edit everything about a user account (was a feature request). - user #1 may now login immediately, in addition to receiving his password via email. Other changes: - modules and themes are now enabled/disabled in the administrative / settings / modules | themes pages. Requires SQL update and things must be enabled before your site returns to normal. TODO: enable all functionality. (For now just do UPDATE system SET status = 1;) - removed $themes from conf.php. - added a $theme->system() function where theme can specify settings. All themes in the Drupal CVS have been updated to use this. - added _system hook to modules. TODO: update modules to use this. - changed strange use of sprintf to the usual strtr. The disadvantage of sprintf is that it requires translations to keep the string order, which may not be possible in all languages. - an invalid/nonexisting theme in a user profile will now fallback to the BaseTheme instead of crashing.
Diffstat (limited to 'index.php')
1 files changed, 8 insertions, 2 deletions
diff --git a/index.php b/index.php
index 7c925a8..b9c0a28 100644
--- a/index.php
+++ b/index.php
@@ -5,8 +5,14 @@ include_once "includes/";
-eval(variable_get("site_frontpage_extra", "") .";");
-module_invoke(variable_get("site_frontpage", "node"), "page");
+if (module_hook(variable_get("site_frontpage", "node"), "page")) {
+ eval(variable_get("site_frontpage_extra", "") .";");
+ module_invoke(variable_get("site_frontpage", "node"), "page");
+else {
+ $theme->header();
+ $theme->footer();