2012-06-29 14:41:47 -07:00
|
|
|
<?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)
|
2012-06-29 14:41:47 -07:00
|
|
|
*/
|
2025-04-07 16:32:57 +02:00
|
|
|
class AdminerDumpDate extends Adminer\Plugin {
|
2025-02-21 13:53:18 +01:00
|
|
|
|
2012-06-29 14:41:47 -07: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()"));
|
2012-06-29 14:41:47 -07:00
|
|
|
}
|
2025-04-07 17:00:59 +02:00
|
|
|
|
2025-04-08 12:57:03 +02:00
|
|
|
protected $translations = array(
|
2025-04-07 17:00:59 +02:00
|
|
|
'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'),
|
2025-04-07 17:00:59 +02:00
|
|
|
'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'),
|
2025-04-08 19:34:12 +09:00
|
|
|
'ja' => array('' => 'エクスポートファイル名に現在日時を含める'),
|
2025-04-07 17:00:59 +02:00
|
|
|
);
|
2012-06-29 14:41:47 -07:00
|
|
|
}
|