application/selector/data.php -text svneol=unset#text/plain
application/selector/debug.php -text svneol=unset#text/plain
application/selector/exceptions.php -text svneol=unset#text/plain
+application/selector/exceptions/.htaccess -text
application/selector/init.php -text svneol=unset#text/plain
+application/selector/interfaces/.htaccess -text
application/selector/loader.php -text svneol=unset#text/plain
+application/selector/main/.htaccess -text
application/selector/starter.php -text svneol=unset#text/plain
application/selector/templates/.htaccess -text
application/selector/templates/de/.htaccess -text
// CFG: FORM-TARGET
$cfg->setConfigEntry('form_target', '_self');
+// CFG: WEB-CMD-HOME-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver');
+
+// CFG: NEWS-DOWNLOAD-FILTER
+$cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter');
+
+// CFG: NEWS-PROCESS-FILTER
+$cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter');
+
+// CFG: NEWS-READER-HOME-CLASS
+$cfg->setConfigEntry('news_reader_home_class', 'DefaultNewsReader');
+
+// CFG: NEWS-HOME-LIMIT
+$cfg->setConfigEntry('news_home_limit', 10);
+
// [EOF]
?>
);
// Set application name and version
-$app->setAppName("Applikationsauswähler");
-$app->setAppVersion("0.1a");
+$app->setAppName('Applikationsauswähler');
+$app->setAppVersion('0.1a');
$app->setAppShortName($cfg->getConfigEntry('selector_name'));
// [EOF]
--- /dev/null
+Deny from all
// Initialize output system
require($cfg->getConfigEntry('base_path') . 'inc/output.php');
+// This application needs a database connection then we have to simply include
+// the inc/database.php script
+require($cfg->getConfigEntry('base_path') . 'inc/database.php');
+
// [EOF]
?>
--- /dev/null
+Deny from all
<?php
/**
- * The application's class loader
+ * A specialized class loader for this class
+ *
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
// Get config instance
$cfg = FrameworkConfiguration::getSelfInstance();
-// Load all classes
-ClassLoader::getSelfInstance()->scanClassPath(sprintf("%s/%s/", $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name')));
+// Load all classes for the application
+foreach ($lowerClasses as $className) {
+ // Load the application classes
+ ClassLoader::getSelfInstance()->scanClassPath(sprintf("%s/%s/%s", $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name'), $className));
+} // END - if
// Clean up the global namespace
unset($lowerClasses);
+unset($className);
// [EOF]
?>
--- /dev/null
+Deny from all
));
}
-// Call the entry point method
+// Call user function
call_user_func_array(array($app, FrameworkConfiguration::getSelfInstance()->getConfigEntry('entry_method')), array());
// [EOF]