PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

index.class.php
wget 'https://sme10.lists2.roe3.org/kodbox/plugins/officeViewer/controller/officeLive/index.class.php'
View Content
<?php 
class officeViewerOfficeLiveIndex extends Controller {
	public function __construct() {
		parent::__construct();
		$this->pluginName = 'officeViewerPlugin';
    }

    public function index(){
		$plugin = Action($this->pluginName);
        if(!$plugin->allowExt('ol')) {
			$plugin->showTips(LNG('officeViewer.main.invalidExt'), 'officeLive');
		}
        if(!$plugin->isNetwork()) {
			$msg = LNG('officeViewer.main.error') . LNG('officeViewer.main.needNetwork') . LNG('officeViewer.main.needDomain');
			$plugin->showTips($msg, 'officeLive');
		}
        $data = $plugin->_appConfig('ol');
		$fileUrl = $plugin->filePathLinkOut($this->in['path']);

		$link = $data['apiServer'].rawurlencode($fileUrl);
		Action($this->pluginName)->showWebOffice('ol', $link);
		// header('Location:'.$data['apiServer'].rawurlencode($fileUrl));
    }
}