index.php 801 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 9
drupal_page_header();

Dries's avatar
 
Dries committed
10
fix_gpc_magic();
11 12 13

menu_build("system");

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

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

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

Dries's avatar
 
Dries committed
40 41
drupal_page_footer();

Kjartan's avatar
 
Kjartan committed
42
?>