Location: PHPKode > projects > PHP Minimus Blog > up_to_101/index.php
<?php
/************************************************************************/
/* Minimus Blog: Web Portal System                                      */
/* ===============================                                      */
/* Write by Cyril Levert                                                */
/* Copyright (c) 2009-2010                                              */
/* http://www.php-minimus.org                                           */
/* hide@address.com                                                  */
/*                                                                      */
/* This program is free software.                                       */
/************************************************************************/
/* Based on PHP-Maximus: Web Portal System                              */
/************************************************************************/
define('MINIMUS', true);
define('MAXIMUS', true);
define('ROOT_PATH', @dirname(__FILE__) );
define('INCLUDE_PATH', ROOT_PATH.'/');

$tmp = ROOT_PATH.'/kernel/mainfile.php';
if ( is_file( $tmp ) ) include_once( $tmp );

if ( $file != 'index' ) Filtre_Module( $file );

define('MODULE_FILE', true);

(! isset( $name ) ) ? $name = secure( $main_module, 'strip', 'hard' ) : $name = secure( $name, 'strip', 'hard' );
define('MODULE_NAME', $name );

if ( REQUEST_URI == 'index.php' ) define('HOME_FILE', true);

if (stripos_clone($name,'..') || (isset($file) && stripos_clone($file,'..')) ) {
		die('You are so cool...');
} else {
	if ( is_module( $name ) ){
		include_once( INCLUDE_PATH.'modules/'.$name.'/'.$file.'.php' );
	} elseif ( ! is_module( $name ) ) {
		$tmp = INCLUDE_PATH.'kernel/addons/home_nomodule.php';
		if ( is_file( $tmp ) ) include_once( $tmp );
	} else {
		$tmp = INCLUDE_PATH.'kernel/addons/home_probleme.php';
		if ( is_file( $tmp ) ) include_once( $tmp );
	}
}
Return current item: PHP Minimus Blog