File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22/*
3- Version 1.4.2
3+ Version 1.4.3
44Copyright 2012-2019 - Amaury Balmer (amaury@beapi.fr)
55
66This program is free software; you can redistribute it and/or modify
@@ -646,10 +646,12 @@ public function get_footer() {
646646 $ output .= '<script src="https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> ' . "\n" ;
647647
648648 $ output .= '<script type="text/javascript">
649- $.getJSON("//freegeoip.net/json/?callback=?", function(data) {
650- $(".realip td:last").html(data.ip);
651- });
652- </script> ' . "\n" ;
649+ function getIP(json) {
650+ $(".realip td:last").html(json.ip);
651+ }
652+ </script> ' . "\n" ;
653+
654+ $ output .= '<script type="application/javascript" src="https://api.ipify.org?format=jsonp&callback=getIP"></script> ' . "\n" ;
653655
654656 $ output .= '</body> ' . "\n" ;
655657 $ output .= '</html> ' . "\n" ;
You can’t perform that action at this time.
0 commit comments