diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-18 21:43:05 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-18 21:43:05 -0400 |
commit | da8dd4b95f0db8a215a0d6e893d3ebd60a2251f5 (patch) | |
tree | 5e91eb1fe66a9eabbddab0a98cc11e8f1926019a /config | |
parent | bd466aee5cba77c2e0cfba0ec141320d9416f801 (diff) | |
download | pfsense-packages-da8dd4b95f0db8a215a0d6e893d3ebd60a2251f5.tar.gz pfsense-packages-da8dd4b95f0db8a215a0d6e893d3ebd60a2251f5.tar.bz2 pfsense-packages-da8dd4b95f0db8a215a0d6e893d3ebd60a2251f5.zip |
Use PHP date() function instead of exec() call.
Diffstat (limited to 'config')
-rwxr-xr-x | config/snort/snort_alerts.php | 2 | ||||
-rw-r--r-- | config/snort/snort_sid_mgmt.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php index 2396b71e..f1cbb6c4 100755 --- a/config/snort/snort_alerts.php +++ b/config/snort/snort_alerts.php @@ -381,7 +381,7 @@ if ($_POST['delete']) { } if ($_POST['download']) { - $save_date = exec('/bin/date "+%Y-%m-%d-%H-%M-%S"'); + $save_date = date("Y-m-d-H-i-s"); $file_name = "snort_logs_{$save_date}_{$if_real}.tar.gz"; exec("cd {$snortlogdir}/snort_{$if_real}{$snort_uuid} && /usr/bin/tar -czf /tmp/{$file_name} *"); diff --git a/config/snort/snort_sid_mgmt.php b/config/snort/snort_sid_mgmt.php index 04edae74..9fb23392 100644 --- a/config/snort/snort_sid_mgmt.php +++ b/config/snort/snort_sid_mgmt.php @@ -213,7 +213,7 @@ if (isset($_POST['sidlist_dnload']) && isset($_POST['sidlist_fname'])) { } if (isset($_POST['sidlist_dnload_all_x'])) { - $save_date = exec('/bin/date "+%Y-%m-%d-%H-%M-%S"'); + $save_date = date("Y-m-d-H-i-s"); $file_name = "snort_sid_conf_files_{$save_date}.tar.gz"; exec("cd {$sidmods_path} && /usr/bin/tar -czf /tmp/{$file_name} *"); |