is_gelato_installed()){ if(basename($_SERVER['PHP_SELF'])!='install.php'){ header("Location: {$dir}install.php");exit; } $installed = false; } } if($installed) { require_once($configFile); } require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'configuration.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'functions.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gelato.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'templates.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'themes.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'pagination.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'user.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'comments.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'feeds.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'mysql_connection.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'streams.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gettext.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'lang.functions.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'plugin.class.php'); require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'plugins.class.php'); if($installed){ // Globals to be used throughout the application $db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password); $user = new user(); $tumble = new gelato(); $conf = new configuration(); session_start(); //print_r($conf->plugins); //die(); init_plugins(); $trigger = plugin::instance(); //echo "plugins.instances: "; //print_r(plugins::$instances); //echo "
"; //die(); //echo "plugin.actions: "; //$plugEngine = plugin::instance(); //print_r($plugEngine->actions); //die(); $trigger->call('gelato_init'); $feeds = new feeds(); $feeds->updateFeeds(); unset($feeds); } ?>