]> git.mxchange.org Git - lfdb2.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Dec 2022 00:34:14 +0000 (01:34 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Dec 2022 00:34:14 +0000 (01:34 +0100)
- removed .htaccess
- updated exception handler
- remove deprecated "?>"
- updated copyright year

Signed-off-by: Roland Häder <roland@mxchange.org>
45 files changed:
application/.htaccess [deleted file]
application/lfdb2/.htaccess [deleted file]
application/lfdb2/classes/.htaccess [deleted file]
application/lfdb2/classes/command/.htaccess [deleted file]
application/lfdb2/classes/command/console/.htaccess [deleted file]
application/lfdb2/classes/command/console/class_Lfdb2ConsoleServerCommand.php
application/lfdb2/classes/controller/.htaccess [deleted file]
application/lfdb2/classes/controller/console/.htaccess [deleted file]
application/lfdb2/classes/controller/console/class_Lfdb2ConsoleDefaultNewsController.php
application/lfdb2/classes/filter/.htaccess [deleted file]
application/lfdb2/classes/filter/bootstrap/.htaccess [deleted file]
application/lfdb2/classes/filter/bootstrap/server/.htaccess [deleted file]
application/lfdb2/classes/filter/bootstrap/server/class_ServerBootstrapExtraBootstrappingFilter.php
application/lfdb2/classes/filter/bootstrap/server/class_ServerBootstrapListenerPoolFilter.php
application/lfdb2/classes/filter/class_BaseLfdb2Filter.php
application/lfdb2/classes/filter/class_BaseServerFilter.php
application/lfdb2/classes/filter/server/.htaccess [deleted file]
application/lfdb2/classes/filter/server/class_ServerInitializationFilter.php
application/lfdb2/classes/filter/server/class_ServerPhpRequirementsFilter.php
application/lfdb2/classes/filter/server/class_ServerWelcomeTeaserFilter.php
application/lfdb2/classes/filter/shutdown/.htaccess [deleted file]
application/lfdb2/classes/filter/shutdown/server/.htaccess [deleted file]
application/lfdb2/classes/filter/shutdown/server/class_ServerShutdownServerFilter.php
application/lfdb2/classes/filter/shutdown/server/class_ServerShutdownTaskHandlerFilter.php
application/lfdb2/classes/filter/task/.htaccess [deleted file]
application/lfdb2/classes/filter/task/server/.htaccess [deleted file]
application/lfdb2/classes/filter/task/server/class_ServerTaskHandlerInitializerFilter.php
application/lfdb2/classes/resolver/.htaccess [deleted file]
application/lfdb2/classes/resolver/command/.htaccess [deleted file]
application/lfdb2/classes/resolver/command/console/.htaccess [deleted file]
application/lfdb2/classes/resolver/command/console/class_Lfdb2ConsoleCommandResolver.php
application/lfdb2/classes/resolver/controller/.htaccess [deleted file]
application/lfdb2/classes/resolver/controller/console/.htaccess [deleted file]
application/lfdb2/classes/resolver/controller/console/class_Lfdb2ConsoleControllerResolver.php
application/lfdb2/config.php
application/lfdb2/debug.php
application/lfdb2/exceptions.php
application/lfdb2/exceptions/.htaccess [deleted file]
application/lfdb2/interfaces/.htaccess [deleted file]
application/lfdb2/templates/.htaccess [deleted file]
db/.htaccess [deleted file]
db/news/.htaccess [deleted file]
db/payments/.htaccess [deleted file]
db/user/.htaccess [deleted file]
db/user_points/.htaccess [deleted file]

diff --git a/application/.htaccess b/application/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/.htaccess b/application/lfdb2/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/.htaccess b/application/lfdb2/classes/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/command/.htaccess b/application/lfdb2/classes/command/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/command/console/.htaccess b/application/lfdb2/classes/command/console/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index 017c8d87a1bab7fd62b03b3ca32e395745b31963..e04c3d5f8f2ce95a94215a7e495c410b23f161e3 100644 (file)
@@ -99,7 +99,7 @@ class Lfdb2ConsoleServerCommand extends BaseCommand implements Commandable {
                while (($serverInstance->isServerActive()) && ($handlerInstance->hasTasksLeft())) {
                        // Handle all tasks here
                        $handlerInstance->handleTasks();
-               } // END - while
+               }
 
                // Debug message
                self::createDebugInstance(__CLASS__)->debugOutput('MAIN: --- Leaving main loop. ---');
@@ -133,6 +133,3 @@ class Lfdb2ConsoleServerCommand extends BaseCommand implements Commandable {
                $controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('server_shutdown_server_filter'));
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/controller/.htaccess b/application/lfdb2/classes/controller/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/controller/console/.htaccess b/application/lfdb2/classes/controller/console/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index 5ec1b9d8083d6392b7c20f2467e8855e04c9fcdf..8425c6bf917042bb90dc2c2c8f465d75b09f45f7 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -34,7 +34,7 @@ class Lfdb2ConsoleDefaultNewsController extends BaseController implements Contro
                // Init additional filter chains
                foreach (array('bootstrap', 'activation','shutdown') as $filterChain) {
                        $this->initFilterChain($filterChain);
-               } // END - foreach
+               }
        }
 
        /**
@@ -151,6 +151,3 @@ class Lfdb2ConsoleDefaultNewsController extends BaseController implements Contro
                $this->executeFilters('shutdown', $requestInstance, $responseInstance);
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/filter/.htaccess b/application/lfdb2/classes/filter/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/filter/bootstrap/.htaccess b/application/lfdb2/classes/filter/bootstrap/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/filter/bootstrap/server/.htaccess b/application/lfdb2/classes/filter/bootstrap/server/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index 6dd505956025cb6825500189f8bdb65b714c1717..fcd38eed72f53a2cb34fab09e01c2e6f53e3f117 100644 (file)
@@ -61,6 +61,3 @@ class ServerBootstrapExtraBootstrappingFilter extends BaseServerFilter implement
                $serverInstance->doBootstrapping();
        }
 }
-
-// [EOF]
-?>
index 65d496a91678b31a102910d163e2bebac3b92630..f14723c32d573defb0873f6d0b85aca37a8f749c 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -61,6 +61,3 @@ class ServerBootstrapListenerPoolFilter extends BaseServerFilter implements Filt
                $serverInstance->initializeListenerPool();
        }
 }
-
-// [EOF]
-?>
index 57fc2cc4bff5f2168f4decb0843232f1193c6e86..1e33ebbeba3ce1c4d85261b844dde17e11ca3951 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -88,14 +88,14 @@ class BaseLfdb2Filter extends BaseFilter {
 
                                // Skip this part, don't write NULLs to the array
                                continue;
-                       } // END - if
+                       }
 
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(str_replace('_', '-', strtoupper($messageType)) . '-TAG: key=' . $key . ',value=' . $value);
 
                        // Set it now
                        $this->dataXmlNodes[$key] = $value;
-               } // END - foreach
+               }
 
                // Construct an array for pushing it on next stack
                $messageArray = array(
@@ -109,6 +109,3 @@ class BaseLfdb2Filter extends BaseFilter {
                $packageInstance->getStackerInstance()->pushNamed(NetworkPackage::STACKER_NAME_PROCESSED_MESSAGE, $messageArray);
        }
 }
-
-// [EOF]
-?>
index 2a09e5e0af5aa1a6bef75589f19bc2f808b70ca4..82e56c883d53685e6e5e119281d5d14e9e7c7c72 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -33,6 +33,3 @@ class BaseServerFilter extends BaseLfdb2Filter {
                parent::__construct($className);
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/filter/server/.htaccess b/application/lfdb2/classes/filter/server/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index 0e95f9656e2f0ca558169348fab9e85bbd488b46..6ee273720b26ef2c485ae65c6f64757d1993f2ed 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -96,6 +96,3 @@ class ServerInitializationFilter extends BaseServerFilter implements Filterable
                //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[INIT:] Server ' . $nodeMode . ' has been added to registry.');
        }
 }
-
-// [EOF]
-?>
index 9c7c0bee3219a896c43261a1e61d2aa5d5152603..65f8d011e8b7cd041302d5ce7dcd759e3e9abbc1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -64,15 +64,12 @@ class ServerPhpRequirementsFilter extends BaseServerFilter implements Filterable
                        // Test failed
                        $checkPassed = FALSE;
                        $checksFailed++;
-               } // END -if
+               }
 
                // Are all tests passed?
                if ($checkPassed === FALSE) {
                        // Throw an exception
                        throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
-               } // END - if
+               }
        }
 }
-
-// [EOF]
-?>
index bed3a449df7568f0344876436ff55d0c6511c149..fabb6af1b6d66c4d93ad7e6e0d7b3bfc09f27b4c 100644 (file)
@@ -62,6 +62,3 @@ class ServerWelcomeTeaserFilter extends BaseServerFilter implements Filterable {
                $serverInstance->outputConsoleTeaser();
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/filter/shutdown/.htaccess b/application/lfdb2/classes/filter/shutdown/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/filter/shutdown/server/.htaccess b/application/lfdb2/classes/filter/shutdown/server/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index 56b9a1847042f8194f34738969d5a811e8c6c76a..37e8ea666d72653a8c7bd3e353f8a9ed35ec6553 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -63,6 +63,3 @@ class ServerShutdownServerFilter extends BaseServerFilter implements Filterable
                $serverInstance->doShutdown();
        }
 }
-
-// [EOF]
-?>
index 20cb1f0d33bcca744d2b7856d8e1780596134de8..e4b2779d56714fac4a527d94e6168a2b2b913f08 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -62,6 +62,3 @@ class ServerShutdownTaskHandlerFilter extends BaseServerFilter implements Filter
                $handlerInstance->doShutdown();
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/filter/task/.htaccess b/application/lfdb2/classes/filter/task/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/filter/task/server/.htaccess b/application/lfdb2/classes/filter/task/server/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index cf3f171ad0b495ed8ec2ce32a385effbb4ae19da..910b24d9ac41c02e15bf088f3b461e8c7f59830a 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -137,6 +137,3 @@ class ServerTaskHandlerInitializerFilter extends BaseServerFilter implements Fil
                Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/resolver/.htaccess b/application/lfdb2/classes/resolver/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/resolver/command/.htaccess b/application/lfdb2/classes/resolver/command/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/resolver/command/console/.htaccess b/application/lfdb2/classes/resolver/command/console/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index decf986341f635deb466cd78fe348a2631088505..1be95ea63029130d9c0f190e02a340d553404f55 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -64,6 +64,3 @@ class Lfdb2ConsoleCommandResolver extends BaseCommandResolver implements Command
                return $resolverInstance;
        }
 }
-
-// [EOF]
-?>
diff --git a/application/lfdb2/classes/resolver/controller/.htaccess b/application/lfdb2/classes/resolver/controller/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/classes/resolver/controller/console/.htaccess b/application/lfdb2/classes/resolver/controller/console/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index c9258804b3c0aec6a22038d155e20f38c5dccb20..3365dcb47d306d8ca1bc776f8779d1e05b5323ea 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -90,7 +90,7 @@ class Lfdb2ConsoleControllerResolver extends BaseControllerResolver implements C
                if ((!is_object($controllerInstance)) || (!$controllerInstance instanceof Controller)) {
                        // This command has an invalid instance!
                        throw new InvalidControllerInstanceException(array($this, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
-               } // END - if
+               }
 
                // Set last controller
                $this->setResolvedInstance($controllerInstance);
@@ -99,6 +99,3 @@ class Lfdb2ConsoleControllerResolver extends BaseControllerResolver implements C
                return $controllerInstance;
        }
 }
-
-// [EOF]
-?>
index 4cefa0a502cbf775f9b49e0a7d1e1277000962e0..9016b4dfe1eb5a0fa1de0ea76e4fddaa2d61907d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
@@ -88,6 +88,3 @@ $cfg->setConfigEntry('server_shutdown_task_handler_filter', 'ServerShutdownTaskH
 
 // CFG: SERVER-SHUTDOWN-SERVER-FILTER
 $cfg->setConfigEntry('server_shutdown_server_filter', 'ServerShutdownServerFilter');
-
-// [EOF]
-?>
index 8366feeaa86c9734fa936bdc03680ba839109fcb..b5797e9cb62ca91e95ee96c4faa87110e22c9dc0 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @copyright  Copyright (c) 2013-2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
@@ -23,6 +23,3 @@
 
 // Set error reporting
 error_reporting(E_ALL | E_STRICT);
-
-// [EOF]
-?>
index 24975ff32b37ce4d6c06044aced0ad1ccf0be6ab..e84a25e6248c3125845095b3ce5059622cdefaab 100644 (file)
@@ -1,10 +1,16 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Assertion\AssertionException;
+use Org\Mxchange\CoreFramework\Error\FatalErrorException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+
 /**
- * An include file for setting up the exception handler of the lfdb2
+ * An include file for setting up the exception handler of test suite
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
- * @version            0.0
- * @copyright  Copyright (c) 2013 LFDB2 Developer Team
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2022 LFDB2 Developer Team
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
@@ -24,7 +30,7 @@
 // The node's own exception handler
 function lfdb2_exception_handler ($exceptionInstance) {
        // Is it an object and a valid instance?
-       if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof FrameworkException)) {
+       if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof Exception)) {
                // Init variable
                $backTrace = '';
 
@@ -36,7 +42,7 @@ function lfdb2_exception_handler ($exceptionInstance) {
                        // Convert arguments type into human-readable
                        foreach ($traceArray['args'] as $arg) {
                                $argsString .= ', ' . gettype($arg);
-                       } // END - foreach
+                       }
                        $argsString = substr($argsString, 2);
 
                        // Set missing file/line
@@ -58,7 +64,7 @@ Line   : %d\n",
                                basename($traceArray['file']),
                                $traceArray['line']
                        );
-               } // END - foreach
+               }
 
                // Construct the message
                $message = sprintf("--------------------------------------------------------------------------------
@@ -73,9 +79,9 @@ Backtrace:
 --------------------------------------------------------------------------------
 %s
 --------------------------------------------------------------------------------\n",
-                       trim(html_entity_decode(strip_tags($exceptionInstance->__toString()))),
+                       trim(html_entity_decode(strip_tags(get_class($exceptionInstance)))),
                        trim(html_entity_decode(strip_tags($exceptionInstance->getMessage()))),
-                       $exceptionInstance->getHexCode(),
+                       ($exceptionInstance instanceof FrameworkException ? $exceptionInstance->getHexCode() : '0x' . bin2hex($exceptionInstance->getCode())),
                        $exceptionInstance->getFile(),
                        $exceptionInstance->getLine(),
                        trim($backTrace)
@@ -83,16 +89,21 @@ Backtrace:
 
                // Output the message
                print($message);
+       } elseif (is_object($exceptionInstance)) {
+               // Output more details
+               printf('exceptionInstance=%s', print_r($exceptionInstance, true));
        } else {
-               // Invalid exception instance detected! Do *only* throw exceptions that
-               // extends our own exception 'FrameworkException' to get such nice
-               // outputs like above.
-               print('exceptionInstance[]=' . gettype($exceptionInstance) . ' is invalid! Please inform the core developer team.');
+               /*
+                * Invalid exception instance detected! Do *only* throw exceptions that
+                * extends our own exception 'FrameworkException' to get such nice
+                * outputs like above.
+                */
+               printf('exceptionInstance[]=%s is invalid! Please inform the core developer team.' . PHP_EOL, gettype($exceptionInstance));
        }
 }
 
 // Error handler
