"; print_r( $request_args ); echo ""; die(); */ require_once( 'function/config.php'); require_once( PATH_FUNCTION .'database.php'); if( isset( $_GET['page'] ) ){ //if( isset( $request_args[2] ) ){ $page = $_GET['page']; //$page = $request_args[2]; if( $page != '' ){ if( file_exists( PATH_CONTENT . $page .'.php' ) ){ require_once( PATH_CONTENT . $page .'.php' ); }else{ require_once( PATH_CONTENT .'e404.php' ); } } } if( !isset( $_content ) || $_content == '' ){ require_once( PATH_CONTENT .'home.php' ); } require_once( PATH_ELEMENT .'head.php'); require_once( PATH_ELEMENT .'header.php'); require_once( PATH_ELEMENT .'footer.php'); require_once( PATH_FUNCTION .'output.php' ); ?>