replace deprecated strftime() function #2

Merged
n merged 1 commit from strftime into main 2024-03-30 22:02:55 +01:00
3 changed files with 5 additions and 13 deletions
Showing only changes of commit 425c725443 - Show all commits

View file

@ -295,7 +295,7 @@ function addlog($url)
createfile("$File.csv");
}
$date = strftime("%d/%m/%Y", time());
$date = date_format(date_create(), "d/m/Y");
$string = sprintf("\"".$date."\",\"".iheure()."\",\"".$_SERVER["REMOTE_ADDR"]."\",\"".$_SERVER["HTTP_REFERER"]."\",\"".$_SERVER["HTTP_USER_AGENT"]."\"\n");

View file

@ -6,11 +6,7 @@ function settimer($TimerName, $String)
{
$FileTimerName = "modules/timers/$TimerName.csv";
if (strftime("%m", time()) < 10) {
$Date = strftime("%Y%0m%d%H%M%S", time());
} else {
$Date = strftime("%Y%m%d%H%M%S", time());
}
$Date = date_format(date_create(), "YmdHis");
$fp = fopen("$FileTimerName", "w+");
$Ligne = sprintf("\"".$Date."\",\"".$String."\"\n");
@ -26,11 +22,7 @@ function timer($TimerName, $TimerNb)
$FileTimerN = "modules/timers/$TimerName.csv";
if (strftime("%m", time()) < 10) {
$Date = strftime("%Y%0m%d%H%M%S", time());
} else {
$Date = strftime("%Y%m%d%H%M%S", time());
}
$Date = date_format(date_create(), "YmdHis");
if (!file_exists("$FileTimerN")) {
$timer = false;
@ -41,7 +33,7 @@ function timer($TimerName, $TimerNb)
fclose($fp);
$FileDate = $data[0];
$Date = strftime("%Y%m%d%H%M%S", time());
$Date = date_format(date_create(), "YmdHis");
$String = $data[1];

View file

@ -49,7 +49,7 @@ if (!(file_exists("modules/goldbook/$GoldbookFile.csv"))) {
// ajout des messages
if ($param == "postgb") {
if ($VMessage != "" && isset($_POST['piejacon'])) {
$date = strftime("%d/%m/%Y", time());
$date = date_format(date_create(), "d/m/Y");
$iheure = date("H:i");
$VMessage = ereg_replace("<", "&lt;", $VMessage);
$VMessage = ereg_replace(">", "&gt;", $VMessage);