[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
ppmi
/
assets
/
js
/
libs
/
ckeditor
/
samples
/
love
/
class
/
plugins
/
officeLive
/
[
Home
]
File: app.php
<?php class officeLivePlugin extends PluginBase{ function __construct(){ parent::__construct(); } public function regiest(){ $this->hookRegiest(array( 'user.commonJs.insert' => 'officeLivePlugin.echoJs' )); } public function echoJs($st,$act){ if($this->isFileExtence($st,$act)){ $this->echoFile('static/main.js'); } } public function index(){ if(substr($this->in['path'],0,4) == 'http'){ $path = $fileUrl = $this->in['path']; }else{ $path = _DIR($this->in['path']); $fileUrl = _make_file_proxy($path); if (!file_exists($path)) { show_tips(LNG('not_exists')); } } $config = $this->getConfig(); header('Location:'.$config['apiServer'].rawurlencode($fileUrl)); } }