/var/www/hkosl.com/imusiccircle/webadmin/teacher_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
88
89
90
91
92
93
94
95
<?php
    $page_settings 
= array(
        
'formid'     => 'teacher'// for permission
        
'section'    => 'Master'// parent/page title
        
'subsection' => 'Teacher'// page title
        
'domain'     => 'teacher',// 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_teacher((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>
        電郵地址 : ' 
aes_crypt($row['email'],2) . '
        <br><br>
        請點擊以下連結,確認你的電郵地址以啟動你的導師賬戶。
        <br><br>
        <a href="'
.$site_info["url"].'activation.php?type=' aes_crypt('tutor'1) . '&link=' aes_crypt($row['id'], 1) . '">'.$site_info["url"].'activation.php?type=' aes_crypt('tutor'1) . '&link=' aes_crypt($row['id'], 1) . '</a><br>
        (如未能直接點擊以上連結,請將連結複製到瀏覽器上打開)
        <br><br>
        啟動賬戶後,我們會先確定導師資歷。一般需時48-72小時。
        <br><br>
        我們亦建議導師同時進行手機短訊(SMS)認証,只有經過手機短訊認証,導師才可於音樂圈網上平台跟學生直接對話。
        <br><br>
        手機號碼及導師資歷一經確定後,你將可使用音樂圈的相關導師服務。
        <br><br>
        如有任何問題,請電郵至cs@musiccircle.hk 跟我們聯絡。
        <br><br>
        音樂圈客戶服務
        '
;
        } else if (
$lang == 'en') {
            
$subject                    'Tutor Registration 【Email Verification】';
            
$content_arr['member_name'] = 'Hello ,';
            
$content_arr['titlename']   = 'Tutor Registration 【Email Verification】';
            
$content_arr['msg']         = '
        Welcome to MusicCircle.
        <br><br>
        Thanks for your registration as our Tutor and please find below with your login information.
        <br><br>
        Email Address : ' 
aes_crypt($row['email'],2) . '
        <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('tutor'1) . '&link=' aes_crypt($row['id'], 1) . '">'.$site_info["url"].'/activation.php?type=' aes_crypt('tutor'1) . '&link=' aes_crypt($row['id'], 1) . '</a><br>
        (Please copy and paste the full address on your Internet Browser if the link doesn’t work)
        <br><br>
        We will check and confirm with your qualification as our tutor. This will take around 48 to 72 hours.
        <br><br>
        At the same time, we suggest our tutors to complete the mobile SMS verification. Tutors can only chat with students on MusicCircle online platform after the mobile SMS verification.
        <br><br>
        After confirmation, you will be able to enjoy the service provided by MusicCircle.
        <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='teacher_index.php?msg=1&status=".$status."'</script>";
        
//header("Location: teacher_index.php?msg=1&status=".$status);
        
exit;
    }