2022-02-06 16:26:14 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* @package AJAX_Chat
|
|
|
|
* @author Sebastian Tschan
|
|
|
|
* @copyright (c) Sebastian Tschan
|
|
|
|
* @license GNU Affero General Public License
|
|
|
|
* @link https://blueimp.net/ajax/
|
|
|
|
*/
|
|
|
|
|
2024-11-19 22:42:42 +00:00
|
|
|
namespace AJAXChat;
|
|
|
|
|
2022-02-06 16:26:14 +00:00
|
|
|
define('AJAX_CHAT_PATH', __DIR__);
|
2022-07-05 13:28:28 +00:00
|
|
|
define('AJAX_CHAT_DEBUG', is_file(AJAX_CHAT_PATH . '/.debug'));
|
|
|
|
|
|
|
|
// Only show errors in debug mode:
|
|
|
|
if(AJAX_CHAT_DEBUG) {
|
|
|
|
ini_set('display_errors', 'on');
|
|
|
|
error_reporting(-1);
|
|
|
|
} else {
|
|
|
|
ini_set('display_errors', 'off');
|
|
|
|
error_reporting(0);
|
|
|
|
}
|
2022-02-06 16:26:14 +00:00
|
|
|
|
|
|
|
// Include Class libraries:
|
2024-11-19 22:42:42 +00:00
|
|
|
require_once AJAX_CHAT_PATH . '/vendor/autoload.php';
|