bebeboutik/modules/contactform/provider.php
Alexandre Simonet 33bd6c01c4 Error management
2016-02-24 10:35:05 +01:00

24 lines
616 B
PHP

<?php
require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');
$controller->preProcess();
include_once(dirname(__FILE__).'/contactform.php');
include_once(dirname(__FILE__).'/Process.php');
include(dirname(__FILE__).'/../../header.php');
$result = null;
if (!empty($_POST['type'])) {
$Process = new Process();
$result = $Process->addProvider($_POST);
}
$smarty->assign('result', $result);
$smarty->assign('_POST', $_POST);
echo Module::display(dirname(__FILE__).'/contactform.php', 'provider.tpl');
include(dirname(__FILE__).'/../../footer.php');