Fix to replace deprecated PHP date function
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.1.11......Fix to replace deprecated PHP date function.
|
||||||
1.1.10......Add Debian 11(Bullseye) to the WebGUI.
|
1.1.10......Add Debian 11(Bullseye) to the WebGUI.
|
||||||
1.1.09......Always check/update create.sh for /tmp sane permissions.
|
1.1.09......Always check/update create.sh for /tmp sane permissions.
|
||||||
1.1.08......Always check for host /tmp sane permissions.
|
1.1.08......Always check for host /tmp sane permissions.
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ $rootfolder = $cwdir;
|
|||||||
$configfile = "$rootfolder/conf/bastille_config";
|
$configfile = "$rootfolder/conf/bastille_config";
|
||||||
$configfile_bastille = "$rootfolder/bastille-dist/usr/local/etc/bastille/bastille.conf";
|
$configfile_bastille = "$rootfolder/bastille-dist/usr/local/etc/bastille/bastille.conf";
|
||||||
$versionfile = "$rootfolder/version";
|
$versionfile = "$rootfolder/version";
|
||||||
$date = strftime('%c');
|
//$date = strftime('%c'); // Previous PHP versions, deprecated as of PHP 8.1.
|
||||||
|
$date = date('D M d h:i:s Y', time()); // Equivalent date replacement for the previous strftime function.
|
||||||
$logfile = "$rootfolder/log/bastille_ext.log";
|
$logfile = "$rootfolder/log/bastille_ext.log";
|
||||||
$logevent = "$rootfolder/log/bastille_last_event.log";
|
$logevent = "$rootfolder/log/bastille_last_event.log";
|
||||||
$backup_path = exec("/usr/bin/grep 'BACKUP_DIR=' $configfile | /usr/bin/cut -d'\"' -f2");
|
$backup_path = exec("/usr/bin/grep 'BACKUP_DIR=' $configfile | /usr/bin/cut -d'\"' -f2");
|
||||||
|
|||||||
Reference in New Issue
Block a user