equal
deleted
inserted
replaced
1 <?php |
1 <?php |
2 |
2 |
3 /* |
3 /* |
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
5 * Version 1.1.6 (Caoineag beta 1) |
5 * Copyright (C) 2006-2009 Dan Fuhry |
6 * Copyright (C) 2006-2008 Dan Fuhry |
|
7 * |
6 * |
8 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
7 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
9 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
8 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
10 * |
9 * |
11 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
10 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
178 { |
177 { |
179 eval($cmd); |
178 eval($cmd); |
180 } |
179 } |
181 |
180 |
182 profiler_log('Finished base_classes_initted hook'); |
181 profiler_log('Finished base_classes_initted hook'); |
183 |
|
184 // For special and administration pages, sometimes there is a "preloader" function that must be run |
|
185 // before the session manager and/or path manager get the init signal. Call it here. |
|
186 $p = RenderMan::strToPageId($paths->get_pageid_from_url()); |
|
187 if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader')) |
|
188 { |
|
189 call_user_func('page_'.$p[1].'_'.$p[0].'_preloader'); |
|
190 } |
|
191 |
|
192 profiler_log('Checked for preloader'); |
|
193 |
182 |
194 // One quick security check... |
183 // One quick security check... |
195 if ( isset($_SERVER['REMOTE_ADDR']) ) |
184 if ( isset($_SERVER['REMOTE_ADDR']) ) |
196 { |
185 { |
197 grinding_halt('REMOTE_ADDR detected', 'Detected a REMOTE_ADDR, this should not happen in CLI mode.'); |
186 grinding_halt('REMOTE_ADDR detected', 'Detected a REMOTE_ADDR, this should not happen in CLI mode.'); |