]> git.mxchange.org Git - shipsimu.git/commitdiff
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 30982b59fea72a939b6d85bde4ab4f5165fd5185..6c20fc356ef1ed5a115af781d1b6a4aea5655b63 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 bade6cbef15368bfb0bf9237f52f1e77eb862bf5..f51f5ae112759e2e58d176711702fcf9e4e91b9b 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 3711c98c7240d73adc96949522ed33b8214cf2f2..928acca58d64478cdc88b6bfa35bb0af10242acd 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 a77ca0d763da10d8b28100dca7310e618e01cfa7..0185a206742edb1c55e6728f31d2e51a11dad663 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 abe45346c617c9cd9299cc054cbf6c9544904616..c0786aaadbc13529efd3fa750cbc09d3d1b1b160 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 48141e85a9bf59e6a056b952935e2187e7234f65..4c59f6dd62b126204b9bf0d4acdf55d79a1d756d 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]