/var/www/hkosl.com/ergofito/_process.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?
include('_init.php');
$data $_POST;
switch (
$data['action']) {
    case 
'submitContact':
        unset(
$data['action']);
        
$lang $_GET['lang'];
        
//send email
        
$to 'bennyleung@onesolution.com.hk';
        
$subject 'Ergofito - Contact Us';
        
$sender_name 'Ergofito';
        
$sender_email 'notreply@inno3d.com';
        
$map_file 'contact.html';
        unset(
$content_arr);
        
$content_arr['name'] = $data['name'];
        
$content_arr['phone'] = $_POST['phone'];
        
$content_arr['email'] = $_POST['email'];
        
$content_arr['message'] = nl2br($_POST['message']);
        
sendEmail($to$subject$content_arr$sender_name$sender_email$map_file ,'test');
        
//
        
$path $lang.'/contactus.php?action=true';
    break;
}
@
header("Location: {$path}");
echo 
"<script language='JavaScript'>window.location='{$path}'</script>";
exit();
?>