Added missing trims
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / core.functions.php
CommitLineData
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
10set_exception_handler(array('wcf\system\WCF', 'handleException'));
11
12// set php error handler
13set_error_handler(array('wcf\system\WCF', 'handleError'), E_ALL);
14
15// set shutdown function
16register_shutdown_function(array('wcf\system\WCF', 'destruct'));
17
18// set autoload function
19spl_autoload_register(array('wcf\system\WCF', 'autoload'));
20
21// define escape string shortcut
22function escapeString($string) {
23 return wcf\system\WCF::getDB()->escapeString($string);
dcb3a44c 24}