File size: 4.48Kb
<?php /* Smarty version Smarty3-RC3, created on 2011-09-19 02:20:14
compiled from "sys/file/ext.php" */ ?>
<?php /*%%SmartyHeaderCode:5995296484e76df1e1f3544-58021354%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'b9306eb308f64f0b9f03e9618fa9414fae0ffdf5' =>
array (
0 => 'sys/file/ext.php',
1 => 1316404684,
),
),
'nocache_hash' => '5995296484e76df1e1f3544-58021354',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_block_php')) include '/home/spiderwa/public_html/sys/smarty/plugins/block.php.php';
?><?php $_smarty_tpl->smarty->_tag_stack[] = array('php', array()); $_block_repeat=true; smarty_block_php(array(), null, $_smarty_tpl->smarty, $_block_repeat, $_smarty_tpl);while ($_block_repeat) { ob_start();?>
if(<?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='mp3')
{
echo '</div><div class="main">';
include 'sys/file/classAudioFile.php';
$mp = new AudioFile;
$mp->loadFile('files/<?php echo $_smarty_tpl->getVariable('file')->value['real'];?>
');
$mp->printSampleInfo();
//echo '<br/>';
}
elseif((<?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='mp4' || <?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='avi' || <?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='3gp' || <?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='flw') && extension_loaded('ffmpeg')){
$movie = new ffmpeg_movie($_SERVER['DOCUMENT_ROOT'].'/files/<?php echo $_smarty_tpl->getVariable('file')->value['real'];?>
');
$dl_s = $movie->getDuration();
$dl = $dl_s<60?$dl_s.' сек.':round($dl_s/60).' мин. '.round((round($dl_s/60)*60)-$dl_s).' сек';
$row = $movie->getFrameHeight().'x'.$movie->getFrameWidth();
echo '</div><div class="main"><strong>Video Information:</strong><br/>
Duration: '.$dl.'<br/>
Expansion: '.$row.'<br/>
Bitrate: '.round($movie->getBitRate()/1024).'Kbps<br/>
Codec: '.$movie->getVideoCodec().'<br/>';
if ( stristr($_SERVER['HTTP_USER_AGENT'], 'Firefox') ) $os=TRUE;
elseif ( stristr($_SERVER['HTTP_USER_AGENT'], 'Chrome') ) $os=TRUE;
elseif ( stristr($_SERVER['HTTP_USER_AGENT'], 'Safari') ) $os=TRUE;
elseif ( stristr($_SERVER['HTTP_USER_AGENT'], 'Opera') ) $os=TRUE;
elseif ( stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') ) $os=TRUE;
elseif ( stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0') ) $os=TRUE;
elseif ( stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.0') ) $os=TRUE;
if($os)echo '</div><div class="main"><a href="/view-<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
">Watch</a>';
}
elseif(<?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='jpg' || <?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='png' || <?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='gif' || <?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='bmp'){
list($w,$h) = getimagesize($_SERVER['DOCUMENT_ROOT'].'/files/<?php echo $_smarty_tpl->getVariable('file')->value['real'];?>
');
echo '<br/>Size: '.$w.'x'.$h.'</div>
<div class="main">Download:<br/>
<a href="/img.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
&w=128&h=160">128x160</a><br/>
<a href="/img.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
&w=128&h=128">128x128</a><br/>
<a href="/img.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
&w=176&h=208">176x208</a><br/>
<a href="/img.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
&w=176&h=220">176x220</a><br/>
<a href="/img.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
&w=240&h=320">240x320</a><br/>
<a href="/img.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
&w=352&h=416">352x416</a><br/>';
}
elseif(<?php echo $_smarty_tpl->getVariable('file')->value['ext'];?>
=='jar'){
include $_SERVER['DOCUMENT_ROOT'].'/sys/file/jar.php';
$jar = jar('<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
');
echo '<br/>
Developer: '.$jar[0].'<br/>
Version: '.$jar[1].'</div><div class="main"><a href="/jad.php?id=<?php echo $_smarty_tpl->getVariable('file')->value['id'];?>
">Download Jad</a>';
}
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_php(array(), $_block_content, $_smarty_tpl->smarty, $_block_repeat, $_smarty_tpl); } array_pop($_smarty_tpl->smarty->_tag_stack);?>