forked from verdnatura/hedera-web
26 lines
423 B
PHP
Executable File
26 lines
423 B
PHP
Executable File
<?php
|
|
|
|
require_once ('php/web/hedera.php');
|
|
|
|
Hedera::init ();
|
|
Hedera::login ();
|
|
|
|
if (isset ($_GET['module']) && 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))
|
|
{
|
|
Vn\Locale::loadFile ($basePath);
|
|
include ($basePath .'/html.php');
|
|
}
|
|
|
|
Hedera::deinit ();
|
|
|
|
?>
|