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

Dries's avatar
 
Dries committed
4 5
include_once "includes/bootstrap.inc";
drupal_page_header();
6
include_once "includes/common.inc";
Dries's avatar
Dries committed
7

Dries's avatar
 
Dries committed
8
fix_gpc_magic();
9 10 11

menu_build("system");

Dries's avatar
 
Dries committed
12 13 14 15 16
if (menu_active_handler_exists()) {
  $breadcrumb = menu_get_active_breadcrumb();
  array_pop($breadcrumb);
  $title = menu_get_active_title();

Dries's avatar
 
Dries committed
17 18
  print theme("header");
  print theme("breadcrumb", $breadcrumb);
Dries's avatar
 
Dries committed
19 20 21 22
  if ($help = menu_get_active_help()) {
    $contents = "<small>$help</small><hr />";
  }
  $contents .= menu_execute_active_handler();
Dries's avatar
 
Dries committed
23 24
  print theme("box", $title, $contents);
  print theme("footer");
25 26
}
else {
Dries's avatar
 
Dries committed
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
    print theme("header");
    print theme("footer");
Dries's avatar
 
Dries committed
35 36
  }
}
Dries's avatar
 
Dries committed
37

Dries's avatar
 
Dries committed
38 39
drupal_page_footer();

Kjartan's avatar
 
Kjartan committed
40
?>