= 5 ) ) { echo '
'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
FATAL ERROR
    '; echo '
    MIOLO 2 requires PHP >= 5


    '; echo ' Unable to continue!
    '; echo '
'; echo '
MIOLO Framework v2.0
'; echo ' Copyleft (L) 2004-2006 by SOLIS
'; exit; } global $debugOn; $debugOn = true; $dir = 'handlers/'; // Include support file include_once($dir.'support.inc'); // Initate processes & variables include_once($dir.'init.inc'); // add an option to the navigation bar //$navbar->addOption('Installation', $module, 'main'); $module = MIOLO::_REQUEST('module'); $action = MIOLO::_REQUEST('action'); $item = MIOLO::_REQUEST('item'); // Requesting a file? if ( substr($action, 0, strpos($action, ':') ) == 'themes' ) { $fileName = substr( $action, strrpos($action, ':')+1, strlen($action) ); $file_info = pathinfo($fileName); if ( $file_info['extension'] == 'css' ) { $location = $MIOLO->getConf('home.themes'); } else { $location = $MIOLO->getConf('home.themes') . '/images/'; } $fullName = $location . $fileName; $d = new MDownload(); $d->setFileName($fullName); $d->Send(); } else if ( substr($action, 0, strpos($action, ':') ) == 'html' ) { $fileName = substr( $action, strrpos($action, ':')+1, strlen($action) ); $location = $MIOLO->getConf('home.url') . '/images/'; $fullName = $location . $fileName; $d = new MDownload(); $d->setFileName($fullName); $d->Send(); } //echo "acao: $action "; updateDispatcher('theme'); if ( $module == '' || $action == 'main' ) // start screen { include_once($dir.'main.inc'); } else if ( $module == 'install' && $action != '' ) // otherways { $fileName = $dir . $action . '.inc'; include_once($fileName); } else if ( $module == 'view' && $action != '' ) // otherways { include_once($dir.'view.inc'); } // Generate Page Content updateDispatcher('default'); //$MIOLO->setConf('home.url', 'http://' . $_SERVER['HTTP_HOST' ]); $MIOLO->theme->init(); $MIOLO->page->generate(); $MIOLO->history->close(); $MIOLO->terminate(); ?>