Documentation is available at system_header.php
- <?php
- $root = rtrim( $_SERVER['DOCUMENT_ROOT'], '/' ).'/pi/';
- $systemHeaderLoc = $root.'Modules/system_beta_1/Includes/';
- //include upstream header
- if( !in_array( $root."Core_Resources/core_header.php", get_included_files() ) ) {
- //echo $root."Core_Resources/core_header.php<br>";
- include_once $root."Core_Resources/core_header.php";
- }
- //include files in the folder
- $includeArray = array();
- if ($handle = opendir($systemHeaderLoc)) {
- while (false !== ($file = readdir($handle))) {
- $path_parts = pathinfo($file);
- if ($file != "." && $file != ".." && ( $path_parts['extension'] == "php" ) ) {
- array_push( $includeArray, $file );
- }
- }
- closedir($handle);
- }
- if( count($includeArray) ) {
- foreach( $includeArray as $include ) {
- if( $include != "system_management.php" && $include != "new_object.php" ) {
- //echo $systemHeaderLoc.$include;
- include_once $systemHeaderLoc.$include;
- }
- }
- }
- //include downstream headers
- $activeModules = core_get_active_modules();
- for($i=0;$i<count($activeModules);$i++) {
- if( $activeModules[$i]['module_name'] != "system_beta_1" ) {
- $requireString = $root."Modules/".$activeModules[$i]['module_location'].'/'.$activeModules[$i]['module_name']."_header.php";
- include_once $requireString;
- }
- }
- ?>
Documentation generated on Tue, 24 May 2005 03:59:05 -0400 by phpDocumentor 1.3.0RC3