summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-03-19 19:54:32 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-03-19 19:54:43 -0400
commitf6ba4bd1fa82f4e846fb8eddd545579c3006f86a (patch)
tree3cc5f27a00eb739fe861ca279f2a5eca9d62ee38 /usr/local
parentf973148e5bd94403423fe7457f8320a961906f5e (diff)
downloadpfsense-f6ba4bd1fa82f4e846fb8eddd545579c3006f86a.zip
pfsense-f6ba4bd1fa82f4e846fb8eddd545579c3006f86a.tar.gz
Add alias data url option. This code existed but lacked a backend daemon to update the data every 24 hours. Adding this as well.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 0ca8c1e..f8d97ad 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -523,6 +523,7 @@ EOD;
<option value="network" <?php if ($pconfig['type'] == "network") echo "selected"; ?>>Network(s)</option>
<option value="port" <?php if ($pconfig['type'] == "port") echo "selected"; ?>>Port(s)</option>
<option value="openvpn" <?php if ($pconfig['type'] == "openvpn") echo "selected"; ?>>OpenVPN Users</option>
+ <option value="url" <?php if ($pconfig['type'] == "url") echo "selected"; ?>>Use data from a URL</option>
</select>
</td>
</tr>
@@ -646,21 +647,3 @@ setTimeOut("createAutoSuggest();", 500);
<?php include("fend.inc"); ?>
</body>
</html>
-
-<?php
-function process_alias_tgz($temp_filename) {
- mwexec("/bin/mv {$temp_filename}/aliases {$temp_filename}/aliases.tgz");
- mwexec("/usr/bin/tar xzf {$temp_filename}/aliases.tgz -C {$temp_filename}/aliases/");
- unlink("{$temp_filename}/aliases.tgz");
- $files_to_process = return_dir_as_array("{$temp_filename}/");
- /* foreach through all extracted files and build up aliases file */
- $fd = fopen("{$temp_filename}/aliases", "a");
- foreach($files_to_process as $f2p) {
- $file_contents = file_get_contents($f2p);
- fwrite($fd, $file_contents);
- unlink($f2p);
- }
- fclose($fd);
-}
-
-?>
OpenPOWER on IntegriCloud