You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
630 B
24 lines
630 B
<?php
|
|
|
|
class webodfPlugin extends PluginBase{
|
|
function __construct(){
|
|
parent::__construct();
|
|
}
|
|
public function regiest(){
|
|
$this->hookRegiest(array(
|
|
'user.commonJs.insert' => 'webodfPlugin.echoJs',
|
|
));
|
|
}
|
|
public function echoJs($st=false,$act=false){
|
|
if($this->isFileExtence($st,$act)){
|
|
$this->echoFile('static/main.js');
|
|
}
|
|
}
|
|
public function index(){
|
|
$path = $this->filePath($this->in['path']);
|
|
$fileUrl = _make_file_proxy($path);
|
|
$fileName = get_path_this(rawurldecode($this->in['path']));
|
|
$fileName.= ' - '.LNG('kod_name').LNG('kod_power_by');
|
|
include($this->pluginPath.'/php/template.php');
|
|
}
|
|
} |