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
87c892d8
Commit
87c892d8
authored
May 10, 2018
by
jenkins
Browse files
Options
Browse Files
Download
Plain Diff
Merge Request accepted by jenkins build success
parents
b01287f4
28492b8a
Pipeline
#514
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
download-now.php
...content/plugins/apex_global_lms/template/download-now.php
+3
-22
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/template/download-now.php
View file @
87c892d8
...
@@ -398,27 +398,8 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
...
@@ -398,27 +398,8 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
</div>
</div>
<?php
<?php
function
get_client_ip_server
()
{
$ip
=
file_get_contents
(
'https://api.ipify.org'
);
$ipaddress
=
''
;
//echo "My public IP address is: " . $ip;
if
(
$_SERVER
[
'HTTP_CLIENT_IP'
])
$ipaddress
=
$_SERVER
[
'HTTP_CLIENT_IP'
];
else
if
(
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
])
$ipaddress
=
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
];
else
if
(
$_SERVER
[
'HTTP_X_FORWARDED'
])
$ipaddress
=
$_SERVER
[
'HTTP_X_FORWARDED'
];
else
if
(
$_SERVER
[
'HTTP_FORWARDED_FOR'
])
$ipaddress
=
$_SERVER
[
'HTTP_FORWARDED_FOR'
];
else
if
(
$_SERVER
[
'HTTP_FORWARDED'
])
$ipaddress
=
$_SERVER
[
'HTTP_FORWARDED'
];
else
if
(
$_SERVER
[
'REMOTE_ADDR'
])
$ipaddress
=
$_SERVER
[
'REMOTE_ADDR'
];
else
$ipaddress
=
'UNKNOWN'
;
return
$ipaddress
;
}
$Ipx
=
get_client_ip_server
();
?>
?>
...
@@ -428,7 +409,7 @@ $Ipx = get_client_ip_server();
...
@@ -428,7 +409,7 @@ $Ipx = get_client_ip_server();
var
ips
=
'00'
;
var
ips
=
'00'
;
ips
=
'
<?php
echo
(
$
Ipx
);
?>
'
;
ips
=
'
<?php
echo
(
$
ip
);
?>
'
;
console
.
log
(
ips
);
console
.
log
(
ips
);
...
...
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