Update for BeWellWell my account en media_upload
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('display_startup_errors', '1');
|
||||
error_reporting(E_ALL);
|
||||
//------------------------------------------
|
||||
// Products attributes
|
||||
//------------------------------------------
|
||||
@@ -34,6 +36,13 @@ if (isset($post_content['type']) && $post_content['type'] !=''){
|
||||
echo json_encode(array('status' => 'send'));
|
||||
break;
|
||||
|
||||
case 'register_identity':
|
||||
|
||||
//SEND MAIL
|
||||
send_mail($mail_to,$mail_subject,$mail_content,'','');
|
||||
echo json_encode(array('status' => 'send'));
|
||||
break;
|
||||
|
||||
case 'reset':
|
||||
|
||||
//GET TEMPLATE
|
||||
@@ -43,6 +52,20 @@ if (isset($post_content['type']) && $post_content['type'] !=''){
|
||||
//SEND MAIL
|
||||
send_mail($mail_to,$subject,$message,'','');
|
||||
break;
|
||||
|
||||
case 'sendInvite':
|
||||
|
||||
// Get appointment data from mail_content
|
||||
$appointment = $post_content['content'];
|
||||
|
||||
if ($appointment && isset($appointment['starttime']) && isset($appointment['endtime'])) {
|
||||
sendIcsCalendar($appointment, $post_content['to'], $post_content['subject']);
|
||||
echo json_encode(array('status' => 'send'));
|
||||
} else {
|
||||
echo json_encode(array('status' => 'error', 'message' => 'Invalid appointment data'));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user