-function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext) {
+function lfdb2_error_handler ($errno, $errstr, $errfile, $errline, array $errcontext) {
        // Construct the message
        $message = sprintf('File: %s, Line: %s, Code: %s, Message: %s',
                basename($errfile),
@@ -103,14 +114,14 @@ function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext)
 
        // Throw an exception here
        throw new FatalErrorException($message, BaseFrameworkSystem::EXCEPTION_FATAL_ERROR);
-} // END - function
+}
 
 // Assertion handler
-function __assertHandler ($file, $line, $code) {
+function lfdb2_assert_handler (string $file, int $line, $code) {
        // Empty code?
        if ($code === '') {
                $code = '<em>Unknown</em>';
-       } // END - if
+       }
 
        // Create message
        $message = sprintf('File: %s, Line: %s, Code: %s',
@@ -119,19 +130,22 @@ function __assertHandler ($file, $line, $code) {
                $code
        );
 
+       // Log assert
+       syslog(LOG_WARNING, $message);
+
        // Throw an exception here
        throw new AssertionException($message, BaseFrameworkSystem::EXCEPTION_ASSERTION_FAILED);
-} // END - function
+}
 
 // Set error handler
-//set_error_handler('__errorHandler');
+//set_error_handler('lfdb2_error_handler');
 
 // Set the new handler
 set_exception_handler('lfdb2_exception_handler');
 
 // Init assert handling
-assert_options(ASSERT_ACTIVE    , TRUE);
-assert_options(ASSERT_WARNING   , FALSE);
-assert_options(ASSERT_BAIL      , TRUE);
-assert_options(ASSERT_QUIET_EVAL, FALSE);
-assert_options(ASSERT_CALLBACK  , '__assertHandler');
+assert_options(ASSERT_ACTIVE    , true);
+assert_options(ASSERT_WARNING   , false);
+assert_options(ASSERT_BAIL      , true);
+assert_options(ASSERT_QUIET_EVAL, false);
+assert_options(ASSERT_CALLBACK  , 'lfdb2_assert_handler');
diff --git a/application/lfdb2/exceptions/.htaccess b/application/lfdb2/exceptions/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/interfaces/.htaccess b/application/lfdb2/interfaces/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/lfdb2/templates/.htaccess b/application/lfdb2/templates/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/.htaccess b/db/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/news/.htaccess b/db/news/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/payments/.htaccess b/db/payments/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/user/.htaccess b/db/user/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/user_points/.htaccess b/db/user_points/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all