예제 #1
0
<?php

/* 
 ***************************************************************
 | Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved.
 | @ Author : ArslanHassan										
 | @ Software : ClipBucket , © PHPBucket.com					
 ****************************************************************
*/
require '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
/* Assigning page and subpage */
if (!defined('MAIN_PAGE')) {
    define('MAIN_PAGE', 'Tool Box');
}
if (!defined('SUB_PAGE')) {
    define('SUB_PAGE', 'Server Modules Info');
}
$ffmpegVersion = check_ffmpeg("ffmpeg");
assign("ffmpegVersion", $ffmpegVersion);
$phpVersion = check_php_cli("php");
assign("phpVersion", $phpVersion);
$MP4BoxVersion = check_mp4box("MP4Box");
assign("MP4BoxVersion", $MP4BoxVersion);
$imagick_version = Imagick::getVersion();
$imagick_version_string = $imagick_version['versionString'];
assign("imagick_version", $imagick_version_string);
subtitle("ClipBucket Server Module Checker");
template_files("cb_mod_check.html");
display_it();
예제 #2
0
        // redirect any output
    } else {
        system($sync_options['ffmpeg'] . " 1>&2 /dev/null", $retval);
        // redirect any output
    }
    if ($retval == 127 or $retval == 9009) {
        return false;
    } else {
        return true;
    }
}
if (!check_mediainfo($sync_options)) {
    $warnings[] = "Metadata parsing disable because MediaInfo is not installed on the system, eg: '/usr/bin/mediainfo'.";
    $sync_options['metadata'] = false;
}
if (!check_ffmpeg($sync_options)) {
    $warnings[] = "Poster and Thumbnail creation disable because FFmpeg is not installed on the system, eg: '/usr/bin/ffmpeg'.";
    $sync_options['poster'] = false;
    $sync_options['thumb'] = false;
}
$template->assign('sync_warnings', $warnings);
$template->assign($sync_options);
// send config value to template
if (isset($_POST['submit']) and isset($_POST['postersec'])) {
    // Filter on existing poster
    $OVERWRITE = "";
    if (!$sync_options['posteroverwrite']) {
        $OVERWRITE = " AND `representative_ext` IS NULL ";
    }
    // Filter on selected ablum
    if ($sync_options['cat_id'] != 0) {