aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock/countryblock_IPBlocklist.widget.tmp
diff options
context:
space:
mode:
authorThomas Schaefer <tom@tomschaefer.org>2011-10-03 00:35:17 -0400
committerThomas Schaefer <tom@tomschaefer.org>2011-10-03 00:35:17 -0400
commitd4d0fcbadc7817f1a0a675d04c4005afc58d9b19 (patch)
tree49a884bd489ae4ca9b2cd78c9b139d0688a8577f /config/countryblock/countryblock_IPBlocklist.widget.tmp
parent26e504fbacb47031869a7ab204bcd54e54315c15 (diff)
downloadpfsense-packages-d4d0fcbadc7817f1a0a675d04c4005afc58d9b19.tar.gz
pfsense-packages-d4d0fcbadc7817f1a0a675d04c4005afc58d9b19.tar.bz2
pfsense-packages-d4d0fcbadc7817f1a0a675d04c4005afc58d9b19.zip
added widget for countryblock and ipblocklist
Diffstat (limited to 'config/countryblock/countryblock_IPBlocklist.widget.tmp')
-rw-r--r--config/countryblock/countryblock_IPBlocklist.widget.tmp39
1 files changed, 39 insertions, 0 deletions
diff --git a/config/countryblock/countryblock_IPBlocklist.widget.tmp b/config/countryblock/countryblock_IPBlocklist.widget.tmp
new file mode 100644
index 00000000..e81f1a55
--- /dev/null
+++ b/config/countryblock/countryblock_IPBlocklist.widget.tmp
@@ -0,0 +1,39 @@
+<script type="text/javascript">
+
+ function Ajax()
+ {
+ var
+ $http,
+ $self = arguments.callee;
+
+ if (window.XMLHttpRequest) {
+ $http = new XMLHttpRequest();
+ } else if (window.ActiveXObject) {
+ try {
+ $http = new ActiveXObject('Msxml2.XMLHTTP');
+ } catch(e) {
+ $http = new ActiveXObject('Microsoft.XMLHTTP');
+ }
+ }
+
+ if ($http) {
+ $http.onreadystatechange = function()
+ {
+ if (/4|^complete$/.test($http.readyState)) {
+ document.getElementById('ReloadThis').innerHTML = $http.responseText;
+ setTimeout(function(){$self();}, 10000);
+ }
+ };
+ $http.open('GET', '/countryblock_ipblocklist_widget.php');
+ $http.send(null);
+ }
+
+ }
+
+</script>
+
+ <script type="text/javascript">
+ setTimeout(function() {Ajax();}, 10000);
+ </script>
+ <div id="ReloadThis">Ajax Loading...</div>
+