22 lines
615 B
PHP
Raw Normal View History

2016-02-23 15:38:51 +01:00
<?php
require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');
2016-02-23 17:33:08 +01:00
$controller->preProcess();
2016-02-23 15:38:51 +01:00
include_once(dirname(__FILE__).'/contactform.php');
include_once(dirname(__FILE__).'/Process.php');
include(dirname(__FILE__).'/../../header.php');
2016-02-24 10:35:05 +01:00
$result = null;
2016-02-25 10:42:49 +01:00
if (Tools::isSubmit('press_form')) {
2016-02-23 15:38:51 +01:00
$Process = new Process();
$result = $Process->addPress($_POST);
}
2016-02-24 10:35:05 +01:00
$smarty->assign('result', $result);
$smarty->assign('_POST', $_POST);
2016-02-23 15:38:51 +01:00
echo Module::display(dirname(__FILE__).'/contactform.php', 'press.tpl');
include(dirname(__FILE__).'/../../footer.php');