drupal/index.php

37 lines
637 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 (!empty($_GET["q"])) {
if (module_exist("node") && $path = node_get_alias($_GET["q"])) {
$_GET["q"] = $path;
}
2003-01-06 19:51:01 +00:00
}
else {
$_GET["q"] = variable_get("site_frontpage", "node");
}
$mod = arg(0);
drupal_page_header();
2003-04-21 14:55:03 +00:00
if (isset($mod) && module_hook($mod, "page")) {
2003-01-06 19:51:01 +00:00
module_invoke($mod, "page");
}
else {
2003-01-06 19:51:01 +00:00
check_php_setting("magic_quotes_gpc", 0);
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
}
}
drupal_page_footer();
2000-05-19 11:20:58 +00:00
?>