Fixed : Admin area plugin files load

This commit is contained in:
Arslan Hassan 2011-02-21 16:14:11 +00:00
parent 430b03633d
commit f40d535555
4 changed files with 35 additions and 31 deletions

View file

@ -22,13 +22,7 @@
<div id="contentcolumn" class="{$contentcolumn_class}">
<div class="innertube" style="padding-right:10px">
{foreach from=$template_files item=file}
{if !is_array($file)}
{include file="$style_dir/$file" }
{else}
{assign var=folder value=$file.folder}
{assign var=inc_file value=$file.file}
{include file="$folder/$inc_file" }
{/if}
{include_template_file file=$file}
{/foreach}
</div>
</div>

View file

@ -1034,4 +1034,9 @@ CREATE TABLE IF NOT EXISTS `{tbl_prefix}video_files` (
`hq` enum('yes','no') CHARACTER SET latin1 NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
FULLTEXT KEY `src_bitrate` (`src_bitrate`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
ALTER TABLE `{tbl_prefix}video` ADD `video_password` VARCHAR( 255 ) NOT NULL AFTER `videokey` ;
ALTER TABLE `{tbl_prefix}video` ADD `video_users` TEXT NOT NULL AFTER `video_password`;
ALTER TABLE `{tbl_prefix}video` ADD `category_parents` TEXT NOT NULL AFTER `category` ;

View file

@ -2,12 +2,6 @@
href="{if !$ytcode}{$normal_vid_file}{else}api:{$ytcode}{/if}"
style="display:block;width:{$player_data.width}; height:{$player_data.height}"
id="the_Video_Player">
{if !$player_data.autoplay}
<div align="center" style="background-color:#000; height:100%; vertical-align:middle; position:relative">
<img src="{getThumb vdetails=$vdata num=big}" style=" height:100%" />
<img src="{$pak_player_url}/play.png" style="position:absolute; top:50%; left:50%; margin:-42px 0px 0px -42px; z-index:100"/>
</div>
{/if}
</a>
@ -89,7 +83,6 @@ flowplayer("the_Video_Player", "{$pak_player_url}/pakplayer{if $Cbucket->configs
},
canvas: {
backgroundGradient: "none",
backgroundColor: "#000000"
}
,
@ -104,9 +97,15 @@ flowplayer("the_Video_Player", "{$pak_player_url}/pakplayer{if $Cbucket->configs
scaling : 'fit',
{/if}
{literal}
autoPlay :true,
{if $player_data.autoplay}
autoPlay :true,
{else}
autoPlay : false,
{/if}
{literal}
onLastSecond: function()
{
if(next_item)
@ -120,9 +119,8 @@ flowplayer("the_Video_Player", "{$pak_player_url}/pakplayer{if $Cbucket->configs
playlists :
[
{
{/literal}
{ldelim}
{if $youtube}
url : 'api:{$ytcode}'
{else}
@ -175,5 +173,9 @@ updateEmbedCode(embedPlayerWidth,embedPlayerHeight,autoPlayEmbed);
{literal}
});
{/literal}
</script>
</script>
<a href="javascript:void(0)" onclick="$f('the_Video_Player').getScreen().css({backgroundColor:'#cccccc'});">Click me</a>
{/literal}

View file

@ -14,21 +14,24 @@ $userquery->perm_check('view_videos',true);
//Setting Sort
$sort = $_GET['sort'];
$child_ids = "";
$childs = $cbvid->get_sub_categories(mysql_clean($_GET['cat']));
$child_ids = array();
foreach($childs as $child)
if($_GET['cat'] && $_GET['cat']!='all')
{
$child_ids[] = $child['category_id'];
$subchilds = $childs = $cbvid->get_sub_categories($child['category_id']);
if($subchilds)
foreach($subchilds as $subchild)
$childs = $cbvid->get_sub_categories(mysql_clean($_GET['cat']));
$child_ids = array();
foreach($childs as $child)
{
$child_ids[] = $subchild['category_id'];
$child_ids[] = $child['category_id'];
$subchilds = $childs = $cbvid->get_sub_categories($child['category_id']);
if($subchilds)
foreach($subchilds as $subchild)
{
$child_ids[] = $subchild['category_id'];
}
}
$child_ids[] = mysql_clean($_GET['cat']);
}
$child_ids[] = mysql_clean($_GET['cat']);
$vid_cond = array('category'=>$child_ids,'date_span'=>$_GET['time'],'sub_cats');
switch($sort)