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

25 lines
414 B
PHP
Raw Normal View History

2015-01-31 01:05:12 +00:00
<?php
require_once ('vn/hedera/web.php');
use Vn\Lib\Locale;
use Vn\Hedera\Web;
Web::init ();
Web::login ();
header ('Content-Type: text/xml; charset=UTF-8');
if (isset ($_GET['form']) && Vn\Hedera\checkFilePath ($_GET['form'], 'forms'))
$form = $_GET['form'];
else
$form = $conf['defaultForm'];
$formPath = "forms/$form";
Locale::addPath ($formPath);
include ("$formPath/html.php");
Web::deinit ();
?>