/**
 * op-unit-markdown/index.php
 *
 * @creation  2015-12-05
 * @version   1.0
 * @package   op-unit-markdown
 * @author    Tomoaki Nagahara <*****@*****.**>
 * @copyright Tomoaki Nagahara All right reserved.
 */
//	Do check of include.
if (!class_exists('OnePiece5')) {
    require '';
}
//	Set route table.
Env::Set('controller-name', 'index,php');
Env::Set('route', Router::GetRoute());
//	Init of unit root directory.
if (!($root = Env::Get('unit-root'))) {
    $root = explode('/', dirname($_SERVER['SCRIPT_FILENAME']));
    $root[count($root) - 1] = null;
    $root = join('/', $root);
    Env::Set('unit-root', $root);
}
//	Instanciate
$op = new OnePiece5();
if (Toolbox::GetRequest('testcase')) {
    $op->Template('testcase.php');
} else {
    $op->Template('action.php');
}