Example #1
0
	<?php 
    $i = 0;
    foreach ($queuedVideos as $queuedVideo) {
        $extension_length = strlen(izap_get_file_extension($queuedVideo['main_file']));
        $outputPath = substr($queuedVideo['main_file'], 0, '-' . ($extension_length + 1));
        $ORIGNAL_name = basename($queuedVideo['main_file']);
        $ORIGNAL_size = izapFormatBytes(filesize($queuedVideo['main_file']));
        $FLV_name = basename($outputPath . '_c.flv');
        if (file_exists($outputPath . '_c.flv')) {
            $FLV_size = izapFormatBytes(filesize($outputPath . '_c.flv'));
        } else {
            $FLV_size = '0 KB';
        }
        ?>
				<tr class="<?php 
        echo !$i && izapIsQueueRunning_izap_videos() ? 'queue_selected' : '';
        ?>
">
				<td>
					<?php 
        echo $ORIGNAL_name . '<br>' . $FLV_name;
        ?>
				</td>
				<td>
					<?php 
        echo $ORIGNAL_size . '<br>' . $FLV_size;
        ?>
				</td>
				<td>
				<?php 
        if ($queuedVideo['conversion'] != IN_PROCESS) {
Example #2
0
/**
 * iZAP Videos plugin by iionly
 * (based on version 3.71b of the original izap_videos plugin for Elgg 1.7)
 * Contact: iionly@gmx.de
 * https://github.com/iionly
 *
 * Original developer of the iZAP Videos plugin:
 * @package Elgg videotizer, by iZAP Web Solutions
 * @license GNU Public License version 2
 * @Contact iZAP Team "<*****@*****.**>"
 * @Founder Tarun Jangra "<*****@*****.**>"
 * @link http://www.izap.in/
 *
 */
$queueStatus = izapIsQueueRunning_izap_videos() ? elgg_echo('izap_videos:running') : elgg_echo('izap_videos:notRunning');
$buggy_videos_object = new izapQueue();
$buggy_videos = $buggy_videos_object->get_from_trash();
$main_url = elgg_get_site_url() . 'admin/administer_utilities/izap_videos?tab=recycle_bin';
?>

<form method="post" action="<?php 
echo elgg_add_action_tokens_to_url(elgg_get_site_url() . 'action/izap_videos/admin/recycle_delete');
?>
">
	<div>
		<h3 align="center">
			<?php 
echo elgg_echo('izap_videos:error_videos');
?>
		</h3>
Example #3
0
/**
 * This function triggers the queue
 *
 * @global <type> $CONFIG
 */
function izapTrigger_izap_videos()
{
    if (!izapIsQueueRunning_izap_videos()) {
        ini_set('max_execution_time', 0);
        ini_set('memory_limit', izapAdminSettings_izap_videos('izapMaxFileSize') + 100 . 'M');
        izapGetAccess_izap_videos();
        // get the complete access to the system
        izapRunQueue_izap_videos();
        izapRemoveAccess_izap_videos();
        // remove the access from the system
    }
}
Example #4
0
/**
 * this function triggers the queue
 *
 * @global <type> $CONFIG
 */
function izapTrigger_izap_videos()
{
    global $CONFIG;
    $PHPpath = izapGetPhpPath_izap_videos();
    if (!izapIsQueueRunning_izap_videos()) {
        if (izapIsWin_izap_videos()) {
            pclose(popen("start \"MyProcess\" \"cmd /C " . $PHPpath . " " . $CONFIG->pluginspath . "izap_videos/izap_convert_video.php izap web", "r"));
        } else {
            time();
            exec($PHPpath . ' ' . $CONFIG->pluginspath . 'izap_videos/izap_convert_video.php izap web > /dev/null 2>&1 &', $output);
        }
    }
}