resume('index.php'); if( ! isset($collections_Module) ) { // The evocore framework is not used as a CMS app here / we don't know how to display a public interface... header_redirect( $admin_url, 302 ); exit(0); } // initialize which collection should be displayed, and display default page if collection could not be initialized if( !init_requested_coll_or_process_tinyurl( true, true ) ) { // No specific collection to be displayed: if( $Settings->get( 'default_blog_ID' ) == -1 ) { // we are going to display the admin page: global $dispatcher; if( ! is_logged_in() ) { // User must be logged in and his/her account must be validated before access to admin: // TODO: fp>yb: Why is this case not handled inside of `evoadm.php` ? $login_required = true; $validate_required = true; require $inc_path.'_init_login.inc.php'; } require dirname(__FILE__).'/'.$dispatcher; } else { // we are going to display the default page: require dirname(__FILE__).'/default.php'; } exit(); } // A collection has been requested... Let's set a few default params: # You could *force* a specific skin here with this setting: # $skin = 'basic'; # Additionnaly, you can set other values (see URL params in the manual)... # $order = 'ASC'; // This for example would display the collection in chronological order... $Timer->pause('index.php'); // That's it, now let b2evolution do the rest! :) require $inc_path.'_blog_main.inc.php'; ?>