index.php 907 Bytes
Newer Older
1
<?php
2
// $Id$
Dries's avatar
Dries committed
3

4
include_once "includes/common.inc";
Dries's avatar
Dries committed
5

6 7
drupal_page_header();

8
fix_gpc_magic();
9 10 11

menu_build("system");

12 13 14 15 16
if (menu_active_handler_exists()) {
  $breadcrumb = menu_get_active_breadcrumb();
  array_pop($breadcrumb);
  $title = menu_get_active_title();

17 18
  print theme("header");
  print theme("breadcrumb", $breadcrumb);
19 20 21 22
  if ($help = menu_get_active_help()) {
    $contents = "<small>$help</small><hr />";
  }
  $contents .= menu_execute_active_handler();
23 24
  print theme("box", $title, $contents);
  print theme("footer");
25 26
}
else {
27 28 29 30
  $mod = arg(0);

  if (isset($mod) && module_hook($mod, "page")) {
    module_invoke($mod, "page");
Dries's avatar
Dries committed
31 32
  }
  else {
33 34 35 36
    if (module_hook(variable_get("site_frontpage", "node"), "page")) {
      module_invoke(variable_get("site_frontpage", "node"), "page");
    }
    else {
37 38
      print theme("header");
      print theme("footer");
39
    }
Dries's avatar
Dries committed
40 41
  }
}
42

43 44
drupal_page_footer();

Kjartan's avatar
Kjartan committed
45
?>