diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-03-19 19:54:32 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-03-19 19:54:43 -0400 |
commit | f6ba4bd1fa82f4e846fb8eddd545579c3006f86a (patch) | |
tree | 3cc5f27a00eb739fe861ca279f2a5eca9d62ee38 /usr | |
parent | f973148e5bd94403423fe7457f8320a961906f5e (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 19 |
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); -} - -?> |