Files
DzzOffice/dzz/DPlayer/index.php

31 lines
941 B
PHP

<?php
/* @authorcode codestrings
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
if(!defined('IN_DZZ')) {
exit('Access Denied');
}
if($_GET['path']){
if (!$path = dzzdecode($_GET['path'])) {
showmessage('parameter_error');
}
$meta=IO::getMeta($path);
if(!$meta) showmessage(lang('file_not_exist'));
//判断有无查看权限
if(!perm_check::checkperm('read', $meta)) showmessage(lang('no_privilege'),dreferer());
if($meta['name']){
$navtitle=$meta['name'];
$navtitle=str_replace(strrchr($navtitle, "."),"",$navtitle);
}else{
$navtitle='视频';
}
$src=$_G['siteurl'].'index.php?mod=io&op=getStream&path='.$_GET['path'].'&filename='.$meta['name'];
}elseif($_GET['url']){
$src=$_GET['url'];
}
include template('index');
?>