Added : private.png
Added : Private Video
This commit is contained in:
parent
ce5ec3b7a8
commit
3cf42de7e2
5 changed files with 43 additions and 5 deletions
28
upload/admin_area/plugin.php
Normal file
28
upload/admin_area/plugin.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* File used to operate plugin files
|
||||
* this will include plugin file based on input folder and file
|
||||
*/
|
||||
|
||||
require'../includes/admin_config.php';
|
||||
$userquery->admin_login_check();
|
||||
$userquery->login_check('video_moderation');
|
||||
$pages->page_redir();
|
||||
|
||||
$file = get('file');
|
||||
$folder = get('folder');
|
||||
|
||||
if($folder && $file)
|
||||
{
|
||||
$file = PLUG_DIR.'/'.$folder.'/'.$file;
|
||||
if(file_exists($file))
|
||||
{
|
||||
require($file);
|
||||
display_it();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
header('location:plugin_manager.php?err=no_file');
|
||||
?>
|
BIN
upload/files/thumbs/private.png
Normal file
BIN
upload/files/thumbs/private.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
|
@ -388,7 +388,8 @@ class CBvideo extends CBCategory
|
|||
|
||||
$cond = "";
|
||||
if(!has_access('admin_access',TRUE))
|
||||
$cond .= " ".tbl("video.status")."='Successful' AND ".tbl("video.active")."='yes' ";
|
||||
$cond .= " ".tbl("video.status")."='Successful' AND
|
||||
".tbl("video.active")."='yes' ";
|
||||
else
|
||||
{
|
||||
if($params['active'])
|
||||
|
@ -400,8 +401,12 @@ class CBvideo extends CBCategory
|
|||
$cond .=" AND ";
|
||||
$cond .= " ".tbl("video.status")."='".$params['status']."'";
|
||||
}
|
||||
|
||||
|
||||
if($params['broadcast'])
|
||||
{
|
||||
if($cond!='')
|
||||
$cond .=" AND ";
|
||||
$cond .= " ".tbl("video.broadcast")."='".$params['public']."'";
|
||||
}
|
||||
}
|
||||
|
||||
//Setting Category Condition
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
<div class="vid_thumb">
|
||||
<a href="{videoLink vdetails=$video}"><img src="{getThumb vdetails=$video}" alt="{$video.title}" {ANCHOR place="video_thumb" data=$video} /></a>
|
||||
<span class="vid_time">{$video.duration|SetTime}</span>
|
||||
<img src="{$imageurl}/dot.gif" class="add_icon" onclick="add_quicklist(this,'{$video.videoid}')" title="Add {$video.title} to Quicklist" alt="Quicklist" />
|
||||
<img src="{$imageurl}/dot.gif" class="add_icon" onclick="add_quicklist(this,'{$video.videoid}')" title="Add {$video.title} to Quicklist" alt="Quicklist" />
|
||||
{if $video.broadcast=='private'}
|
||||
<img src="{$imageurl}/dot.gif" class="private_video" /> {/if}
|
||||
{ANCHOR place='in_video_thumb' data=$video}
|
||||
</div> <!--VID_THUMB END-->
|
||||
<div class="vid_info_wrap">
|
||||
<h2 class="title"><a href="{videoLink vdetails=$video}">{$video.title|truncate:30}</a></h2>
|
||||
|
@ -33,6 +36,7 @@
|
|||
<div class="vertical">
|
||||
<div class="the_vid_container">
|
||||
<div class="video_thumb">
|
||||
{ANCHOR place='in_video_thumb' data=$video}
|
||||
<label for="check_video_{$video.videoid}"><img src="{getThumb vdetails=$video}" width="110" height="66" border="0" /></label>
|
||||
{if $check_type=='array'}
|
||||
<input type="checkbox" name="check_video[]" id="check_video_{$video.videoid}" style="position:absolute; bottom:0px; left:0px" {if $check_this} checked="checked"{/if} value="{$video.videoid}" />
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
{if $display_type =='normal' || $display_type==''}
|
||||
<div class="watch_video_box">
|
||||
<div class="watch_video_box_thumb" align="center">
|
||||
<a href="{videoLink vdetails=$video}"><img src="{getThumb vdetails=$video}" width="82" height="48" border="0" {ANCHOR place="video_thumb" data=$video} /></a>
|
||||
<a href="{videoLink vdetails=$video}">
|
||||
<img src="{getThumb vdetails=$video}" width="82" height="48" border="0" {ANCHOR place="video_thumb" data=$video} /></a>
|
||||
<div class="duration">{$video.duration|SetTime}</div>
|
||||
<img src="{$imageurl}/dot.gif" class="add_icon" onclick="add_quicklist(this,'{$video.videoid}')" title="add {$video.title} to qucklist" alt="quicklist">
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue