Esempio n. 1
0
      padding-top: 0;
      color: #999;
      background-color: #333333;
   }
</style>
   <!-- flowplayer javascript component -->
  <script type="text/javascript" src="dzz/player/mp4/flowplayer/flowplayer-3.2.12.min.js"></script>
</head>

<body><?php 
$path = dzzdecode($_GET['path']);
$patharr = explode(':', $path);
if ($patharr[0] == 'ftp') {
    $src = $_G['siteurl'] . DZZSCRIPT . '?mod=io&op=getStream&path=' . rawurldecode($_GET['path']);
} else {
    $src = IO::getFileUri($path);
    $src = str_replace('-internal.aliyuncs.com', '.aliyuncs.com', $src);
}
?>
<a href="<?php 
echo $src;
?>
" style="height:100%;width:100%;postion:absolute;left:0;top:0;overflow:hidden"  id="player"> </a> 
		<!-- this will install flowplayer inside previous A- tag. -->
		<script>
			//flowplayer("player", "flowplayer-3.2.16.swf");
   flowplayer("player", 
	{
	  // our Flash component
	  src: "./dzz/player/mp4/flowplayer/flowplayer-3.2.16.swf",
	  wmode: 'transparent'
Esempio n. 2
0
<?php

/*
 * @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');
}
$path = dzzdecode($_GET['path']);
$patharr = explode(':', $path);
if ($patharr[0] == 'ftp') {
    $stream = $_G['siteurl'] . DZZSCRIPT . '?mod=io&op=getStream&path=' . rawurldecode($_GET['path']);
} else {
    $stream = IO::getFileUri($path);
    $stream = str_replace('-internal.aliyuncs.com', '.aliyuncs.com', $stream);
}
//转向地址按您的office web app 要求改写;
header("location: http://view.officeapps.live.com/op/view.aspx?src=" . urlencode($stream));
Esempio n. 3
0
 public function getFileUri($path, $fop)
 {
     global $_G;
     if (strpos($path, 'attach::') === 0) {
         $attach = C::t('attachment')->fetch(intval(str_replace('attach::', '', $path)));
         $bz = io_remote::getBzByRemoteid($attach['remote']);
         if ($bz == 'dzz') {
             return $_G['siteurl'] . $_G['setting']['attachurl'] . $attach['attachment'];
         } else {
             return IO::getFileUri($bz . '/' . $attach['attachment'], $fop);
         }
         return IO::getFileUri($path);
     } elseif (strpos($path, 'dzz::') === 0) {
         return $_G['siteurl'] . $_G['setting']['attachurl'] . preg_replace("/^dzz::/", '', $path);
     } elseif (is_numeric($path)) {
         $icoarr = C::t('icos')->fetch_by_icoid($path);
         $bz = io_remote::getBzByRemoteid($icoarr['remote']);
         if ($bz == 'dzz') {
             if ($icoarr['type'] == 'video' || $icoarr['type'] == 'dzzdoc' || $icoarr['type'] == 'link') {
                 return $icoarr['url'];
             }
             return $_G['siteurl'] . $_G['setting']['attachurl'] . $icoarr['attachment'];
         } else {
             return IO::getFileUri($bz . '/' . $icoarr['attachment'], $fop);
         }
     }
     return '';
 }
Esempio n. 4
0
function getAttachUrl($attach, $absolute = false)
{
    global $_G;
    $attachment = '';
    $bz = io_remote::getBzByRemoteid($attach['remote']);
    if ($bz == 'dzz') {
        if ($absolute) {
            $attachment = $_G['setting']['attachdir'] . './' . $attach['attachment'];
        } else {
            $attachment = $_G['siteurl'] . $_G['setting']['attachurl'] . $attach['attachment'];
        }
        return $attachment;
    } elseif (strpos($bz, 'FTP') === 0) {
        return $_G['siteurl'] . DZZSCRIPT . '?mod=io&op=getStream&path=' . dzzencode($bz . '/' . $attach['attachment']);
    } else {
        return IO::getFileUri($bz . '/' . $attach['attachment']);
    }
}