fix synchro plain and html
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
a.php?s=mel@domain.org&t=password + [action] => manage account
|
||||
action: a=login a=logout a=r[on|off] a=p[minute|hour|day|week|month|quarter]
|
||||
*/
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\SMTP;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
@ -748,10 +749,17 @@ if ($doDownload) {
|
||||
$modif = true;
|
||||
continue;
|
||||
}
|
||||
$srcName = $dstName = ($link ['file_name'] ? $link ['file_name'] : M_NO_FILENAME);
|
||||
if (in_array ($srcName, $singleName))
|
||||
for ($i = 0; $i < 10000; ++$i) {
|
||||
$dstName = sprintf ("%s-%2d", $srcName, $i);
|
||||
$dstName = ($link ['file_name'] ? $link ['file_name'] : M_NO_FILENAME);
|
||||
if (in_array ($dstName, $singleName)) {
|
||||
$dstFilename = $dstName;
|
||||
$dstExtension = "";
|
||||
$dstExtensionPos = strrpos ($dstName, '.');
|
||||
if ($dstExtensionPos) {
|
||||
$dstFilename = substr ($dstName, 0, $dstExtensionPos);
|
||||
$dstExtension = substr ($dstName, $dstExtensionPos);
|
||||
}
|
||||
for ($i = 1; $i < 10000; ++$i) {
|
||||
$dstName = sprintf ("%s-%02d%s", $dstFilename, $i, $dstExtension);
|
||||
if (!in_array ($dstName, $singleName)) {
|
||||
if (isset ($archiveContent [T_RENAME]))
|
||||
++$archiveContent [T_RENAME];
|
||||
@ -761,6 +769,7 @@ if ($doDownload) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
$singleName [] = $dstName;
|
||||
$archiveContent [$cat][T_ENTRIES][] = [T_HASH => $link ['hash'], T_FILENAME => $dstName, T_CRYPT_KEY => $cryptKey, T_CRYPTED => $link ['crypted']];
|
||||
}
|
||||
@ -1080,6 +1089,15 @@ echo
|
||||
'<select name="'.A_ACTION.'" style="width: auto !important;">';
|
||||
foreach ($periodText as $item => $text)
|
||||
echo ' <option value="'.A_PERIOD.$item.'"'.$defaultChecked [$item].'>'.$text.'</option>';
|
||||
echo
|
||||
'</select> '.
|
||||
'<button type="submit">'."valider".'</button>'.
|
||||
'</form>'.
|
||||
'<form method="post">'.
|
||||
'Je préfère envoyer mes messages en langue '.
|
||||
'<select name="'.A_ACTION.'" style="width: auto !important;">';
|
||||
foreach ($langText as $item => $text)
|
||||
echo ' <option value="'.A_LANG.$item.'"'.$defaultChecked [$item].'>'.$text.'</option>';
|
||||
echo
|
||||
'</select> '.
|
||||
'<button type="submit">'."valider".'</button>'.
|
||||
|
Reference in New Issue
Block a user