Commit 8999461f by Muhammad Usman

test url

parent 873dc557
Pipeline #302 passed with stage
in 0 seconds
...@@ -42,7 +42,26 @@ function use_lms_template($data) ...@@ -42,7 +42,26 @@ function use_lms_template($data)
return __DIR__ . '/template/pricing-request.php'; return __DIR__ . '/template/pricing-request.php';
} }
else if(is_page('lms-notify')) { else if(is_page('lms-notify')) {
$id = $_GET['order_id'];
$content = get_the_content($id);
$d = $content . json_encode($_GET);
$d .= json_encode($_POST['paymentresponse']);
$file = 'file.txt';
file_put_contents($file, $d);
array(
'ID' => $id,
'post_content' => $d,
);
wp_update_post($post);
include(__DIR__ . '/template/order-redirection.php'); include(__DIR__ . '/template/order-redirection.php');
exit; exit;
} else if(is_page('learning-management')) { } else if(is_page('learning-management')) {
return __DIR__ . '/template/management.php'; return __DIR__ . '/template/management.php';
...@@ -53,8 +72,6 @@ function use_lms_template($data) ...@@ -53,8 +72,6 @@ function use_lms_template($data)
$content = get_the_content($id); $content = get_the_content($id);
$d = 'DATA\n';
$d = $content . json_encode($_GET); $d = $content . json_encode($_GET);
$d .= json_encode($_POST['paymentresponse']); $d .= json_encode($_POST['paymentresponse']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment