Main Page   File List   File Members   Related Pages  

page.php

Go to the documentation of this file.
00001 <?php
00002 // $Header: /cvsroot/modphpcms/modphpcms/page.php,v 1.9 2004/06/08 15:55:19 fred87 Exp $
00003 include 'includes/config.inc.php';              // database connection info
00004 include 'includes/htmlparse.inc.php';
00005 include 'modules/db_' . config_db_method . '.php';
00006 include 'includes/modfuncs.inc.php';    // module helper functions
00007 
00030 //Security check - does install.php exist? 
00031 {
00032   $show_install_warning = false;
00033   if (file_exists('install.php'))
00034   {
00035     if (!debug_mode)
00036     {
00037       include 'includes/pagestart.inc.php';
00038       ?>
00039       <h1>Critical Security Error</h1>
00040       <p>
00041       Error: The file '<span style='font-family: monospace'>install.php</span>' exists.
00042       Either modphpcms is not installed yet, or this is a <em>huge</em> security risk.
00043       </p>
00044       <hr />
00045       <p>
00046       <span style='font-size: smaller; font-style: italic'>modphpcms</span>
00047       </p>
00048       <?php
00049       include 'includes/pageend.inc.php';
00050       die();
00051     } else $show_install_warning = true;
00052   }
00053   define('show_install_warning', $show_install_warning);
00054 }
00055 //Load modules 
00056 {
00057   $modules = explode(";", get_module_list());
00058   
00059   foreach ($modules as $module)
00060   {
00061     if($module == '')
00062       break;
00063     include 'modules/' . $module . '.php';
00064   }
00065 }
00066 CallHooks('on_request');
00067 include 'includes/pagestart.inc.php';
00068 get_page();
00069 include 'includes/pageend.inc.php';
00070 CallHooks('page_sent');
00071 ?>

Generated on Wed Jun 9 03:38:16 2004 for modphpcms by doxygen1.2.18