libs/kontiki/main.php
<?php
/**
* Kontiki
*
* @package part of Kontiki
* @author Jidaikobo Inc.
* @license The MIT License (MIT)
* @copyright Jidaikobo Inc.
* @link http://www.jidaikobo.com
*/
namespace Kontiki;
// KONTIKI_PATH
define('KONTIKI_PATH', __DIR__);
// mb_internal_encoding()
mb_internal_encoding('UTF-8');
// Autoloader
include_once KONTIKI_PATH.'/classes/Autoloader.php';
Autoloader::addPath(KONTIKI_PATH.'/classes/', 'Kontiki');
// performance
Performance::setBegTime();
Performance::setBegMemory();
// constants
defined('KONTIKI_DEFAULT_LANG') or Util::error('set KONTIKI_DEFAULT_LANG');
defined('KONTIKI_DEFAULT_TIMZONE') or Util::error('set KONTIKI_DEFAULT_TIMZONE');
// timezone
date_default_timezone_set(KONTIKI_DEFAULT_TIMZONE);