<?php /* * This file is part of Contao. * * Copyright (c) 2005-2016 Leo Feyer * * @license LGPL-3.0+ */ Patchwork\Utf8\Bootup::initAll();
*/ if (!extension_loaded('mcrypt')) { echo 'Mcrypt PHP extension required.' . PHP_EOL; exit(1); } /* |-------------------------------------------------------------------------- | Setup Patchwork UTF-8 Handling |-------------------------------------------------------------------------- | | The Patchwork library provides solid handling of UTF-8 strings as well | as provides replacements for all mb_* and iconv type functions that | are not available by default in PHP. We'll setup this stuff here. | */ Patchwork\Utf8\Bootup::initMbstring(); /* |-------------------------------------------------------------------------- | Create The Application |-------------------------------------------------------------------------- | | The first thing we will do is create a new Laravel application instance | which serves as the "glue" for all the components of Laravel, and is | the IoC container for the system binding all of the various parts. | */ use Weloquent\Core\Application; $app = new \Weloquent\Core\Application(); /** * ----------------------------------------------------- * Set my custom request class
* the docs/CREDITS.txt file. * */ /** */ if (!defined('IN_PHPBB')) { exit; } // Enforce ASCII only string handling setlocale(LC_CTYPE, 'C'); /** * Setup the UTF-8 portability layer */ Patchwork\Utf8\Bootup::initUtf8Encode(); Patchwork\Utf8\Bootup::initMbstring(); Patchwork\Utf8\Bootup::initIntl(); /** * UTF-8 tools * * Whenever possible, these functions will try to use PHP's built-in functions or * extensions, otherwise they will default to custom routines. * */ /** * UTF-8 aware alternative to strrpos * @ignore */ function utf8_strrpos($str, $needle, $offset = null) { // Emulate behaviour of strrpos rather than raising warning if (empty($str)) {