Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class home_page extends public_page
- {
- public function init()
- {
- $arr_template_models = array();
- $arr_template_models['fil_files'] = $this->obj_site->obj_page->carousel_files;
- $this->obj_site->obj_smarty->assign('arr_template_models', $arr_template_models);
- }
- public function init_ajax()
- {
- if(!isset($_REQUEST['str_action'])) return false;
- $this->obj_site->obj_smarty->assign('str_action',$_REQUEST['str_action']);
- switch($_REQUEST['str_action'])
- {
- case 'submit_contact_form':
- $this->submit_contact_form();
- break;
- default:
- return false;
- break;
- }
- }
- private function submit_contact_form()
- {
- $arr_replacements = array( '##str_name##' => $_POST['str_name'],
- '##str_email##' => $_POST['str_email'],
- '##str_message##' => $_POST['str_message']);
- ema_email_templates::send_email('contact_form',$_POST['str_name'],cfg::STR_CONTACT_EMAIL,$arr_replacements);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement