File: adminer.js.php

package info (click to toggle)
adminer 5.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,828 kB
  • sloc: php: 28,768; javascript: 1,188; xml: 107; makefile: 48; sh: 3
file content (27 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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)
 */
class AdminerDotJs extends Adminer\Plugin {
	const FILENAME = "adminer.js";

	function head($dark = null) {
		if (file_exists(self::FILENAME)) {
			echo Adminer\script_src(self::FILENAME . "?v=" . crc32(file_get_contents(self::FILENAME))), "\n";
		}
	}

	protected $translations = array(
		'cs' => array('' => 'Nahraje adminer.js'),
		'de' => array('' => 'Laden Sie adminer.js'),
		'pl' => array('' => 'Wczytuj adminer.js'),
		'ro' => array('' => 'Încarcă adminer.js'),
		'ja' => array('' => 'adminer.js を読込み'),
	);
}