drupal/index.php

37 lines
592 B
PHP
Raw Normal View History

<?php
// $Id$
2000-05-18 19:51:59 +00:00
include_once "includes/common.inc";
2000-05-18 19:51:59 +00:00
if (isset($q)) {
2003-01-06 19:51:01 +00:00
$mod = arg(0);
}
2003-01-06 19:51:01 +00:00
if ($mod && module_hook($mod, "page")) {
if ($mod != "admin") {
page_header();
}
module_invoke($mod, "page");
if ($mod != "admin") {
page_footer();
}
}
else {
2003-01-06 19:51:01 +00:00
page_header();
2003-01-06 19:51:01 +00:00
check_php_setting("magic_quotes_gpc", 0);
check_php_setting("register_globals", 1);
if (module_hook(variable_get("site_frontpage", "node"), "page")) {
module_invoke(variable_get("site_frontpage", "node"), "page");
}
else {
theme("header");
theme("footer");
2003-01-06 19:51:01 +00:00
}
page_footer();
}
2000-05-19 11:20:58 +00:00
?>