Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apex_micro_site
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
apex_micro_site
Commits
8999461f
Commit
8999461f
authored
Feb 14, 2018
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test url
parent
873dc557
Pipeline
#302
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
template.php
WWW_DATA/wp-content/plugins/apex_global_lms/template.php
+19
-2
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/template.php
View file @
8999461f
...
...
@@ -42,7 +42,26 @@ function use_lms_template($data)
return
__DIR__
.
'/template/pricing-request.php'
;
}
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'
);
exit
;
}
else
if
(
is_page
(
'learning-management'
))
{
return
__DIR__
.
'/template/management.php'
;
...
...
@@ -53,8 +72,6 @@ function use_lms_template($data)
$content
=
get_the_content
(
$id
);
$d
=
'DATA\n'
;
$d
=
$content
.
json_encode
(
$_GET
);
$d
.=
json_encode
(
$_POST
[
'paymentresponse'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment