summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-02 18:57:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-02 18:57:32 +0000
commitc7e202d3a0fa010a65e223ec6b8b67d8c93006f1 (patch)
tree3080e4139292ff0c013a693d46be0794842fc1f8 /usr/local/www
parentf14e4c2a8c787404fa548bd10d0aaecfd697b186 (diff)
downloadpfsense-c7e202d3a0fa010a65e223ec6b8b67d8c93006f1.zip
pfsense-c7e202d3a0fa010a65e223ec6b8b67d8c93006f1.tar.gz
Detect if the popup window is blocked and alert the user of the fact
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_advanced.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 7209e04..84bcb7c 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -228,6 +228,16 @@ function update_description(itemnum) {
}
+function openwindow(url) {
+ var oWin = window.open(url,"pfSensePop","width=100,height=50,top=5000,left=5000");
+ if (oWin==null || typeof(oWin)=="undefined") {
+ return false;
+ } else {
+ oWin.close();
+ return true;
+ }
+}
+
// -->
</script>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
@@ -293,7 +303,7 @@ function update_description(itemnum) {
<td width="78%" class="vtable">
<textarea name="cert" cols="65" rows="7" id="cert" class="formpre"><?=htmlspecialchars($pconfig['cert']);?></textarea>
<br>
- Paste a signed certificate in X.509 PEM format here. <A target="_new" HREF='system_advanced_create_certs.php'>Create</a> certificates automatically.</td>
+ Paste a signed certificate in X.509 PEM format here. <a href="javascript:if(openwindow('system_advanced_create_certs.php') == false) alert('Popup blocker detected. Action aborted.');" >Create</a> certificates automatically.</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Key</td>
OpenPOWER on IntegriCloud