<?php /* Smarty version 2.6.18, created on 2015-03-17 13:34:28
         compiled from /home/contohsolusitota/public_html/admin_area/styles/cbv2/layout/cb_mod_check.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'check_module_path', '/home/contohsolusitota/public_html/admin_area/styles/cbv2/layout/cb_mod_check.html', 15, false),array('function', 'get_binaries', '/home/contohsolusitota/public_html/admin_area/styles/cbv2/layout/cb_mod_check.html', 21, false),)), $this); ?>
<h2>Server Video Conversion Modules &amp; Tools</h2>

<p>
A brief test to check weather server modules exist or not and what are there versions and paths
</p>


<div class="cb_title">
	Modules and paths
</div>


<div class="cb_row font_12 font_ah">
  
   <?php echo check_module_path(array('path' => 'ffmpeg','get_path' => 'true','assign' => 'ffmpeg_status'), $this);?>

   <img src="<?php echo $this->_tpl_vars['imageurl']; ?>
/<?php if ($this->_tpl_vars['ffmpeg_status']['status'] == 'ok'): ?>tick.png<?php else: ?>alert.png<?php endif; ?>" 
   style="position:absolute"/><strong style="font-size:16px; margin-left:21px">FFMPEG</strong>
    <div style="color:#999">FFmpeg is used to covert videos from different versions to FLV , MP4 and many other formats. <a href="http://clip-bucket.com/ffmpeg">Learn more</a></div>
    
    <?php if ($this->_tpl_vars['ffmpeg_status']['status'] == 'ok'): ?>
	Version <strong><?php echo $this->_tpl_vars['ffmpeg_status']['version']; ?>
</strong> &#8226; Expected Path <strong><?php echo get_binaries(array('path' => 'ffmpeg','type' => 'server'), $this);?>
</strong>
    <?php else: ?>
    <strong>ffmpeg is not found</strong>
    	<?php if ($this->_tpl_vars['ffmpeg_status']['error']): ?>
        	<br /><span style="color:#e70000"><?php echo $this->_tpl_vars['ffmpeg_status']['error']; ?>
</span>
        <?php endif; ?>
    <?php endif; ?>

</div>


<div class="cb_row font_12 font_ah" style="margin-top:15px">
  
   <?php echo check_module_path(array('path' => 'php','get_path' => 'true','assign' => 'php_status'), $this);?>

   <img src="<?php echo $this->_tpl_vars['imageurl']; ?>
/<?php if ($this->_tpl_vars['php_status']['status'] == 'ok'): ?>tick.png<?php else: ?>alert.png<?php endif; ?>" 
   style="position:absolute"/><strong style="font-size:16px; margin-left:21px">PHP CLI</strong>
    <div style="color:#999">PHP CLI is used to peform video conversion in a background process. 
    <a href="http://php.net/manual/en/features.commandline.php">Learn more</a></div>
    
    <?php if ($this->_tpl_vars['php_status']['status'] == 'ok'): ?>
	Version <strong><?php echo $this->_tpl_vars['php_status']['version']; ?>
</strong> &#8226; Expected Path <strong><?php echo get_binaries(array('path' => 'php','type' => 'server'), $this);?>
</strong>
    <?php else: ?>
    <strong>php is not found</strong>
    	<?php if ($this->_tpl_vars['php_status']['error']): ?>
        	<br /><span style="color:#e70000"><?php echo $this->_tpl_vars['php_status']['error']; ?>
</span>
        <?php endif; ?>
    <?php endif; ?>

</div>



<div class="cb_row font_12 font_ah" style="margin-top:15px">
  
   <?php echo check_module_path(array('path' => 'flvtool2','get_path' => 'true','assign' => 'flvtool2_status'), $this);?>

   <img src="<?php echo $this->_tpl_vars['imageurl']; ?>
/<?php if ($this->_tpl_vars['flvtool2_status']['status'] == 'ok'): ?>tick.png<?php else: ?>alert.png<?php endif; ?>" 
   style="position:absolute"/><strong style="font-size:16px; margin-left:21px">FLVTool2</strong>
    <div style="color:#999">FLVTool2 is a tool to repair FLV files to make them streamable 
    <a href="http://docs.clip-bucket.com/clipbucket-docs/flvtool2">Learn more</a></div>
    
    <?php if ($this->_tpl_vars['flvtool2_status']['status'] == 'ok'): ?>
	Version <strong><?php echo $this->_tpl_vars['flvtool2_status']['version']; ?>
</strong> &#8226; Expected Path <strong><?php echo get_binaries(array('path' => 'flvtool2','type' => 'server'), $this);?>
</strong>
    <?php else: ?>
    <strong>flvtool2 is not found</strong>
    	<?php if ($this->_tpl_vars['flvtool2_status']['error']): ?>
        	<br /><span style="color:#e70000"><?php echo $this->_tpl_vars['flvtool2_status']['error']; ?>
</span>
        <?php endif; ?>
    <?php endif; ?>

</div>



<div class="cb_row font_12 font_ah" style="margin-top:15px">
  
   <?php echo check_module_path(array('path' => 'mp4box','get_path' => 'true','assign' => 'mp4box_status'), $this);?>

   <img src="<?php echo $this->_tpl_vars['imageurl']; ?>
/<?php if ($this->_tpl_vars['mp4box_status']['status'] == 'ok'): ?>tick.png<?php else: ?>alert.png<?php endif; ?>" 
   style="position:absolute"/><strong style="font-size:16px; margin-left:21px">MP4Box</strong>
    <div style="color:#999">MP4Box is a tool used to repair MP4 files to make them streamable
    <a href="http://docs.clip-bucket.com/clipbucket-docs/mp4box">Learn more</a></div>
    
    <?php if ($this->_tpl_vars['mp4box_status']['status'] == 'ok'): ?>
		Version 
        <?php if ($this->_tpl_vars['mp4box_status']['version']): ?>
        	<strong><?php echo $this->_tpl_vars['mp4box_status']['version']; ?>
</strong>
        <?php endif; ?> &#8226; Expected Path <strong><?php echo get_binaries(array('path' => 'mp4box','type' => 'server'), $this);?>
</strong>
    <?php else: ?>
    	<strong>Mp4box is not found</strong>
        <?php if ($this->_tpl_vars['mp4box_status']['error']): ?>
        	<br /><span style="color:#e70000"><?php echo $this->_tpl_vars['mp4box_status']['error']; ?>
</span>
        <?php endif; ?>
    <?php endif; ?>

</div>