2023-08-07 14:39:29 +09:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Enables auto-detection and inclusion of adminer.js, like adminer.css
|
|
|
|
|
*
|
|
|
|
|
* @author Roy Orbitson, https://github.com/Roy-Orbison
|
|
|
|
|
*
|
|
|
|
|
* @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 AdminerDotJs extends Adminer\Plugin {
|
2025-03-05 09:14:49 +01:00
|
|
|
const FILENAME = "adminer.js";
|
2023-08-07 14:39:29 +09:30
|
|
|
|
2025-03-15 01:49:42 +01:00
|
|
|
function head($dark = null) {
|
2025-03-05 09:14:49 +01:00
|
|
|
if (file_exists(self::FILENAME)) {
|
2025-03-05 11:40:56 +01:00
|
|
|
echo Adminer\script_src(self::FILENAME . "?v=" . crc32(file_get_contents(self::FILENAME))), "\n";
|
2023-08-07 14:39:29 +09:30
|
|
|
}
|
|
|
|
|
}
|
2025-04-07 18:53:38 +02:00
|
|
|
|
2025-04-08 12:57:03 +02:00
|
|
|
protected $translations = array(
|
2025-04-07 18:53:38 +02:00
|
|
|
'cs' => array('' => 'Nahraje adminer.js'),
|
|
|
|
|
'de' => array('' => 'Laden Sie adminer.js'),
|
|
|
|
|
'pl' => array('' => 'Wczytuj adminer.js'),
|
|
|
|
|
'ro' => array('' => 'Încarcă adminer.js'),
|
2025-04-08 19:34:12 +09:00
|
|
|
'ja' => array('' => 'adminer.js を読込み'),
|
2025-04-07 18:53:38 +02:00
|
|
|
);
|
2023-08-07 14:39:29 +09:30
|
|
|
}
|