Files
adminer/plugins/dump-date.php

23 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/** Include current date and time in export filename
2015-09-08 09:23:25 -07:00
* @link https://www.adminer.org/plugins/#use
2017-02-27 13:43:33 +01:00
* @author Jakub Vrana, https://www.vrana.cz/
2018-01-14 11:03:54 +01:00
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
2025-04-07 16:32:57 +02:00
class AdminerDumpDate extends Adminer\Plugin {
2025-02-21 13:53:18 +01:00
function dumpFilename($identifier) {
2025-03-08 06:13:18 +01:00
return Adminer\friendly_url(($identifier != "" ? $identifier : (Adminer\SERVER != "" ? Adminer\SERVER : "localhost")) . "-" . Adminer\get_val("SELECT NOW()"));
}
protected $translations = array(
'cs' => array('' => 'Do názvu souboru s exportem přidá aktuální datum a čas'),
2025-04-08 14:33:58 +02:00
'de' => array('' => 'Aktuelles Datum und die aktuelle Uhrzeit in den Namen der Exportdatei einfügen'),
'pl' => array('' => 'Dołącz bieżącą datę i godzinę do nazwy pliku eksportu'),
'ro' => array('' => 'Includeți data și ora curentă în numele fișierului de export'),
'ja' => array('' => 'エクスポートファイル名に現在日時を含める'),
);
}