- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
- require($INC);
-} elseif (!EXT_IS_ACTIVE('sql_patches')) {
- // The extension 'sql_patches' *MUST* be activated or you have lot's of problems!
- LOAD_URL('admin.php');
-}
-
-// Load adverstising template
-define('__GUEST_ADVERT', LOAD_TEMPLATE('guest_advert', true));