Added missing directories/config entries
authorRoland Häder <roland@mxchange.org>
Wed, 25 Apr 2012 17:06:59 +0000 (17:06 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 25 Apr 2012 17:06:59 +0000 (17:06 +0000)
.gitattributes
application/selector/config.php
application/selector/data.php
application/selector/exceptions/.htaccess [new file with mode: 0644]
application/selector/init.php
application/selector/interfaces/.htaccess [new file with mode: 0644]
application/selector/loader.php
application/selector/main/.htaccess [new file with mode: 0644]
application/selector/starter.php

index 30982b5..6c20fc3 100644 (file)
@@ -8,8 +8,11 @@ application/selector/config.php -text svneol=unset#text/plain
 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
index bade6cb..f51f5ae 100644 (file)
@@ -43,5 +43,20 @@ $cfg->setConfigEntry('form_method', 'post');
 // 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]
 ?>
index 3711c98..928acca 100644 (file)
@@ -35,8 +35,8 @@ $app = call_user_func_array(
 );
 
 // Set application name and version
-$app->setAppName("Applikationsausw&auml;hler");
-$app->setAppVersion("0.1a");
+$app->setAppName('Applikationsausw&auml;hler');
+$app->setAppVersion('0.1a');
 $app->setAppShortName($cfg->getConfigEntry('selector_name'));
 
 // [EOF]
diff --git a/application/selector/exceptions/.htaccess b/application/selector/exceptions/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
index a77ca0d..0185a20 100644 (file)
@@ -31,5 +31,9 @@ $cfg = FrameworkConfiguration::getSelfInstance();
 // 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]
 ?>
diff --git a/application/selector/interfaces/.htaccess b/application/selector/interfaces/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
index abe4534..c0786aa 100644 (file)
@@ -1,6 +1,7 @@
 <?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]
 ?>
diff --git a/application/selector/main/.htaccess b/application/selector/main/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
index 48141e8..4c59f6d 100644 (file)
@@ -46,7 +46,7 @@ if ((empty($app)) || (is_null($app))) {
        ));
 }
 
-// Call the entry point method
+// Call user function
 call_user_func_array(array($app, FrameworkConfiguration::getSelfInstance()->getConfigEntry('entry_method')), array());
 
 // [EOF]