Skip to content
Newer
Older
100644 39 lines (33 sloc) 923 Bytes
a8b65d1 initial import
alimadhi authored Jun 24, 2009
1 <?php
2
3 /**
4 * @file
5 * The PHP page that serves all page requests on a Drupal installation.
6 *
7 * The routines here dispatch control to the appropriate handler, which then
8 * prints the appropriate page.
9 *
10 * All Drupal code is released under the GNU General Public License.
11 * See COPYRIGHT.txt and LICENSE.txt.
12 */
13
14 require_once './includes/bootstrap.inc';
15 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
16
17 $return = menu_execute_active_handler();
18
19 // Menu status constants are integers; page content is a string.
20 if (is_int($return)) {
21 switch ($return) {
22 case MENU_NOT_FOUND:
23 drupal_not_found();
24 break;
25 case MENU_ACCESS_DENIED:
26 drupal_access_denied();
27 break;
28 case MENU_SITE_OFFLINE:
29 drupal_site_offline();
30 break;
31 }
32 }
33 elseif (isset($return)) {
34 // Print any value (including an empty string) except NULL or undefined:
35 print theme('page', $return);
36 }
37
e3636a3 add css override
rwbrandon authored Apr 19, 2010
38 drupal_page_footer();
Something went wrong with that request. Please try again.