function contact_display() { global $smarty; contact_main(); theme_init($smarty); $smarty->display('default.tpl'); unset($smarty); do_action('shutdown'); }
function post_form_contact_main() { $property = requestBody(); $contact_main_name = $property->contact_main_name; $contact_main_email = $property->contact_main_email; $contact_main_message = $property->contact_main_message; contact_main($contact_main_name, $contact_main_email, $contact_main_message); echo changeArrayIntoJSON("campa", array('process' => 'ok')); }