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
|
|
|
*/
|
|
|
|
|
class AdminerDumpDate {
|
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
|
|
|
}
|
|
|
|
|
}
|