diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-02-05 10:02:24 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-02-05 20:10:15 -0200 |
commit | 07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 (patch) | |
tree | 44d40561519e0018ad586bb1449e107c9ae431f3 /config/countryblock/settings.tmp | |
parent | e526e4aa28867b7743b0e76993f5f6bebd15bc1b (diff) | |
download | pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.gz pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.bz2 pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.zip |
Packages repo cleanup:
- Drop support for pfSense < 2
- Remove archive/, old files can be reached using git
- Remove old and unused packages
- Move stale files from config subdir to a package subdir
Diffstat (limited to 'config/countryblock/settings.tmp')
-rw-r--r-- | config/countryblock/settings.tmp | 220 |
1 files changed, 0 insertions, 220 deletions
diff --git a/config/countryblock/settings.tmp b/config/countryblock/settings.tmp deleted file mode 100644 index 0a067d83..00000000 --- a/config/countryblock/settings.tmp +++ /dev/null @@ -1,220 +0,0 @@ -<?php -$pgtitle = "Firewall: Countryblock - Settings"; - // TomSchaefer.org countryblock package 2010 - // - // Notes: Find: ^(.*)$ - // Replace: ob_start();\n$results = exec("cat countries.txt | grep XX");\nob_end_clean();\n\tif ($results == 'XX')\n\t\techo "\1";\n\telse\n\t\techo "\1";\n - // - // - // - // - //require_once('config.inc'); - require("guiconfig.inc"); - include("head.inc"); - - //set the config as a global variable - global $config; - - $global_usage = '/usr/local/www/packages/countryblock/global_usage'; - //$fh = fopen($global_usage, 'r'); - - //phpinfo(); - - -?> - -<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> -<?php include("fbegin.inc"); ?> -<p class="pgtitle"><?=$pgtitle?></p> -<?php if ($input_errors) print_input_errors($input_errors); ?> -<?php if ($savemsg) print_info_box($savemsg); ?> -<form method=POST action=""> - -<?php if ($savemsg_cb) print_info_box($savemsg_cb); - //if ($output) print_info_box($output,$output2); - echo($output); - echo($output2); - ?> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr><td class="tabnavtbl"> -<?php - $tab_array = array(); - $tab_array[0] = array("Countries", false, "countryblock.php"); - $tab_array[1] = array("Settings", true, "settings.php"); - $tab_array[2] = array("Whitelist", false, "whitelist.php"); - $tab_array[3] = array("Interfaces", false, "countryblock_if.php"); - $tab_array[4] = array("Help", false, "help.php"); - //$tab_array[5] = array("Email", false, "email.php"); - display_top_tabs($tab_array); -?> - </td></tr> - <tr> - <td> - <div id="mainarea"> - <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td class="listhdrr">Settings</td> - - </tr> - - <tr> - <td class="listlr" valign="middle"> - -<?php - -conf_mount_rw(); - - - - if(isset($_POST['formSubmit'])) - { - $aCountry = $_POST['formCountry']; - - if(isset($_POST['formOutbound'])) - { - $output2 = " and Outbound access is BLOCKED.</b>"; - exec("touch OUTBOUND"); - } - else - { - $output2 = " and Outbound access is ALLOWED.</b>"; - exec("rm OUTBOUND"); - } - - if(isset($_POST['formlogging'])) - { - exec("touch logging"); - } - else - { - exec("rm logging"); - } - - - - - } -conf_mount_ro(); -?> - - - - -</head> - - - -<table width="100%" border="0" cellpadding="0" cellspacing="0"> -<tr> - <td > - - - </form> - - <form action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post"> - <p> - <?php - $countif = "interfaces.txt"; - if (file_exists($countif)) { - $countif = count(file($countif)); - echo "$countlines"; - } else { - echo "<span style='color:red'>Warning! No Interfaces Selected Click <a href='countryblock_if.php' target='_parent'><img src='../../themes/nervecenter/images/icons/icon_cablenic.gif' ALT='if'></a></span>"; - } - - ?> - </p> - - - <p> - Block outbound? -<?php - - if (file_exists("OUTBOUND")) { - echo "<input name='formOutbound' type='checkbox' value='Yes' checked/>"; - } else { - echo "<input name='formOutbound' type='checkbox' value='Yes'/>"; - } -?> - - <br> - Enable Logging? -<?php - - if (file_exists("logging")) { - echo "<input name='formlogging' type='checkbox' value='Yes' checked/>"; - } else { - echo "<input name='formlogging' type='checkbox' value='Yes'/>"; - } -?> -<br/> - - - - - - - - - </p> - -<br/> - - - -</div> -<?php - //This input guarantees that a POST is sent - echo "<input type='hidden' name='zzz' value='required'>"; -?> - -</td> -</tr> -</table> - </td> - - - </tr> - - -</table> -</div> -<br> -<?php - echo "Current Status = "; - ob_start(); - $results = exec("pfctl -s rules | grep -c countryblock"); - ob_end_clean(); - if ($results > '0') echo "Running"; - else - echo "<span style='color:red'>NOT running</span>"; - - //Get Errors if exists - ob_start(); - $results = exec("tail -r errorOUT.txt"); - ob_end_clean(); - echo "<br/><span style='color:red'>"; - echo $results; - echo "</span>"; - - //Get IP Count - echo "<br>You are blocking "; - ob_start(); - $results = exec("pfctl -T show -t countryblock |grep -v -c Z"); - ob_end_clean(); - echo $results; - echo " Networks"; - ?> - -<br><br> -<input type="submit" name="formSubmit" value="Save" /><br><br> -<p> -</p> -</td> - </tr> -</table> -</form> -<?php include("fend.inc"); ?> -</body> -</html> - |