2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2001-10-20 18:57:09 +00:00
|
|
|
// $Id$
|
2000-05-18 19:51:59 +00:00
|
|
|
|
2001-02-04 22:09:38 +00:00
|
|
|
include_once "includes/common.inc";
|
2000-05-18 19:51:59 +00:00
|
|
|
|
2003-03-04 06:19:38 +00:00
|
|
|
if (isset($q)) {
|
2003-01-06 19:51:01 +00:00
|
|
|
$mod = arg(0);
|
|
|
|
}
|
2002-12-26 12:16:09 +00:00
|
|
|
|
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();
|
|
|
|
}
|
2002-04-14 19:34:04 +00:00
|
|
|
}
|
|
|
|
else {
|
2003-01-06 19:51:01 +00:00
|
|
|
page_header();
|
2001-09-25 22:13:34 +00:00
|
|
|
|
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 {
|
2003-02-15 11:39:56 +00:00
|
|
|
theme("header");
|
|
|
|
theme("footer");
|
2003-01-06 19:51:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
page_footer();
|
|
|
|
}
|
2001-11-01 11:00:51 +00:00
|
|
|
|
2000-05-19 11:20:58 +00:00
|
|
|
?>
|