Пример #1
0
 */
$queue = new izapQueue();
?>
<div class="elgg-module elgg-module-inline">
  <div class="elgg-body">
    <table class="elgg-table-alt">
      <tbody>
        <tr class="even">
          <td>
						<?php 
echo elgg_echo('admin:statistics:izap-videos-queue');
?>
          </td>
          <td>
						<?php 
echo $queue->check_process() > 0 ? elgg_echo('izap_videos:running') : elgg_echo('izap_videos:notRunning');
?>
          </td>
        </tr>        
        <tr class="odd">
          <td>
            <a href="<?php 
echo $vars['url'];
?>
pg/admin/statistics/izap-videos-queue">
							<?php 
echo elgg_echo('izap-videos:total_videos_in_queue');
?>
            </a>
          </td>
          <td>
Пример #2
0
/**
 * This function checks if the queue is running or not
 *
 * @return boolean true if yes or false if no
 * 
 * @version 5.0
 */
function izap_is_queue_running_izap_videos()
{
    $queue_object = new izapQueue();
    $numberof_process = $queue_object->check_process();
    if ($numberof_process > 0) {
        return true;
    } else {
        return false;
    }
}
Пример #3
0
/**
 * this function checks if the queue is running or not
 *
 * @return boolean TRUE if yes or FALSE if no
 */
function izapIsQueueRunning_izap_videos()
{
    // check for *nix machine. For windows, it is under development
    $queue_object = new izapQueue();
    $numberof_process = $queue_object->check_process();
    if ($numberof_process) {
        return TRUE;
    } else {
        return FALSE;
    }
}