25 lines
658 B
PHP
Raw Normal View History

2016-02-23 11:23:41 +01:00
<?php
2016-02-23 13:25:19 +01:00
require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');
include_once(dirname(__FILE__).'/contactform.php');
include_once(dirname(__FILE__).'/Process.php');
include(dirname(__FILE__).'/../../header.php');
if (!empty($_POST['type'])) {
$Process = new Process();
$result = $Process->addProvider($_POST);
var_dump($result);
}
$vars = [
'{Contactform::TYPE_PROVIDER}' => Contactform::TYPE_PROVIDER,
'{Contactform::TYPE_PRESS}' => Contactform::TYPE_PRESS
];
echo Module::display(dirname(__FILE__).'/contactform.php', 'provider.tpl');
include(dirname(__FILE__).'/../../footer.php');