<?php /* * @package AJAX_Chat * @author Sebastian Tschan * @copyright (c) Sebastian Tschan * @license GNU Affero General Public License * @link https://blueimp.net/ajax/ */ namespace AJAXChat; define('AJAX_CHAT_PATH', __DIR__); 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); } // Include Class libraries: require_once AJAX_CHAT_PATH . '/vendor/autoload.php';