From: Roland Häder Date: Mon, 7 Dec 2009 22:45:31 +0000 (+0000) Subject: Files removed, damn SVN :( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a0182f9f3ed62391b1649ddfdc897bb05d50896;p=mailer.git Files removed, damn SVN :( --- diff --git a/.gitattributes b/.gitattributes index 083f227df7..d8922e93d6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,23 +18,6 @@ application/mailer/templates/de/.htaccess -text application/mailer/templates/de/code/.htaccess -text application/mailer/templates/de/code/emergency_exit.ctp -text application/mailer/templates/de/code/footer_msg.ctp -text -application/mxchange/.htaccess -text -application/mxchange/class_ApplicationHelper.php -text -application/mxchange/config.php -text -application/mxchange/data.php -text -application/mxchange/debug.php -text -application/mxchange/exceptions.php -text -application/mxchange/exceptions/.htaccess -text -application/mxchange/init.php -text -application/mxchange/interfaces/.htaccess -text -application/mxchange/loader.php -text -application/mxchange/main/.htaccess -text -application/mxchange/starter.php -text -application/mxchange/templates/.htaccess -text -application/mxchange/templates/de/.htaccess -text -application/mxchange/templates/de/code/.htaccess -text -application/mxchange/templates/de/code/emergency_exit.ctp -text -application/mxchange/templates/de/code/footer_msg.ctp -text /clear-cache.sh -text db/.htaccess -text docs/COPYING -text diff --git a/application/mxchange/.htaccess b/application/mxchange/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/class_ApplicationHelper.php b/application/mxchange/class_ApplicationHelper.php deleted file mode 100644 index 7f34815da9..0000000000 --- a/application/mxchange/class_ApplicationHelper.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -class ApplicationHelper extends BaseApplication implements ManageableApplication, Registerable { - /** - * The version number of this application - */ - private $appVersion = ""; - - /** - * The human-readable name for this application - */ - private $appName = ""; - - /** - * The short uni*-like name for this application - */ - private $shortName = ""; - - /** - * An instance of a controller - */ - private $controllerInstance = null; - - /** - * An instance of this class - */ - private static $thisInstance = null; - - /** - * Protected constructor - * - * @return void - */ - protected function __construct () { - // Call parent constructor - parent::__construct(__CLASS__); - } - - /** - * Getter for an instance of this class - * - * @return $thisInstance An instance of this class - */ - public final static function getInstance () { - // Is the instance there? - if (is_null(self::$thisInstance)) { - self::$thisInstance = new ApplicationHelper(); - } - - // Return the instance - return self::$thisInstance; - } - - /** - * Getter for the version number - * - * @return $appVersion The application's version number - */ - public final function getAppVersion () { - return $this->appVersion; - } - - /** - * Setter for the version number - * - * @param $appVersion The application's version number - * @return void - */ - public final function setAppVersion ($appVersion) { - // Cast and set it - $appVersion = (string) $appVersion; - $this->appVersion = $appVersion; - } - - /** - * Getter for human-readable name - * - * @return $appName The application's human-readable name - */ - public final function getAppName () { - return $this->appName; - } - - /** - * Setter for human-readable name - * - * @param $appName The application's human-readable name - * @return void - */ - public final function setAppName ($appName) { - // Cast and set it - $appName = (string) $appName; - $this->appName = $appName; - } - - /** - * Getter for short uni*-like name - * - * @return $shortName The application's short uni*-like name - */ - public final function getAppShortName () { - return $this->shortName; - } - - /** - * Setter for short uni*-like name - * - * @param $shortName The application's short uni*-like name - * @return void - */ - public final function setAppShortName ($shortName) { - // Cast and set it - $shortName = (string) $shortName; - $this->shortName = $shortName; - } - - /** - * Builds the master template's name - * - * @return $masterTemplateName Name of the master template - */ - public function buildMasterTemplateName () { - // Get short name and add suffix - $masterTemplateName = str_replace("-", "", $this->getAppShortName()) . "_main"; - - // Return it - return $masterTemplateName; - } - - /** - * Launches the admin area - * - * @return void - */ - public final function entryPoint () { - // Create a new request object - $requestInstance = ObjectFactory::createObjectByName('HttpRequest'); - - // Remember request instance here - $this->setRequestInstance($requestInstance); - - // Default response is HTTP (HTML page) and type is 'Web' - $response = 'http'; - $responseType = 'web'; - - // Do we have another response? - if ($requestInstance->isRequestElementSet('request')) { - // Then use it - $response = strtolower($requestInstance->getRequestElement('request')); - $responseType = $response; - } // END - if - - // ... and a new response object - $responseClass = sprintf("%sResponse", $this->convertToClassName($response)); - $responseInstance = ObjectFactory::createObjectByName($responseClass, array($this)); - - // Remember response instance here - $this->setResponseInstance($responseInstance); - - // Get the parameter from the request - $commandName = $requestInstance->getRequestElement('page'); - - // If it is null then get default command - if (is_null($commandName)) { - // Get default command - $commandName = $responseInstance->getDefaultCommand(); - - // Set it in request - $requestInstance->setRequestElement('page', $commandName); - } // END - if - - // Get a resolver - $resolverClass = sprintf("%sControllerResolver", $this->convertToClassName($responseType)); - $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); - - // Get a controller instance as well - $this->controllerInstance = $resolverInstance->resolveController(); - - // Get a web output class - $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class', array($this)); - - // Set it in this application - $this->setWebOutputInstance($outputInstance); - - // Handle the request - $this->controllerInstance->handleRequest($requestInstance, $responseInstance); - } - - /** - * Handle the indexed array of fatal messages and puts them out in an - * acceptable fasion - * - * @param $messageList An array of fatal messages - * @return void - */ - public function handleFatalMessages (array $messageList) { - // Walk through all messages - foreach ($messageList as $message) { - print("MSG:".$message."
\n"); - } // END - if - } - - /** - * Assigns application-depending data - * - * @param $templateInstance An instance of a template engine - * @return void - */ - public function assignExtraTemplateData (CompileableTemplate $templateInstance) { - // Assign charset - $templateInstance->assignConfigVariable('header_charset'); - } -} - -// [EOF] -?> diff --git a/application/mxchange/config.php b/application/mxchange/config.php deleted file mode 100644 index d5cedbdf4d..0000000000 --- a/application/mxchange/config.php +++ /dev/null @@ -1,26 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// [EOF] -?> diff --git a/application/mxchange/data.php b/application/mxchange/data.php deleted file mode 100644 index b9b0fdcefa..0000000000 --- a/application/mxchange/data.php +++ /dev/null @@ -1,51 +0,0 @@ -isClass("ApplicationSelector"))) { return; } - * - * isset() is required to prevent a warning and is_object() is highly required - * when the application itself is requested in URL (hint: index.php?app=your_app) - * - * @author Roland Haeder - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// Get config instance -$cfg = FrameworkConfiguration::getInstance(); - -// Get an instance of the helper -$app = call_user_func_array( - array($cfg->getConfigEntry('app_helper_class'), 'getInstance'), - array() -); - -// Set application name and version -$app->setAppName('Mailer-Project'); -$app->setAppVersion('0.3.0'); -$app->setAppShortName('mailer'); - -// [EOF] -?> diff --git a/application/mxchange/debug.php b/application/mxchange/debug.php deleted file mode 100644 index 0ba635aeb0..0000000000 --- a/application/mxchange/debug.php +++ /dev/null @@ -1,26 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// [EOF] -?> diff --git a/application/mxchange/exceptions.php b/application/mxchange/exceptions.php deleted file mode 100644 index bb3f8aa3df..0000000000 --- a/application/mxchange/exceptions.php +++ /dev/null @@ -1,85 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// Our own exception handler -function __exceptionHandler (FrameworkException $e) { - // Call the app_die() method - ApplicationEntryPoint::app_die(sprintf("[Main:] The application %s (%s) has terminated due to a thrown exception: %s [%s]: %s Backtrace:
%s
", - ApplicationHelper::getInstance()->getAppName(), - ApplicationHelper::getInstance()->getAppShortName(), - $e->__toString(), - $e->getHexCode(), - $e->getMessage(), - $e->getPrintableBackTrace() - ), - $e->getHexCode(), - $e->getExtraData() - ); -} // END - function - -// Set the new handler -set_exception_handler('__exceptionHandler'); - -// Error handler -function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext) { - // Construct the message - $message = sprintf("File: %s, Line: %s, Code: %s, Message: %s", - basename($errfile), - $errline, - $errno, - $errstr - ); - - // Throw an exception here - throw new FatalErrorException($message, BaseFrameworkSystem::EXCEPTION_FATAL_ERROR); -} // END - function - -// Set error handler -set_error_handler('__errorHandler'); - -// Assertion handler -function __assertHandler ($file, $line, $code) { - // Empty code? - if ($code === "") $code = "Unknown"; - - // Create message - $message = sprintf("File: %s, Line: %s, Code: %s", - basename($file), - $line, - $code - ); - - // Throw an exception here - throw new AssertionException($message, BaseFrameworkSystem::EXCEPTION_ASSERTION_FAILED); -} // END - function - -// Init assert handling -assert_options(ASSERT_ACTIVE, 1); -assert_options(ASSERT_WARNING, 0); -assert_options(ASSERT_BAIL, 0); -assert_options(ASSERT_QUIET_EVAL, 0); -assert_options(ASSERT_CALLBACK, '__assertHandler'); - -// [EOF] -?> diff --git a/application/mxchange/exceptions/.htaccess b/application/mxchange/exceptions/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/exceptions/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/init.php b/application/mxchange/init.php deleted file mode 100644 index c9790dc5d6..0000000000 --- a/application/mxchange/init.php +++ /dev/null @@ -1,53 +0,0 @@ -isClass("ApplicationSelector"))) { return; } - * - * isset() is required to prevent a warning and is_object() is highly required - * when the application itself is requested in URL (hint: index.php?app=your_app) - * - * @author Roland Haeder - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// Get config instance -$cfg = FrameworkConfiguration::getInstance(); - -// Initialize output system -require($cfg->getConfigEntry('base_path') . 'inc/output.php'); - -// Initialize file i/o system -require($cfg->getConfigEntry('base_path') . 'inc/file_io.php'); - -// Include the language sub-system -require($cfg->getConfigEntry('base_path') . 'inc/language.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/mxchange/interfaces/.htaccess b/application/mxchange/interfaces/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/interfaces/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/loader.php b/application/mxchange/loader.php deleted file mode 100644 index f5c144306d..0000000000 --- a/application/mxchange/loader.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// Get config instance -$cfg = FrameworkConfiguration::getInstance(); - -// Load all classes for the application -foreach ($lowerClasses as $className) { - // Load the application classes - ClassLoader::getInstance()->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/mxchange/main/.htaccess b/application/mxchange/main/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/main/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/starter.php b/application/mxchange/starter.php deleted file mode 100644 index 14806008a4..0000000000 --- a/application/mxchange/starter.php +++ /dev/null @@ -1,53 +0,0 @@ - - * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Mailer Developer Team - * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -// Is there an application helper instance? We need the method main() for -// maining the application -$app = call_user_func_array(array(FrameworkConfiguration::getInstance()->getConfigEntry('app_helper_class'), 'getInstance'), array()); - -// Some sanity checks -if ((empty($app)) || (is_null($app))) { - // Something went wrong! - ApplicationEntryPoint::app_die(sprintf("[Main:] The application %s could not be launched because the helper class %s is not loaded.", - $application, - FrameworkConfiguration::getInstance()->getConfigEntry('app_helper_class') - )); -} elseif (!is_object($app)) { - // No object! - ApplicationEntryPoint::app_die(sprintf("[Main:] The application %s could not be launched because 'app' is not an object.", - $application - )); -} elseif (!method_exists($app, FrameworkConfiguration::getInstance()->getConfigEntry('entry_method'))) { - // Method not found! - ApplicationEntryPoint::app_die(sprintf("[Main:] The application %s could not be launched because the method %s is missing.", - $application, - FrameworkConfiguration::getInstance()->getConfigEntry('entry_method') - )); -} - -// Call user function -call_user_func_array(array($app, FrameworkConfiguration::getInstance()->getConfigEntry('entry_method')), array()); - -// [EOF] -?> diff --git a/application/mxchange/templates/.htaccess b/application/mxchange/templates/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/templates/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/templates/de/.htaccess b/application/mxchange/templates/de/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/templates/de/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/templates/de/code/.htaccess b/application/mxchange/templates/de/code/.htaccess deleted file mode 100644 index 3a42882788..0000000000 --- a/application/mxchange/templates/de/code/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/mxchange/templates/de/code/emergency_exit.ctp b/application/mxchange/templates/de/code/emergency_exit.ctp deleted file mode 100644 index e974daf5bf..0000000000 --- a/application/mxchange/templates/de/code/emergency_exit.ctp +++ /dev/null @@ -1,29 +0,0 @@ -{?header:title="Problem in application framework detected!"?} - -
- $content[message] -
- -
-
- File inclusion backtrace: -
-
- $content[backtrace] -
-
- -
-
- Statistics -
-
- Total objects: $content[total_objects] -
-
- Loaded class files: $content[total_includes] - (Including exception and interfaces.) -
-
- -{?footer_msg:footer_msg="Please contact the support and supply the full above message, if you think you are not qualified to fix this problem."?} diff --git a/application/mxchange/templates/de/code/footer_msg.ctp b/application/mxchange/templates/de/code/footer_msg.ctp deleted file mode 100644 index fb1de36305..0000000000 --- a/application/mxchange/templates/de/code/footer_msg.ctp +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -