/var/www/hkosl.com/imusiccircle/webadmin/student_email.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
    $page_settings 
= array(
        
'formid'     => 'Subscribe'// for permission
        
'section'    => 'Master'// parent/page title
        
'subsection' => 'Subscription'// page title
        
'domain'     => 'subscribe'// table/model name
        
'access'     => 'GNr'// for permission
    
);

    require_once 
"check_login.php";
    
$nowdate date("Y-m-d H:i:s");
    
$message "";
    
//print_r($cms_user_info);

    
if($_GET["id"]){
        
$row get_student((int)$_GET["id"]);
        
$status $_GET['status'];
    }

    if(
$row['id']){
        
//
        
$lang         $_SESSION['langcode'];
        
$to           aes_crypt($row['email'], 2);
        
$sender_name  $site_info['companyname_' $lang];
        
$sender_email $site_info['enquiryemail'];

        if (
$lang == 'cn') {
            
$subject                    '學生註冊【電郵驗證】';
            
$content_arr['member_name'] = '你好';
            
$content_arr['titlename']   = '學生註冊【電郵驗證】';
            
$content_arr['msg']         = '
        歡迎加入MusicCircle。
        <br><br>
        多謝你申請成為MusicCircle的學生。你的用戶資料如下:
        <br><br>
        電郵地址 : ' 
$_POST['email'] . '
        <br><br>
        請點擊以下連結,確認你的電郵地址以啟動你的學生賬戶。
        <br><br>
        <a href="'
.$site_info["url"].'activation.php?type=' aes_crypt('student'1) . '&link=' aes_crypt($id1) . '">'.$site_info["url"].'activation.php?type=' aes_crypt('student'1) . '&link=' aes_crypt($id1) . '</a><br>
        (如未能直接點擊以上連結,請將連結複製到瀏覽器上打開)
        <br><br>
        啟動賬戶後,我們建議學生同時進行手機短訊(SMS)認証,只有經過手機短訊認証,學生才可於音樂圈網上平台跟導師直接對話。
        <br><br>
        如有任何問題,請電郵至cs@musiccircle.hk 跟我們聯絡。
        <br><br>
        音樂圈客戶服務
        '
;
        } else if (
$lang == 'en') {
            
$subject                    'Student Registration 【Email Verification】';
            
$content_arr['member_name'] = 'Hello ,';
            
$content_arr['titlename']   = 'Student Registration 【Email Verification】';
            
$content_arr['msg']         = '
        Welcome to MusicCircle.
        <br><br>
        Thanks for your registration as our Student and please find below with your login information.
        <br><br>
        Email Address : ' 
$_POST['email'] . '
        <br><br>
        To complete the registration process, please click the link below for verification.
        <br><br>
        <a href="'
.$site_info["url"].'activation.php?type=' aes_crypt('student'1) . '&link=' aes_crypt($id1) . '">'.$site_info["url"].'activation.php?type=' aes_crypt('student'1) . '&link=' aes_crypt($id1) . '</a><br>
        (Please copy and paste the full address on your Internet Browser if the link doesn’t work)
        <br><br>
        We suggest our students to complete the mobile SMS verification at the same time. Students can only chat with tutors on MusicCircle online platform after the mobile SMS verification.
        <br><br>
        Please feel free to contact us at cs@musiccircle.hk if you have any question.
        <br><br>
        Yours sincerely,<br>
        Customer Service, MusicCircle
        '
;
        }
        
$content_arr['date'] = date('Y-m-d');
        
$content_arr['time'] = date('H:i:s');
        
$map_file            '../email/page.html';
        
//$to = 'bennyleung@onesolution.com.hk';
        
$result              sendEmail($to$subject$content_arr$sender_name$sender_email$map_file);
        
$send                $result 'success' 'fail';
        
$message              _lang('Email Verification Has Resend.');
    }
    if (!empty(
$message)) {
        echo 
"<script>alert('" $message "'); location.href='student_index.php?msg=1&status=".$status."'</script>";
        
//header("Location: teacher_index.php?msg=1&status=".$status);
        
exit;
    }