forked from verdnatura/hedera-web
29 lines
458 B
PHP
Executable File
29 lines
458 B
PHP
Executable File
<?php
|
|
|
|
require_once ('vn/hedera/web.php');
|
|
|
|
use Vn\Lib\Locale;
|
|
use Vn\Hedera\Web;
|
|
|
|
Web::init ();
|
|
Web::login ();
|
|
|
|
if (isset ($_GET['module']) && Vn\Hedera\checkToken ($_GET['module']))
|
|
$module = $_GET['module'];
|
|
else
|
|
$module = $conf['defaultModule'];
|
|
|
|
$basePath = 'modules/'. $module;
|
|
|
|
header ('Content-Type: text/xml; charset=UTF-8');
|
|
|
|
if (file_exists ($basePath))
|
|
{
|
|
Locale::addPath ($basePath);
|
|
include ($basePath .'/html.php');
|
|
}
|
|
|
|
Web::deinit ();
|
|
|
|
?>
|