Location: PHPKode > projects > FlexPHP News > flexphpnewsen/installation/index.php
<?php
/*
 * The installation index file.
 */

 //System directory separator
 define('DS', DIRECTORY_SEPARATOR);

 //The page path
 define("ZPATH_BASE", dirname(__FILE__));
 //Global defines
 $parts = explode(DS, ZPATH_BASE);
 array_pop($parts);
 
 //System root path
 define("ZPATH_ROOT" , implode(DS,$parts));
 
 //default defines
 define("ZPATH_SITE", ZPATH_ROOT);
 define("ZPATH_INSTALLATION", ZPATH_ROOT.DS."installation");
 define("ZPATH_LIBRARIES", ZPATH_ROOT.DS."libraries");
 define("ZPATH_TEMPLATE", ZPATH_INSTALLATION.DS."templates");
 define("ZPATH_COMPONENTS", ZPATH_INSTALLATION.DS."components");
 define("ZPATH_MODULES", ZPATH_INSTALLATION.DS."modules");
 require_once(ZPATH_BASE.DS."includes".DS."framework.php");
 
 $mainFrame = ZFactory::getApplication("installation");
 $mainFrame->init($lang);
 
 if(file_exists(ZPATH_BASE.DS."includes".DS."helper.php"))
 {
 	require_once(ZPATH_BASE.DS."includes".DS."helper.php");
 }
 
 $com = ZInstallationHelper::findCom();
 
 $mainFrame->dispath($com);
 
 $mainFrame->displayTemplate();
?>
Return current item: FlexPHP News