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

26 lines
423 B
PHP
Raw Normal View History

2014-05-09 12:19:53 +00:00
<?php
require_once ('php/web/hedera.php');
Hedera::init ();
Hedera::login ();
if (isset ($_GET['module']) && checkToken ($_GET['module']))
2014-05-09 12:19:53 +00:00
$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 ();
?>