aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/cron/cron.php3
-rw-r--r--config/cron/cron.xml2
-rw-r--r--config/cron/cron_edit.php66
-rw-r--r--config/pfblockerng/pfblockerng.inc4
-rw-r--r--config/sarg/sarg.inc4
-rw-r--r--config/tftp2/tftp.inc3
-rw-r--r--config/tftp2/tftp.xml6
-rw-r--r--config/tftp2/tftp_files.php3
8 files changed, 60 insertions, 31 deletions
diff --git a/config/cron/cron.php b/config/cron/cron.php
index 7d55b086..ec15a4cb 100644
--- a/config/cron/cron.php
+++ b/config/cron/cron.php
@@ -76,7 +76,8 @@ include("head.inc");
<tr><td>
<div>
Cron controls the scheduling of commands.<br /><br />
- For more information see: <a href='http://www.freebsd.org/doc/en/books/handbook/configtuning-cron.html'>http://www.freebsd.org/doc/en/books/handbook/configtuning-cron.html</a>
+ For more information see: <a href="http://www.freebsd.org/doc/en/books/handbook/configtuning-cron.html">FreeBSD Handbook - Configuring cron(8)</a>
+ and <a href="https://www.freebsd.org/cgi/man.cgi?query=crontab&amp;sektion=5">crontab(5) man page</a>.
</div>
</td></tr>
</table>
diff --git a/config/cron/cron.xml b/config/cron/cron.xml
index 181a4506..5e596b6b 100644
--- a/config/cron/cron.xml
+++ b/config/cron/cron.xml
@@ -42,7 +42,7 @@
]]>
</copyright>
<name>cronsettings</name>
- <version>0.3.3</version>
+ <version>0.3.4</version>
<title>Cron Settings</title>
<include_file>/usr/local/pkg/cron.inc</include_file>
<menu>
diff --git a/config/cron/cron_edit.php b/config/cron/cron_edit.php
index b89c28e0..58389284 100644
--- a/config/cron/cron_edit.php
+++ b/config/cron/cron_edit.php
@@ -128,45 +128,57 @@ function show_advanced_config() {
<form action="cron_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="form">
<tr>
- <td width="25%" valign="top" class="vncellreq">minute</td>
- <td width="75%" class="vtable">
- <input name="minute" type="text" class="formfld" id="minute" size="40" value="<?=htmlspecialchars($pconfig['minute']);?>" />
+ <td width="10%" valign="top" class="vncellreq">Minute</td>
+ <td width="90%" class="vtable">
+ <input name="minute" type="text" class="formfld" id="minute" size="40" value="<?=htmlspecialchars($pconfig['minute']);?>" /><br/>
+ The minute(s) at which the command will be executed.<br/>
+ (0-59, ranges, or divided, *=all)
</td>
</tr>
<tr>
- <td width="25%" valign="top" class="vncellreq">hour</td>
- <td width="75%" class="vtable">
- <input name="hour" type="text" class="formfld" id="hour" size="40" value="<?=htmlspecialchars($pconfig['hour']);?>" />
+ <td width="10%" valign="top" class="vncellreq">Hour</td>
+ <td width="90%" class="vtable">
+ <input name="hour" type="text" class="formfld" id="hour" size="40" value="<?=htmlspecialchars($pconfig['hour']);?>" /><br/>
+ The day(s) of the month on which the command will be executed.<br/>
+ (1-31, ranges, or divided, *=all)
</td>
</tr>
<tr>
- <td width="25%" valign="top" class="vncellreq">mday</td>
- <td width="75%" class="vtable">
- <input name="mday" type="text" class="formfld" id="mday" size="40" value="<?=htmlspecialchars($pconfig['mday']);?>" />
+ <td width="10%" valign="top" class="vncellreq">Day of the Month</td>
+ <td width="90%" class="vtable">
+ <input name="mday" type="text" class="formfld" id="mday" size="40" value="<?=htmlspecialchars($pconfig['mday']);?>" /><br/>
+ The day(s) of the month on which the command will be executed.<br/>
+ (1-31, ranges, or divided, *=all)
</td>
</tr>
<tr>
- <td width="25%" valign="top" class="vncellreq">month</td>
- <td width="75%" class="vtable">
- <input name="month" type="text" class="formfld" id="month" size="40" value="<?=htmlspecialchars($pconfig['month']);?>" />
+ <td width="10%" valign="top" class="vncellreq">Month of the Year</td>
+ <td width="90%" class="vtable">
+ <input name="month" type="text" class="formfld" id="month" size="40" value="<?=htmlspecialchars($pconfig['month']);?>" /><br/>
+ The month(s) of the year during which the command will be executed.<br/>
+ (1-12, ranges, or divided, *=all)
</td>
</tr>
<tr>
- <td width="25%" valign="top" class="vncellreq">wday</td>
- <td width="75%" class="vtable">
- <input name="wday" type="text" class="formfld" id="wday" size="40" value="<?=htmlspecialchars($pconfig['wday']);?>" />
+ <td width="10%" valign="top" class="vncellreq">Day of the Week</td>
+ <td width="90%" class="vtable">
+ <input name="wday" type="text" class="formfld" id="wday" size="40" value="<?=htmlspecialchars($pconfig['wday']);?>" /><br/>
+ The day(s) of the week on which the command will be executed.<br/>
+ (0-7, 7=Sun or use names, ranges, or divided, *=all)
</td>
</tr>
<tr>
- <td width="25%" valign="top" class="vncellreq">who</td>
- <td width="75%" class="vtable">
- <input name="who" type="text" class="formfld" id="who" size="40" value="<?=htmlspecialchars($pconfig['who']);?>" />
+ <td width="10%" valign="top" class="vncellreq">User</td>
+ <td width="90%" class="vtable">
+ <input name="who" type="text" class="formfld" id="who" size="40" value="<?=htmlspecialchars($pconfig['who']);?>" /><br/>
+ The user executing the command (typically "root")
</td>
</tr>
<tr>
- <td width="25%" valign="top" class="vncellreq">command</td>
- <td width="75%" class="vtable">
- <textarea rows="3" cols="68" name="command" id="command"><?=htmlspecialchars($pconfig['command']);?></textarea>
+ <td width="10%" valign="top" class="vncellreq">Command</td>
+ <td width="90%" class="vtable">
+ <textarea rows="3" cols="68" name="command" id="command"><?=htmlspecialchars($pconfig['command']);?></textarea><br/>
+ The <strong>full path</strong> to the command, plus parameters.
</td>
</tr>
<tr>
@@ -178,6 +190,18 @@ function show_advanced_config() {
<?php endif; ?>
</td>
</tr>
+ <tr class="listtopic">
+ <td colspan="2">Help</td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ 'Using "*" for a time entry means "all" or "every", and is the same as a range from first to last.
+ <br/>Ranges may also be used, for example "1-5" in the "Day of Week" field means Monday through Friday.
+ <br/>Time entries may be divided and will be executed when they divide evenly, for example "*/15" in the Minute field means "Every 15 minutes".
+ <br/><br/>For more information see: <a href="http://www.freebsd.org/doc/en/books/handbook/configtuning-cron.html">FreeBSD Handbook - Configuring cron(8)</a>
+ and <a href="https://www.freebsd.org/cgi/man.cgi?query=crontab&amp;sektion=5">crontab(5) man page</a>.
+ </td>
+ </tr>
</table>
</form>
<br />
diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc
index af57cc90..7bfc6f0e 100644
--- a/config/pfblockerng/pfblockerng.inc
+++ b/config/pfblockerng/pfblockerng.inc
@@ -1326,7 +1326,7 @@ function pfb_download_failure($alias, $header, $pfbfolder, $vtype, $list_url) {
// Query Firewall aliastables
$result = find_reported_header($ip, "{$pfbfolder}/*", TRUE);
if (!empty($result)) {
- $log = " [ {$ip} ] Firewall IP block found in: [ {$result} ]\n";
+ $log = " [ {$ip} ] Firewall IP block found in: [ {$result[1]} | {$result[0]} ]\n";
pfb_logger("{$log}", 2);
$pfbfound = TRUE;
}
@@ -4780,4 +4780,4 @@ function pfblockerng_do_xmlrpc_sync($sync_to_ip, $port, $protocol, $username, $p
}
return $success;
}
-?>
+?> \ No newline at end of file
diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc
index 22e70c95..253dab9d 100644
--- a/config/sarg/sarg.inc
+++ b/config/sarg/sarg.inc
@@ -94,7 +94,9 @@ function sarg_check_dirs() {
if (is_dir($pbidir) && !is_link($pbidir)) {
rmdir_recursive($pbidir);
}
- symlink("/usr/local/sarg-reports", "{$pbidir}");
+ if (!is_link($pbidir)) {
+ symlink("/usr/local/sarg-reports", "{$pbidir}");
+ }
}
// images
diff --git a/config/tftp2/tftp.inc b/config/tftp2/tftp.inc
index 75ddaac8..baf753c9 100644
--- a/config/tftp2/tftp.inc
+++ b/config/tftp2/tftp.inc
@@ -28,6 +28,9 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
+require_once("filter.inc");
+require_once("util.inc");
+
function tftp_byte_convert($bytes) {
if ($bytes <= 0) {
return '0 Byte';
diff --git a/config/tftp2/tftp.xml b/config/tftp2/tftp.xml
index f45a344a..350999dd 100644
--- a/config/tftp2/tftp.xml
+++ b/config/tftp2/tftp.xml
@@ -42,13 +42,12 @@
/* ====================================================================================== */
]]>
</copyright>
- <name>tftp Settings</name>
- <version>2.2.3</version>
+ <name>tftpsettings</name>
+ <version>2.2.4</version>
<title>TFTP: Settings</title>
<include_file>/usr/local/pkg/tftp.inc</include_file>
<menu>
<name>TFTP</name>
- <tooltiptext>Add or Remove files for TFTP.</tooltiptext>
<section>Services</section>
<configfile>tftp.xml</configfile>
<url>/tftp_files.php</url>
@@ -58,7 +57,6 @@
<executable>inetd</executable>
<description>TFTP Daemon</description>
</service>
- <configpath>installedpackages->$packagename</configpath>
<additional_files_needed>
<prefix>/usr/local/pkg/</prefix>
<item>https://packages.pfsense.org/packages/config/tftp2/tftp.inc</item>
diff --git a/config/tftp2/tftp_files.php b/config/tftp2/tftp_files.php
index e2e81ed4..4cb34024 100644
--- a/config/tftp2/tftp_files.php
+++ b/config/tftp2/tftp_files.php
@@ -28,6 +28,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
+require_once("config.inc");
require_once("guiconfig.inc");
require_once("util.inc");
require_once("/usr/local/pkg/tftp.inc");
@@ -117,13 +118,13 @@ if ($_GET['act'] == "del") {
}
}
+$pgtitle = "TFTP: Settings/Files";
include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<p class="pgtitle">TFTP: Settings/Files</p>
<?php
$savemsg = $_GET["savemsg"];