13 lines
317 B
PHP
Executable File
13 lines
317 B
PHP
Executable File
<?php
|
|
class adminerPlugin extends PluginBase{
|
|
function __construct(){
|
|
parent::__construct();
|
|
}
|
|
public function regist(){
|
|
$this->hookRegist(array('user.commonJs.insert'=> 'adminerPlugin.echoJs'));
|
|
}
|
|
public function echoJs(){
|
|
if(_get($GLOBALS,'isRoot') != 1) return;
|
|
$this->echoFile('static/main.js');
|
|
}
|
|
} |