update 39839999
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
require_once dirname( __DIR__, 6 ) . "/portal/admin/core/api/php/includes/init.php";
|
||||
require_once dirname( __DIR__, 6 ) . "/portal/admin/core/api/php/includes/functions.php";
|
||||
require_once dirname( __DIR__, 6 ) . "/portal/admin/core/api/php/includes/mylibs/email/email_manager.php";
|
||||
|
||||
|
||||
//portal\admin\core\api\php\includes\mylibs\email\email_manager.php
|
||||
|
||||
|
||||
if(Input::get("decode_string")){
|
||||
@@ -11,6 +12,20 @@ if(Input::get("decode_string")){
|
||||
EchoJsonObject(["data" => $value]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(Input::get('domain')){
|
||||
|
||||
$email = new EmailManager();
|
||||
|
||||
$resp = $email->authDomain();
|
||||
|
||||
EchoJsonObject(["response" => json_decode($resp)]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(Input::get("send_email")){
|
||||
|
||||
$data = json_decode(Input::get("data"), true);
|
||||
|
||||
@@ -8,23 +8,33 @@
|
||||
$("#submit_send_email").on("click",function(e){
|
||||
e.preventDefault();
|
||||
|
||||
console.log("hello");
|
||||
|
||||
const value = $("#data_input_textarea").val().trim();
|
||||
let json = JSON.parse(value);
|
||||
console.log(json);
|
||||
|
||||
if(value==""){alert("Please add text");return;}
|
||||
$("#data_output_textarea").val("");
|
||||
|
||||
$.post("request.php",{
|
||||
"send_email": true,
|
||||
"data": value
|
||||
"domain": true,
|
||||
"data": {}
|
||||
},function(resp){
|
||||
resp = JSON.parse(resp);
|
||||
resp = JSON.parse(resp);
|
||||
console.log(resp);
|
||||
// $("#data_output_textarea").val(JSON.stringify(resp.data));
|
||||
});
|
||||
|
||||
|
||||
// $.post("request.php",{
|
||||
// "send_email": true,
|
||||
// "data": value
|
||||
// },function(resp){
|
||||
// resp = JSON.parse(resp);
|
||||
// console.log(resp);
|
||||
// // $("#data_output_textarea").val(JSON.stringify(resp.data));
|
||||
// });
|
||||
|
||||
});
|
||||
// https://jsoneditoronline.org/#left=local.pewama
|
||||
|
||||
|
||||
Reference in New Issue
Block a user