예제 #1
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>
	<?php 
if ($buggy_videos) {
예제 #2
0
 *
 * @package Elgg videotizer, by iZAP Web Solutions.
 * @license GNU Public License version 3
 * @Contact iZAP Team "<*****@*****.**>"
 * @Founder Tarun Jangra "<*****@*****.**>"
 * @link http://www.izap.in/
 * 
 */
admin_gatekeeper();
$posted_array = get_input('izap');
if (is_array($posted_array)) {
    foreach ($posted_array as $key => $value) {
        if (is_integer($key)) {
            $guid = $key;
            break;
        }
    }
}
$queue_object = new izapQueue();
$video_to_be_deleted = $queue_object->get_from_trash($guid);
//Send posted comment to user who uploaded this video.
if ($posted_array['send_message_' . $guid] == 'yes') {
    notify_user($video_to_be_deleted[0]['owner_id'], $CONFIG->site_guid, elgg_echo('izap_videos:notifySub:video_deleted'), $posted_array['user_message_' . $guid]);
}
// delete data from trash
if (get_entity($guid)->delete()) {
    system_message(elgg_echo('izap_videos:adminSettings:deleted_from_trash'));
    izapTrigger_izap_videos();
}
forward($_SERVER['HTTP_REFERER']);
exit;
예제 #3
0
 *
 * @package Elgg videotizer, by iZAP Web Solutions.
 * @license GNU Public License version 3
 * @Contact iZAP Team "<*****@*****.**>"
 * @Founder Tarun Jangra "<*****@*****.**>"
 * @link http://www.izap.in/
 * 
 */
if ($vars['video']->canEdit()) {
    $DeleteEdit .= elgg_view("output/confirmlink", array('href' => $vars['url'] . "action/izapDelete?video_id=" . $vars['video']->getGUID(), 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('izap_videos:remove')));
    $DeleteEdit .= '&nbsp;&nbsp;';
    if ($vars['video']->converted == 'yes') {
        $DeleteEdit .= '<a href="' . $vars['url'] . 'pg/videos/edit/' . get_entity($vars['video']->container_guid)->username . '/' . $vars['video']->getGUID() . '">' . elgg_echo('izap_videos:edit') . '</a>';
    } else {
        $queue_object = new izapQueue();
        $trash_guid_array = $queue_object->get_from_trash($vars['video']->guid);
        if ($trash_guid_array) {
            $DeleteEdit .= elgg_echo("izap_videos:form:izapTrashedVideoMsg");
        } else {
            $DeleteEdit .= elgg_echo("izap_videos:form:izapEditMsg");
        }
    }
}
$DeleteEdit .= '&nbsp;&nbsp;';
$description = elgg_view('output/longtext', array('value' => $vars['video']->description));
$container_entity = get_entity($vars['video']->container_guid);
?>

<div class="contentWrapper">
  <div class="generic_comment">
    <!-- Owner icon -->