| Server IP : 23.94.149.180 / Your IP : 216.73.216.147 Web Server : nginx/1.20.1 System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64 User : nginx ( 991) PHP Version : 8.6.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /files/www/hacklab/phpfwgen/ |
Upload File : |
<?php
#############################################################################
#
# $Id: javascript.inc,v 1.18 2000/04/11 23:30:35 delson Exp $
#
# JavaScript code used by various parts of phpfwgen.
#
# (C) Del under the GPL.
#
#############################################################################
?>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from JavaScript-challenged browsers
//
// Functions to open the various popup windows.
//
function openInterfaces() {
popupWin = window.open('interfaces.php3', 'Interfaces',
'scrollbars,resizable,width=275,height=300')
}
function openProtocols() {
popupWin = window.open('proto.php3', 'Protocols',
'scrollbars,resizable,width=275,height=600')
}
function openServices() {
popupWin = window.open('services.php3', 'Services',
'scrollbars,resizable,width=360,height=600')
}
function openPorts() {
popupWin = window.open('openports.php3', 'OpenPorts',
'scrollbars,resizable,width=275,height=400')
}
function openObjects() {
popupWin = window.open('objects.php3', 'Objects',
'scrollbars,resizable,width=640,height=600')
}
function openRules() {
popupWin = window.open('rules.php3', 'Rules',
'scrollbars,resizable,width=800,height=600')
}
function openPortfwd() {
popupWin = window.open('portfwd.php3', 'PortForward',
'scrollbars,resizable,width=615,height=400')
}
function openRedirect() {
popupWin = window.open('redirect.php3', 'Redirect',
'scrollbars,resizable,width=615,height=400')
}
function openScript() {
scriptWin = window.open('script.php3', 'Script',
'scrollbars,resizable,width=620,height=600')
}
//
// Functions to reload the firewall script window, or the parent
// window from an edit popup window.
//
function reloadScript() {
if (window.opener.scriptWin != null) {
if (! window.opener.scriptWin.closed) {
window.opener.scriptWin.location.reload();
}
}
}
function reloadParent() {
if (! window.opener.closed) {
window.opener.location.reload();
}
}
//
// Functions to open the various edit sub-popups (these windows
// are opened from the popup windows shown above).
//
function editRule(key) {
ruleWin = window.open('newrule.php3?rulekey=' + key, 'ruleWin',
'scrollbars,resizable,width=400,height=600')
}
function editPortfwd(key) {
portfwdWin = window.open('newportfwd.php3?portfwdkey=' + key, 'portfwdWin',
'scrollbars,resizable,width=400,height=600')
}
function editRedir(key) {
redirWin = window.open('newredir.php3?redirectorkey=' + key, 'redirWin',
'scrollbars,resizable,width=400,height=600')
}
function editObject(key) {
objectWin = window.open('newobject.php3?objectname=' + key, 'objectWin',
'scrollbars,resizable,width=400,height=430')
}
//
// Confirm-delete dialogs.
//
function confirmDeleteObject(myForm) {
var objectname = myForm.objectname.value;
if (confirm("Delete Object " + objectname + "?")) {
myForm.submit();
}
}
function confirmDeleteRule(myForm) {
var rulenum = myForm.rulekey.value;
if (confirm("Delete Rule " + rulenum + "?")) {
myForm.submit();
}
}
function confirmDeletePortfwd(myForm) {
var portfwdkey = myForm.portfwdkey.value;
if (confirm("Delete Forwarder Rule " + portfwdkey + "?")) {
myForm.submit();
}
}
function confirmDeleteRedirector(myForm) {
var redirectorkey = myForm.redirectorkey.value;
if (confirm("Delete Redirector Rule " + redirectorkey + "?")) {
myForm.submit();
}
}
//
// Help dialogs.
//
function showHelp(page) {
helpWin = window.open(page, 'helpWin',
'toolbar,scrollbars,resizable,width=550,height=620')
}
// done hiding -->
</SCRIPT>