0
1
Fork 0
hedera-web-mindshore/usr/share/hedera-web/module.php

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 ();
?>