Commit | Line | Data |
---|---|---|
158bd3ca TD |
1 | <?php |
2 | /** | |
3 | * @author Marcel Werk | |
ca4ba303 | 4 | * @copyright 2001-2014 WoltLab GmbH |
158bd3ca TD |
5 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
6 | * @package com.woltlab.wcf | |
0c166126 | 7 | * @category Community Framework |
158bd3ca TD |
8 | */ |
9 | // set exception handler | |
10 | set_exception_handler(array('wcf\system\WCF', 'handleException')); | |
11 | ||
12 | // set php error handler | |
13 | set_error_handler(array('wcf\system\WCF', 'handleError'), E_ALL); | |
14 | ||
15 | // set shutdown function | |
16 | register_shutdown_function(array('wcf\system\WCF', 'destruct')); | |
17 | ||
18 | // set autoload function | |
19 | spl_autoload_register(array('wcf\system\WCF', 'autoload')); | |
20 | ||
21 | // define escape string shortcut | |
22 | function escapeString($string) { | |
23 | return wcf\system\WCF::getDB()->escapeString($string); | |
dcb3a44c | 24 | } |