Files
oc-server3/htdocs/lib2/web.inc.php

33 lines
1.0 KiB
PHP

<?php
/***************************************************************************
* For license information see doc/license.txt
*
* Unicode Reminder メモ
*
* This module is included by each site with HTML-output and contains
* functions that are specific to HTML-output. common.inc.php is included
* and will do the setup.
*
* If you include this script from any subdir, you have to set the
* variable $opt['rootpath'], so that it points (relative or absolute)
* to the root.
***************************************************************************/
require_once __DIR__ . '/../lib/core.php';
// chicken-egg problem ...
require($GLOBALS['container']->get('ocde.config')->getBaseDir() . '/lib2/const.inc.php');
// do all output in HTML format
$opt['gui'] = GUI_HTML;
// include the main library
require($GLOBALS['container']->get('ocde.config')->getBaseDir() . '/lib2/common.inc.php');
// https protection?
if ($opt['page']['allowhttps'] == false)
{
if (isset($_SERVER['HTTPS']))
$tpl->redirect($opt['page']['absolute_url']);
}