Added : Section Enable/Disabled

Added : isSectionEnabled function
Update : Language Phrases
This commit is contained in:
Arslan Hassan 2011-01-03 11:02:54 +00:00
parent 942e83890c
commit a5d2ac2857
45 changed files with 486 additions and 146 deletions

View file

@ -2,4 +2,12 @@ INSERT into cb_config (name,value) VALUES
('load_upload_form','yes'), ('load_upload_form','yes'),
('load_remote_upload_form','yes'), ('load_remote_upload_form','yes'),
('load_embed_form','yes'), ('load_embed_form','yes'),
('load_link_video_form','yes'); ('load_link_video_form','yes'),
('groupsSection','yes'),
('videosSection','yes'),
('photosSection','yes'),
('homeSection','yes'),
('uploadSection','yes'),
('signupSection','yes')
('collectionsSection','yes'),
('channelsSection','yes');

View file

@ -17,6 +17,9 @@ if(@$_GET['msg']){
$msg = mysql_clean($_GET['msg']); $msg = mysql_clean($_GET['msg']);
} }
$opt_list = $Upload->load_upload_options();
assign('opt_list',$opt_list);
if(isset($_POST['update'])){ if(isset($_POST['update'])){
$configs = $Cbucket->configs; $configs = $Cbucket->configs;
@ -44,6 +47,8 @@ if(isset($_POST['update'])){
'anonym_comments', 'anonym_comments',
'channels_list_per_page', 'channels_list_per_page',
'channels_list_per_tab', 'channels_list_per_tab',
'channelsSection',
'collectionsSection',
'captcha_type', 'captcha_type',
'con_modules_type', 'con_modules_type',
'comments_captcha', 'comments_captcha',
@ -59,6 +64,7 @@ if(isset($_POST['update'])){
'embedUpload', 'embedUpload',
'email_verification', 'email_verification',
'enable_groups',
'ffmpegpath' , 'ffmpegpath' ,
'flvtool2path', 'flvtool2path',
@ -72,6 +78,7 @@ if(isset($_POST['update'])){
'grp_thumb_width', 'grp_thumb_width',
'grp_max_title', 'grp_max_title',
'grp_max_desc', 'grp_max_desc',
'groupsSection',
'hq_output', 'hq_output',
@ -108,6 +115,7 @@ if(isset($_POST['update'])){
'php_path', 'php_path',
'picture_url', 'picture_url',
'picture_upload', 'picture_upload',
'photosSection',
'quick_conv', 'quick_conv',
@ -141,6 +149,7 @@ if(isset($_POST['update'])){
'user_max_chr', 'user_max_chr',
'vid_categories', 'vid_categories',
'videosSection',
'videos_items_grp_page', 'videos_items_grp_page',
'videos_items_hme_page', 'videos_items_hme_page',
'videos_items_columns', 'videos_items_columns',
@ -166,6 +175,11 @@ if(isset($_POST['update'])){
); );
foreach($opt_list as $optl)
{
$rows[] = $optl['load_func'];
}
//Numeric Array //Numeric Array
$num_array = array( $num_array = array(
'anonymous_id', 'anonymous_id',

View file

@ -243,6 +243,14 @@ $(document).ready(function(){
<tr> <tr>
<td colspan="2" valign="top" class="settings_inner_title">Videos</td> <td colspan="2" valign="top" class="settings_inner_title">Videos</td>
</tr> </tr>
<tr>
<td>Enable video section</td>
<td><label for="videosSection"></label>
<select name="videosSection" id="videosSection">
<option value="yes" {if $row.videosSection!='no'} selected="selected"{/if}>Yes</option>
<option value="no" {if $row.videosSection=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr> <tr>
<td><label for="video_embed">Allow video embedding</label></td> <td><label for="video_embed">Allow video embedding</label></td>
<td><input name="video_embed" type="checkbox" id="video_embed" value="1" {if $row.video_embed=='1'} checked="checked"{/if} /></td> <td><input name="video_embed" type="checkbox" id="video_embed" value="1" {if $row.video_embed=='1'} checked="checked"{/if} /></td>
@ -259,9 +267,32 @@ $(document).ready(function(){
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr>
<td colspan="2" valign="top" class="settings_inner_title">Channels</td>
</tr>
<tr>
<td>Enable channels</td>
<td><label for="channelsSection"></label>
<select name="channelsSection" id="channelsSection">
<option value="yes" {if $row.channelsSection!='no'} selected="selected"{/if}>Yes</option>
<option value="no" {if $row.channelsSection=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr> <tr>
<td colspan="2" class="settings_inner_title">Groups</td> <td colspan="2" class="settings_inner_title">Groups</td>
</tr> </tr>
<tr>
<td>Enable group section</td>
<td><label for="groupsSection"></label>
<select name="groupsSection" id="groupsSection">
<option value="yes" {if $row.groupsSection!='no'} selected="selected"{/if}>Yes</option>
<option value="no" {if $row.groupsSection=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr> <tr>
<td>Group Thumb Height</td> <td>Group Thumb Height</td>
<td><input name="grp_thumb_height" type="text" id="grp_thumb_height" value="{$row.grp_thumb_height}" size="15" maxlength="5" /></td> <td><input name="grp_thumb_height" type="text" id="grp_thumb_height" value="{$row.grp_thumb_height}" size="15" maxlength="5" /></td>
@ -286,6 +317,17 @@ $(document).ready(function(){
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr>
<td colspan="2" valign="top" class="settings_inner_title">Photos</td>
</tr>
<tr>
<td>Enable photos</td>
<td><label for="photosSection"></label>
<select name="photosSection" id="photosSection">
<option value="yes" {if $row.photosSection!='no'} selected="selected"{/if}>Yes</option>
<option value="no" {if $row.photosSection=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -293,6 +335,14 @@ $(document).ready(function(){
<tr> <tr>
<td colspan="2" class="settings_inner_title">General</td> <td colspan="2" class="settings_inner_title">General</td>
</tr> </tr>
<tr>
<td>Enable Collections</td>
<td><label for="collectionsSection"></label>
<select name="collectionsSection" id="collectionsSection">
<option value="yes" {if $row.collectionsSection!='no'} selected="selected"{/if}>Yes</option>
<option value="no" {if $row.collectionsSection=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr> <tr>
<td>Allow ratings</td> <td>Allow ratings</td>
<td><input name="video_rating" type="checkbox" id="video_rating" value="1" {if $row.video_rating=='1'}checked="checked"{/if} /></td> <td><input name="video_rating" type="checkbox" id="video_rating" value="1" {if $row.video_rating=='1'}checked="checked"{/if} /></td>
@ -385,12 +435,6 @@ $(document).ready(function(){
<td valign="top">&nbsp;</td> <td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td> <td valign="top">&nbsp;</td>
</tr> </tr>
<tr>
<td valign="top">Allow video uploading</td>
<td valign="top"><label>
<input name="allow_upload" type="checkbox" id="allow_upload" value="yes" {if $row.allow_upload}checked="checked"{/if} />
</label></td>
</tr>
<tr> <tr>
<td valign="top">Allowed extensions</td> <td valign="top">Allowed extensions</td>
<td valign="top"><label> <td valign="top"><label>

View file

@ -20,6 +20,9 @@ if(!empty($mode))
{ {
case 'recent_viewed_vids': case 'recent_viewed_vids':
{ {
if(!isSectionEnabled('videos') || !$userquery->perm_check('view_videos',false,true) )
exit();
$videos = get_videos(array('limit'=>config('recently_viewed_limit'),'order'=>'last_viewed DESC')); $videos = get_videos(array('limit'=>config('recently_viewed_limit'),'order'=>'last_viewed DESC'));
if($videos) if($videos)
foreach($videos as $video) foreach($videos as $video)
@ -32,6 +35,8 @@ if(!empty($mode))
case 'most_viewed': case 'most_viewed':
{ {
if(!isSectionEnabled('videos') || !$userquery->perm_check('view_videos',false,true) )
exit();
$videos = get_videos(array('limit'=>config('videos_items_hme_page'),'order'=>'views DESC')); $videos = get_videos(array('limit'=>config('videos_items_hme_page'),'order'=>'views DESC'));
if($videos) if($videos)
foreach($videos as $video) foreach($videos as $video)
@ -44,6 +49,8 @@ if(!empty($mode))
case 'recently_added': case 'recently_added':
{ {
if(!isSectionEnabled('videos') || !$userquery->perm_check('view_videos',false,true) )
exit();
$videos = get_videos(array('limit'=>config('videos_items_hme_page'),'order'=>'date_added DESC')); $videos = get_videos(array('limit'=>config('videos_items_hme_page'),'order'=>'date_added DESC'));
if($videos) if($videos)
foreach($videos as $video) foreach($videos as $video)

View file

@ -8,6 +8,9 @@
Very Basic Contact Form Very Basic Contact Form
Edit it according to your own need Edit it according to your own need
*/ */
define("THIS_PAGE","contact");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$name = post('name'); $name = post('name');

View file

@ -10,6 +10,7 @@
*/ */
define("THIS_PAGE",'download'); define("THIS_PAGE",'download');
define("PARENT_PAGE",'videos');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->perm_check('download_video',true); $userquery->perm_check('download_video',true);

View file

@ -10,6 +10,8 @@
*/ */
define("THIS_PAGE",'download_photo'); define("THIS_PAGE",'download_photo');
define("PARENT_PAGE",'photos');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
//$userquery->perm_check('download_video',true); //$userquery->perm_check('download_video',true);
$pages->page_redir(); $pages->page_redir();

View file

@ -6,6 +6,10 @@
| @ Software : ClipBucket , © PHPBucket.com | @ Software : ClipBucket , © PHPBucket.com
************************************************************* *************************************************************
*/ */
define("THIS_PAGE",'edit_group');
define("PARENT_PAGE",'groups');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();
$udetails = $userquery->get_user_details(userid()); $udetails = $userquery->get_user_details(userid());

View file

@ -7,7 +7,8 @@
**************************************************************** ****************************************************************
*/ */
define("THIS_PAGE","edit_video"); define("THIS_PAGE","edit_photo");
define("PARENT_PAGE",'photos');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->login_check('edit_video'); $userquery->login_check('edit_video');

View file

@ -8,6 +8,7 @@
*/ */
define("THIS_PAGE","edit_video"); define("THIS_PAGE","edit_video");
define("PARENT_PAGE",'videos');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->login_check('edit_video'); $userquery->login_check('edit_video');

View file

@ -38,7 +38,7 @@ class ClipBucket
var $cbinfo = array(); var $cbinfo = array();
var $search_types = array('videos'=>'cbvid','groups'=>'cbgroup','users'=>'userquery'); var $search_types = array();
/** /**
* All Functions that are called * All Functions that are called
@ -438,12 +438,30 @@ class ClipBucket
function cbMenu($params=NULL) function cbMenu($params=NULL)
{ {
$this->head_menu();
if(!$params['tag'])
$params['tag'] = 'li';
if(!$params['class'])
$params['class'] = '';
if(!$params['getSubTab'])
$params['getSubTab'] = '';
if(!$params['parentTab'])
$params['parentTab'] = '';
if(!$params['selectedTab'])
$params['selectedTab'] = '';
{ {
$headMenu = $this->head_menu; $headMenu = $this->head_menu;
$output = ''; $output = '';
if(($params['tag'])) if(($params['tag']))
$output .= "<".$params['tag'].">"; $output .= "<".$params['tag'].">";
foreach($headMenu as $menu) foreach($headMenu as $menu)
{
if(isSectionEnabled($menu['this']))
{ {
$selected = current_page(array("page"=>$menu['this'])); $selected = current_page(array("page"=>$menu['this']));
@ -463,11 +481,15 @@ class ClipBucket
$output .= "<a href='".$menu['link']."'>"; $output .= "<a href='".$menu['link']."'>";
$output .= $menu['name']."</a>"; $output .= $menu['name']."</a>";
$output .= "</li>"; $output .= "</li>";
}
} }
if(($params['tag'])) if(($params['tag']))
$output .= "</".$params['tag'].">"; $output .= "</".$params['tag'].">";
if($params['echo'])
echo $output;
else
return $output; return $output;
} }
} }

View file

@ -70,13 +70,15 @@ class Collections extends CBCategory
global $userquery,$Cbucket; global $userquery,$Cbucket;
// Adding My Account Links // Adding My Account Links
if(isSectionEnabled('collections'))
$userquery->user_account[lang('Collections')] = array( $userquery->user_account[lang('Collections')] = array(
lang('Add New Collection') => "manage_collections.php?mode=add_new", lang('add_new_collection') => "manage_collections.php?mode=add_new",
lang('Manage Collections') => "manage_collections.php", lang('manage_collections') => "manage_collections.php",
lang('Favorite Collections') => "manage_collections.php?mode=favorite" lang('manage_favorite_collections') => "manage_collections.php?mode=favorite"
); );
// Adding Search Type // Adding Search Type
if(isSectionEnabled('collections'))
$Cbucket->search_types['collections'] = "cbcollection"; $Cbucket->search_types['collections'] = "cbcollection";
// Adding Collection links in Admin Area // Adding Collection links in Admin Area

View file

@ -22,6 +22,7 @@ class CBGroups extends CBCategory
*/ */
function CBGroups() function CBGroups()
{ {
global $Cbucket;
$this->cat_tbl = 'group_categories'; $this->cat_tbl = 'group_categories';
$this->gp_tbl = 'groups'; $this->gp_tbl = 'groups';
$this->gp_mem_tbl = 'group_members'; $this->gp_mem_tbl = 'group_members';
@ -40,6 +41,9 @@ class CBGroups extends CBCategory
$this->action->type_tbl = $this->gp_tbl; $this->action->type_tbl = $this->gp_tbl;
$this->action->type_id_field = 'group_id'; $this->action->type_id_field = 'group_id';
if(isSectionEnabled('groups'))
$Cbucket->search_types['groups'] = "cbgroup";
} }
/** /**

View file

@ -129,15 +129,17 @@ class CBPhotos
{ {
global $userquery,$Cbucket; global $userquery,$Cbucket;
// Search type // Search type
if(isSectionEnabled('photos'))
$Cbucket->search_types['photos'] = "cbphoto"; $Cbucket->search_types['photos'] = "cbphoto";
// My account links // My account links
$accountLinks = array(); $accountLinks = array();
$accountLinks = array( $accountLinks = array(
lang('Uploaded Photos') => "manage_photos.php", lang('manage_photos') => "manage_photos.php",
lang('Favorite Photos') => "manage_photos.php?mode=favorite", lang('manage_favorite_photos') => "manage_photos.php?mode=favorite",
lang('Orphan Photos') => "manage_photos.php?mode=orphan", lang('manage_orphan_photos') => "manage_photos.php?mode=orphan",
); );
if(isSectionEnabled('photos'))
$userquery->user_account[lang('Photos')] = $accountLinks; $userquery->user_account[lang('Photos')] = $accountLinks;
//Setting Cbucket links //Setting Cbucket links

View file

@ -53,7 +53,7 @@ class userquery extends CBCategory{
function init() function init()
{ {
global $sess; global $sess,$Cbucket;
$this->userid = $sess->get('userid'); $this->userid = $sess->get('userid');
$this->username = $sess->get('username'); $this->username = $sess->get('username');
@ -125,6 +125,9 @@ class userquery extends CBCategory{
define("USE_GAVATAR",config('gravatars') ? config('gravatars') : false); //Use Gavatar define("USE_GAVATAR",config('gravatars') ? config('gravatars') : false); //Use Gavatar
define('BACKGROUND_COLOR',config('background_color')); define('BACKGROUND_COLOR',config('background_color'));
if(isSectionEnabled('channels'))
$Cbucket->search_types['users'] = "userquery";
} }
/** /**
@ -2931,10 +2934,17 @@ class userquery extends CBCategory{
*/ */
function get_inner_channel_top_links($u) function get_inner_channel_top_links($u)
{ {
return array(lang('upload')=>array('link'=>$this->get_user_videos_link($u)), $channel_links = array();
lang('favorites')=>array('link'=>cblink(array('name'=>'user_favorites')).$u['username']),
lang('contacts')=>array('link'=>cblink(array('name'=>'user_contacts')).$u['username']), if(isSectionEnabled('videos'))
); {
$channel_links[lang('upload')] = array('link'=>$this->get_user_videos_link($u));
$channel_links[lang('favorites')] = array('link'=>cblink(array('name'=>'user_favorites')).$u['username']);
}
if(isSectionEnabled('channels'))
$channel_links[lang('contacts')] = array('link'=>cblink(array('name'=>'user_contacts')).$u['username']);
return $channel_links;
} }
/** /**
@ -2982,53 +2992,62 @@ class userquery extends CBCategory{
function my_account_links() function my_account_links()
{ {
$array = array
( $array[lang('account')] =
lang('account') =>array array
( (
lang('my_account') => 'myaccount.php', lang('my_account') => 'myaccount.php',
lang('ban_users') => 'edit_account.php?mode=ban_users', lang('ban_users') => 'edit_account.php?mode=ban_users',
lang('user_change_pass') =>'edit_account.php?mode=change_password', lang('user_change_pass') =>'edit_account.php?mode=change_password',
lang('user_change_email') =>'edit_account.php?mode=change_email', lang('user_change_email') =>'edit_account.php?mode=change_email',
lang('com_manage_subs') => 'edit_account.php?mode=subscriptions', lang('com_manage_subs') => 'edit_account.php?mode=subscriptions'
);
),
lang('user_channel_profiles') =>array $array[lang('user_channel_profiles')] = array
( (
lang('user_profile_settings') =>'edit_account.php', lang('user_profile_settings') =>'edit_account.php',
lang('change_avatar') => 'edit_account.php?mode=avatar_bg', lang('change_avatar') => 'edit_account.php?mode=avatar_bg',
lang('change_bg') => 'edit_account.php?mode=avatar_bg', lang('change_bg') => 'edit_account.php?mode=avatar_bg',
), );
lang('videos') =>array
if(isSectionEnabled('videos'))
$array[lang('videos')] = array
( (
lang('uploaded_videos')=>'manage_videos.php', lang('uploaded_videos')=>'manage_videos.php',
lang('user_fav_videos')=>'manage_videos.php?mode=favorites', lang('user_fav_videos')=>'manage_videos.php?mode=favorites',
), );
lang('groups') =>array
if(isSectionEnabled('groups'))
$array[lang('groups')] = array
( (
lang('grp_groups_title') =>'manage_groups.php', lang('grp_groups_title') =>'manage_groups.php',
lang('user_create_group') =>cblink(array('name'=>'create_group')), lang('user_create_group') =>cblink(array('name'=>'create_group')),
lang('grp_joined_groups')=>'manage_groups.php?mode=joined', lang('grp_joined_groups')=>'manage_groups.php?mode=joined',
), );
lang('playlists')=>array
if(isSectionEnabled('playlists'))
$array[lang('playlists')]=array
( (
lang('manage_playlists') =>'manage_playlists.php', lang('manage_playlists') =>'manage_playlists.php',
lang('video_playlists') =>'manage_playlists.php?mode=manage_video_playlist', lang('video_playlists') =>'manage_playlists.php?mode=manage_video_playlist',
), );
lang('messages') => array $array[lang('messages')] = array
( (
lang('inbox') => 'private_message.php?mode=inbox', lang('inbox') => 'private_message.php?mode=inbox',
lang('notifications') => 'private_message.php?mode=notification', lang('notifications') => 'private_message.php?mode=notification',
lang('sent') => 'private_message.php?mode=sent', lang('sent') => 'private_message.php?mode=sent',
lang('title_crt_new_msg')=> cblink(array('name'=>'compose_new')), lang('title_crt_new_msg')=> cblink(array('name'=>'compose_new')),
), );
lang('contacts') =>array
if(isSectionEnabled('channels'))
$array[lang('contacts')] = array
( (
lang('com_manage_contacts') => 'manage_contacts.php?mode=manage', lang('com_manage_contacts') => 'manage_contacts.php?mode=manage',
lang('add_contact_list') => 'manage_contacts.php?mode=new_group', lang('add_contact_list') => 'manage_contacts.php?mode=new_group',
)
); );
if(count($this->user_account)>0) if(count($this->user_account)>0)
$array = array_merge($array,$this->user_account); $array = array_merge($array,$this->user_account);

View file

@ -36,11 +36,15 @@ class CBvideo extends CBCategory
*/ */
function init() function init()
{ {
global $Cbucket;
$this->cat_tbl = 'video_categories'; $this->cat_tbl = 'video_categories';
$this->section_tbl = 'video'; $this->section_tbl = 'video';
$this->use_sub_cats = TRUE; $this->use_sub_cats = TRUE;
$this->init_actions(); $this->init_actions();
$this->init_collections(); $this->init_collections();
if(isSectionEnabled('videos'))
$Cbucket->search_types['videos'] = "cbvid";
} }
/** /**
@ -828,6 +832,7 @@ class CBvideo extends CBCategory
*/ */
function init_search() function init_search()
{ {
$this->search = new cbsearch; $this->search = new cbsearch;
$this->search->db_tbl = "video"; $this->search->db_tbl = "video";
$this->search->columns =array( $this->search->columns =array(

View file

@ -50,76 +50,18 @@ if(!@$in_bg_cron)
require_once('functions.php'); require_once('functions.php');
check_install(); check_install();
require_once('dbconnect.php'); require_once('dbconnect.php');
require_once('classes/pages.class.php'); require_once('classes/ClipBucket.class.php');
require_once('classes/my_queries.class.php');
require_once('classes/actions.class.php'); require_once('classes/actions.class.php');
require_once('classes/category.class.php'); require_once('classes/category.class.php');
require_once('classes/search.class.php');
require_once('classes/my_queries.class.php');
require_once('classes/user.class.php'); require_once('classes/user.class.php');
require_once('classes/calcdate.class.php');
require_once('classes/signup.class.php');
require_once('classes/image.class.php');
require_once('classes/upload.class.php');
require_once('classes/ads.class.php');
require_once('classes/form.class.php');
require_once('classes/ClipBucket.class.php');
require_once('classes/plugin.class.php');
require_once('classes/errorhandler.class.php');
require_once('classes/lang.class.php'); require_once('classes/lang.class.php');
require_once('classes/session.class.php'); require_once('classes/pages.class.php');
require_once('classes/log.class.php');
require_once('classes/swfObj.class.php');
require_once('classes/image.class.php');
require_once('classes/groups.class.php');
require_once('classes/video.class.php');
require_once('classes/player.class.php');
require_once('classes/cbemail.class.php');
require_once('classes/pm.class.php');
require_once('classes/cbpage.class.php');
require_once('classes/reindex.class.php');
require_once('classes/collections.class.php');
require_once('classes/photos.class.php');
//Adding Gravatar
require_once('classes/gravatar.class.php');
require_once 'languages.php';
$pages = new pages();
$myquery = new myquery(); $myquery = new myquery();
$userquery = new userquery();
$calcdate = new CalcDate();
$signup = new signup();
$Upload = new Upload();
$cbgroup = new CBGroups();
$adsObj = new AdsManager();
$formObj = new formObj();
$ClipBucket = $Cbucket = new ClipBucket();
$row = $myquery->Get_Website_Details(); $row = $myquery->Get_Website_Details();
$cbplugin = new CBPlugin();
$eh = new EH();
$lang_obj = new language;
$sess = new Session();
$cblog = new CBLogs();
$imgObj = new ResizeImage();
$cbvideo = $cbvid = new CBvideo();
$cbplayer = new CBPlayer();
$cbemail = new CBEmail();
$cbsearch = new CBSearch();
$cbpm = new cb_pm();
$cbpage = new cbpage();
$cbindex = new CBreindex();
$cbcollection = new Collections();
$cbphoto = new CBPhotos();
require 'defined_links.php';
@include("clipbucket.php");
$Cbucket->cbinfo = array("version"=>VERSION,"state"=>STATE,"rev"=>REV,"release_date"=>RELEASED);
//Holds Advertisment IDS that are being Viewed
$ads_array = array();
define('DEBUG_LEVEL', 2); define('DEBUG_LEVEL', 2);
@ -156,6 +98,101 @@ switch(DEBUG_LEVEL)
} }
} }
$pages = new pages();
$ClipBucket = $Cbucket = new ClipBucket();
define('BASEDIR',$Cbucket->BASEDIR);
if(!file_exists(BASEDIR.'/index.php'))
die('Basedir is incorrect, please set the correct basedir value in \'config\' table');
$baseurl = $row['baseurl'];
//Removing www. as it effects SEO and updating Config
$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
if(count($matches)>0)
{
$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
}
//define('BASEURL',baseurl(BACK_END));
define('BASEURL',$baseurl);
$userquery = new userquery();
$lang_obj = new language;
$LANG = $lang_obj->lang_phrases('file');
require_once('classes/search.class.php');
require_once('classes/calcdate.class.php');
require_once('classes/signup.class.php');
require_once('classes/image.class.php');
require_once('classes/upload.class.php');
require_once('classes/ads.class.php');
require_once('classes/form.class.php');
require_once('classes/plugin.class.php');
require_once('classes/errorhandler.class.php');
require_once('classes/session.class.php');
require_once('classes/log.class.php');
require_once('classes/swfObj.class.php');
require_once('classes/image.class.php');
require_once('classes/groups.class.php');
require_once('classes/video.class.php');
require_once('classes/player.class.php');
require_once('classes/cbemail.class.php');
require_once('classes/pm.class.php');
require_once('classes/cbpage.class.php');
require_once('classes/reindex.class.php');
require_once('classes/collections.class.php');
require_once('classes/photos.class.php');
//Adding Gravatar
require_once('classes/gravatar.class.php');
require_once 'languages.php';
$calcdate = new CalcDate();
$signup = new signup();
$Upload = new Upload();
$cbgroup = new CBGroups();
$adsObj = new AdsManager();
$formObj = new formObj();
$cbplugin = new CBPlugin();
$eh = new EH();
$sess = new Session();
$cblog = new CBLogs();
$imgObj = new ResizeImage();
$cbvideo = $cbvid = new CBvideo();
$cbplayer = new CBPlayer();
$cbemail = new CBEmail();
$cbsearch = new CBSearch();
$cbpm = new cb_pm();
$cbpage = new cbpage();
$cbindex = new CBreindex();
$cbcollection = new Collections();
$cbphoto = new CBPhotos();
require 'defined_links.php';
@include("clipbucket.php");
$Cbucket->cbinfo = array("version"=>VERSION,"state"=>STATE,"rev"=>REV,"release_date"=>RELEASED);
//Holds Advertisment IDS that are being Viewed
$ads_array = array();
if(phpversion() < '5.2.0') if(phpversion() < '5.2.0')
{ {
require_once($Cbucket->BASEDIR.'/includes/classes/Services_JSON.php'); require_once($Cbucket->BASEDIR.'/includes/classes/Services_JSON.php');
@ -203,22 +240,8 @@ if(phpversion() < '5.2.0')
define('VIDEO_EMBED',$row['video_embed']); define('VIDEO_EMBED',$row['video_embed']);
define('BASEDIR',$Cbucket->BASEDIR);
if(!file_exists(BASEDIR.'/index.php'))
die('Basedir is incorrect, please set the correct basedir value in \'config\' table');
$baseurl = $row['baseurl'];
//Removing www. as it effects SEO and updating Config
$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
if(count($matches)>0)
{
$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
}
//define('BASEURL',baseurl(BACK_END));
define('BASEURL',$baseurl);
define('TEMPLATEFOLDER','styles'); //Template Folder Name, usually STYLES define('TEMPLATEFOLDER','styles'); //Template Folder Name, usually STYLES
define('STYLES_DIR',BASEDIR.'/'.TEMPLATEFOLDER); define('STYLES_DIR',BASEDIR.'/'.TEMPLATEFOLDER);
@ -390,7 +413,7 @@ if(phpversion() < '5.2.0')
Assign('video_embed',$row['video_embed']); Assign('video_embed',$row['video_embed']);
$LANG = $lang_obj->lang_phrases('file');
$ClipBucket->upload_opt_list = array $ClipBucket->upload_opt_list = array
@ -500,6 +523,8 @@ $Smarty->register_function('embedCodes','photo_embed_codes');
$Smarty->register_function('DownloadButtonP','photo_download_button'); $Smarty->register_function('DownloadButtonP','photo_download_button');
$Smarty->register_function('loadPhotoUploadForm','loadPhotoUploadForm'); $Smarty->register_function('loadPhotoUploadForm','loadPhotoUploadForm');
$Smarty->register_function('cbMenu','cbMenu');
$Smarty->register_modifier('SetTime','SetTime'); $Smarty->register_modifier('SetTime','SetTime');
$Smarty->register_modifier('getname','getname'); $Smarty->register_modifier('getname','getname');
$Smarty->register_modifier('getext','getext'); $Smarty->register_modifier('getext','getext');

View file

@ -5,8 +5,12 @@ Config.Inc.php
define("FRONT_END",TRUE); define("FRONT_END",TRUE);
define("BACK_END",FALSE); define("BACK_END",FALSE);
if(!defined('PARENT_PAGE'))
define("PARENT_PAGE","home");
include('common.php'); include('common.php');
define('TEMPLATEDIR',BASEDIR.'/'.TEMPLATEFOLDER.'/'.TEMPLATE); define('TEMPLATEDIR',BASEDIR.'/'.TEMPLATEFOLDER.'/'.TEMPLATE);
define('TEMPLATEURL',BASEURL.'/'.TEMPLATEFOLDER.'/'.TEMPLATE); define('TEMPLATEURL',BASEURL.'/'.TEMPLATEFOLDER.'/'.TEMPLATE);
define('LAYOUT',TEMPLATEDIR.'/layout'); define('LAYOUT',TEMPLATEDIR.'/layout');
@ -49,4 +53,6 @@ if($row['closed'] == 1 && THIS_PAGE!='ajax' && !$in_bg_cron)
//Configuring Uploader //Configuring Uploader
uploaderDetails(); uploaderDetails();
isSectionEnabled(PARENT_PAGE,true);
?> ?>

View file

@ -3695,6 +3695,12 @@
return $Cbucket->head_menu($params); return $Cbucket->head_menu($params);
} }
function cbMenu($params=NULL)
{
global $Cbucket;
return $Cbucket->cbMenu($params);
}
/** /**
* FUnction used to get foot menu * FUnction used to get foot menu
*/ */
@ -4781,4 +4787,36 @@
//Calling Custom Functions //Calling Custom Functions
cb_call_functions('uploaderDetails'); cb_call_functions('uploaderDetails');
} }
/**
* Function isSectionEnabled
* This function used to check weather INPUT section is enabled or not
*/
function isSectionEnabled($input,$restrict=false)
{
global $Cbucket;
$section = $Cbucket->configs[$input.'Section'];
if(!$restrict)
{
if($section =='yes')
return true;
else
return false;
}else
{
if($section =='yes')
{
return true;
}else
{
template_files('blocked.html');
display_it();
exit();
}
}
}
?> ?>

File diff suppressed because one or more lines are too long

View file

@ -8,6 +8,8 @@
*/ */
define("THIS_PAGE",'manage_collections'); define("THIS_PAGE",'manage_collections');
define("PARENT_PAGE","collections");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();
$udetails = $userquery->get_user_details(userid()); $udetails = $userquery->get_user_details(userid());

View file

@ -7,6 +7,9 @@
****************************************************************** ******************************************************************
*/ */
define("THIS_PAGE",'manage_channels');
define("PARENT_PAGE","channels");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();
$udetails = $userquery->get_user_details(userid()); $udetails = $userquery->get_user_details(userid());

View file

@ -7,7 +7,8 @@
**************************************************************** ****************************************************************
*/ */
define("THIS_PAGE",'manage_videos'); define("THIS_PAGE",'manage_groups');
define("PARENT_PAGE","groups");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();

View file

@ -8,7 +8,7 @@
*/ */
define("THIS_PAGE",'manage_photos'); define("THIS_PAGE",'manage_photos');
define("PARENT_PAGE","photos");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();
$udetails = $userquery->get_user_details(userid()); $udetails = $userquery->get_user_details(userid());

View file

@ -7,6 +7,8 @@
* @License : Attribution Assurance License -- http://www.opensource.org/licenses/attribution.php * @License : Attribution Assurance License -- http://www.opensource.org/licenses/attribution.php
*/ */
define("THIS_PAGE",'manage_playlists');
define("PARENT_PAGE",'videos');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();

View file

@ -8,6 +8,7 @@
*/ */
define("THIS_PAGE",'manage_videos'); define("THIS_PAGE",'manage_videos');
define("PARENT_PAGE","videos");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();

View file

@ -9,7 +9,7 @@
*/ */
define("THIS_PAGE","photo_upload"); define("THIS_PAGE","photo_upload");
define("PARENT_PAGE","photo_upload"); define("PARENT_PAGE","upload");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$userquery->logincheck(); $userquery->logincheck();

View file

@ -61,8 +61,17 @@ flowplayer("the_Video_Player", "{$pak_player_url}/pak_player{if $Cbucket->config
{literal} {literal}
plugins: { plugins: {
controls: { controls: {
{/literal}
{if $pakconfigs}
{foreach from=$pakconfigs item=value key=config}
{$config} : "{$value.default}",
{/foreach}
{else}
background: "url("+pakplayer_path+"/bg.png) repeat", background: "url("+pakplayer_path+"/bg.png) repeat",
url: "pak_player.controls.swf", url: "pak_player.controls.swf",
{/if}
{literal}
}, },
{/literal} {/literal}

View file

@ -1,17 +1,40 @@
<h2>Pakplayer License</h2><br /> <h2>Pakplayer License</h2><br />
<div> <div id="tabbed_div" class="clearfix">
<div class="main_page_div">
<div style="width:490px; margin-right:10px; float:left">
<form name="subs_config" action="" method="post"> <div id="something">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block"> <div id="picker"></div>
</div>
<form name="subs_config" action="" method="post"><fieldset class="fieldset" style="border:none">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr> <tr>
<td width="301" valign="top"><strong>Please enter your license here</strong></td> <td width="250" align="left" valign="top">Pakplayer license</td>
<td width="813" valign="top"><input name="pak_license" type="text" id="pak_license" value="{$configs.pak_license}" /></td> <td width="250" valign="top"><input name="pak_license" type="text" id="pak_license" value="{$configs.pak_license}" size="50" /></td>
</tr>
{foreach from=$pakconfigs item=config key=name}
<tr>
<td valign="top">{$config.title}</td>
<td valign="top">
<div style="position:relative">
<input type="text" value="{$config.default}" size="50" {if $config.isColor}class="colorPicker" style="background-color:{$config.default}" {/if}/>
</div>
</td>
</tr>
{/foreach}
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td valign="top"><input type="submit" name="update" id="update" value="Update" class="button" /></td> <td valign="top"><input type="submit" name="update" id="update" value="Update" class="button" /></td>
<td valign="top">&nbsp;</td> <td valign="top">&nbsp;</td>
</tr> </tr>
</table> </table></fieldset>
</form> </form>
</div> </div>
<div style="width:520px; margin-left:5px; float:left">
{FlashPlayer width="520" height="300"}
</div>
<div class="clearfix"></div></div></div>

View file

@ -1,6 +1,39 @@
<?php <?php
//Player Control settings
$pakconfigs = array
(
'bufferColor' => array("default"=>"#75dc18","type" => "textfield" , 'title' => 'Buffer Color','isColor'=>true),
'backgroundGradient' => array("default"=>"high","type" => "textfield" , 'title' => 'Background Gradient',),
'backgroundColor' => array("default"=>"#222222","type" => "textfield" , 'title' => 'Background Color','isColor'=>true),
'timeBgColor' => array("default"=>"#222222","type" => "textfield" , 'title' => 'Time bgcolor','isColor'=>true),
'autoHide' => array("default"=>"never","type" => "textfield" , 'title' => 'Auto hide'),
'volumeColor' => array("default"=>"#18dc73","type" => "textfield" , 'title' => 'Volume color','isColor'=>true),
'borderRadius' => array("default"=>"10","type" => "textfield" , 'title' => 'Border radius'),
'sliderColor' => array("default"=>"#e3bad0","type" => "textfield" , 'title' => 'Slider color','isColor'=>true),
'tooltipColor' => array("default"=>"#000000","type" => "textfield" , 'title' => 'Tooltip Color','isColor'=>true),
'timeColor' => array("default"=>"#ffffff","type" => "textfield" , 'title' => 'Time color','isColor'=>true),
'buttonOverColor' => array("default"=>"#e3bcba","type" => "textfield" , 'title' => 'Button over color','isColor'=>true),
'timeBorder' => array("default"=>"0px solid rgba(0, 0, 0, 0.3)","type" => "textfield" , 'title' => 'Time border','isGradient'=>true),
'progressColor' => array("default"=>"#babfe3","type" => "textfield" , 'title' => 'Progress color','isColor'=>true),
'buttonColor' => array("default"=>"#f6f0c6","type" => "textfield" , 'title' => 'Button color','isColor'=>true),
'sliderBorder' => array("default"=>"1px solid rgba(128, 128, 128, 0.7)","type" => "textfield" , 'title' => 'Slider Border','isGradient'=>true),
'timeSeparator' => array("default"=>" ","type" => "textfield" , 'title' => 'Time separator'),
'tooltipTextColor' => array("default"=>"#ffffff","type" => "textfield" , 'title' => 'Tooltip text color','isColor'=>true),
'sliderGradient' => array("default"=>"none","type" => "textfield" , 'title' => 'Slider Gradient'),
'bufferGradient' => array("default"=>"none","type" => "textfield" , 'title' => 'Buffer Gradient'),
'volumeBorder' => array("default"=>"1px solid rgba(128, 128, 128, 0.7)","type" => "textfield", 'title' => 'Volume Border' ,'isGradient'=>true),
'progressGradient' => array("default"=>"none","type" => "textfield" , 'title' => 'Progress Gradient'),
'volumeSliderGradient' => array("default"=>"none","type" => "textfield" , 'title' => 'Volume Slider Gradient'),
'volumeSliderColor' => array("default"=>"#f00023","type" => "textfield" , 'title' => 'Volume Slider Color','isColor'=>true),
'durationColor' => array("default"=>"#bae3d0","type" => "textfield" , 'title' => 'Duration Color','isColor'=>true),
);
assign('pakconfigs',$pakconfigs);
if(isset($_POST['update'])) if(isset($_POST['update']))
{ {
$license = $_POST['pak_license']; $license = $_POST['pak_license'];
@ -9,6 +42,9 @@ if(isset($_POST['update']))
} }
assign("configs",$Cbucket->get_configs()); assign("configs",$Cbucket->get_configs());
$Cbucket->add_admin_header(PLUG_DIR.'/pakplayer/header.html');
template_files('pakplayer.html',PAKPLAYER_PLUG_DIR.'/admin/'); template_files('pakplayer.html',PAKPLAYER_PLUG_DIR.'/admin/');
?> ?>

View file

@ -14,12 +14,22 @@ header ("Content-type: text/xml; charset=utf-8");
echo '<?xml version=\'1.0\' encoding=\'UTF-8\'?>'."\n"; echo '<?xml version=\'1.0\' encoding=\'UTF-8\'?>'."\n";
$limit = 20; $limit = 20;
$page = $_GET['page'];
if($page<1 || !is_numeric )
$page = 1;
if($page)
{
$from = ($page-1)*$limit;
$limit = "$from,$limit";
}
$mode = $_GET['mode']; $mode = $_GET['mode'];
switch($mode) switch($mode)
{ {
case 'recent': case 'recent':
default: default:
{ {echo $limit;
$videos = get_videos(array('limit'=>$limit)); $videos = get_videos(array('limit'=>$limit));
$title = "Recently Added Videos"; $title = "Recently Added Videos";
} }
@ -27,6 +37,7 @@ switch($mode)
case 'views': case 'views':
{ {
$videos = get_videos(array('limit'=>$limit,'order'=>'views DESC')); $videos = get_videos(array('limit'=>$limit,'order'=>'views DESC'));
$title = "Most Viewed Videos"; $title = "Most Viewed Videos";
} }

View file

@ -13,6 +13,11 @@ $pages->page_redir();
$page = mysql_clean($_GET['page']); $page = mysql_clean($_GET['page']);
$type = mysql_clean($_GET['type']) ; $type = mysql_clean($_GET['type']) ;
$type = $type ? $type : 'videos'; $type = $type ? $type : 'videos';
$chkType = $type;
//Checking if search for specific section is allowed or not
if($type=='users') $chkType = 'channels';
isSectionEnabled($chkType,true);
$search = cbsearch::init_search($type); $search = cbsearch::init_search($type);
$search->key = mysql_clean($_GET['query']); $search->key = mysql_clean($_GET['query']);

View file

@ -0,0 +1,10 @@
<div style="padding:10px"><h2>Content you are trying to access is blocked</h2>
<p>This content is blocked by website adminstrator, there could be following possible reasons</p>
<ul>
<li>You are not logged in or you do not have previliges to access this page</li>
<li>Website adminstrator has completely disabled this section</li>
<li>Content is removed by administrator</li>
<li>You have landed on planet "Pandora" </li>
</ul>
<p>Please contact website adminstartor to resolve this issue.</p>
</div>

View file

@ -17,14 +17,20 @@
{assign var=leave_link value=$cbgroup->group_opt_link($group,'leave')} {assign var=leave_link value=$cbgroup->group_opt_link($group,'leave')}
{if $leave_link}<li>{$leave_link}</li>{/if} {if $leave_link}<li>{$leave_link}</li>{/if}
{if isSectionEnabled('videos')}
{assign var=add_videos_link value=$cbgroup->group_opt_link($group,'add_videos')} {assign var=add_videos_link value=$cbgroup->group_opt_link($group,'add_videos')}
{if $add_videos_link}<li>{$add_videos_link}</li>{/if} {if $add_videos_link}<li>{$add_videos_link}</li>{/if}
{/if}
{if isSectionEnabled('videos')}
{assign var=manage_videos_link value=$cbgroup->group_opt_link($group,'manage_videos')} {assign var=manage_videos_link value=$cbgroup->group_opt_link($group,'manage_videos')}
{if $manage_videos_link}<li>{$manage_videos_link}</li>{/if} {if $manage_videos_link}<li>{$manage_videos_link}</li>{/if}
{/if}
{if isSectionEnabled('channels')}
{assign var=manage_members_link value=$cbgroup->group_opt_link($group,'manage_members')} {assign var=manage_members_link value=$cbgroup->group_opt_link($group,'manage_members')}
{if $manage_members_link}<li>{$manage_members_link}</li>{/if} {if $manage_members_link}<li>{$manage_members_link}</li>{/if}
{/if}
{assign var=edit_group_link value=$cbgroup->group_opt_link($group,'edit_group')} {assign var=edit_group_link value=$cbgroup->group_opt_link($group,'edit_group')}
{if $edit_group_link}<li>{$edit_group_link}</li>{/if} {if $edit_group_link}<li>{$edit_group_link}</li>{/if}
@ -43,8 +49,12 @@
<div class="group_detail_tabs clearfix"> <div class="group_detail_tabs clearfix">
<ul> <ul>
<li class="selected" onclick="get_group_info('#info',this)">{lang code='info'}</li> <li class="selected" onclick="get_group_info('#info',this)">{lang code='info'}</li>
{if isSectionEnabled('channels')}
<li onclick="get_group_info('#members',this)">{lang code='members'}</li> <li onclick="get_group_info('#members',this)">{lang code='members'}</li>
{/if}
{if isSectionEnabled('videos')}
<li onclick="get_group_info('#videos',this)">{lang code='videos'}</li> <li onclick="get_group_info('#videos',this)">{lang code='videos'}</li>
{/if}
<li onclick="get_group_info('#flag_group',this); $('#flag_item').slideDown()">{lang code='report_this'}</li> <li onclick="get_group_info('#flag_group',this); $('#flag_item').slideDown()">{lang code='report_this'}</li>
</ul> </ul>

View file

@ -107,7 +107,12 @@ var mid = {$smarty.get.mid};
if(optionSelectedValue) if(optionSelectedValue)
window.location = "?set_site_lang="+optionSelectedValue; window.location = "?set_site_lang="+optionSelectedValue;
}); });
{/literal}
{if isSectionEnabled('videos')}
get_video('recent_viewed_vids','#index_vid_container'); get_video('recent_viewed_vids','#index_vid_container');
{/if}
{literal}
}); });

View file

@ -43,12 +43,7 @@
<div class="top_tabs clearfix"> <div class="top_tabs clearfix">
<ul> <ul>
{head_menu assign='headmenu'} {cbMenu echo='yes'}
{foreach from=$headmenu item=hm}
{if $hm.name!=''}
<li><a href="{$hm.link}" {current_page page=$hm.this} {if $hm.target} target="{$hm.target}"{/if} {if $hm.onclick} onclick="{$hm.onclick}"{/if}>{$hm.name}</a></li>
{/if}
{/foreach}
</ul> </ul>
</div> <!--TOP_TABS END--> </div> <!--TOP_TABS END-->

View file

@ -25,8 +25,11 @@
<div class="ad">{AD place='ad_468x60'}</div> <div class="ad">{AD place='ad_468x60'}</div>
{if isSectionEnabled('videos') || isSectionEnabled('photos')}
{include file="$style_dir/blocks/subscriptions.html"} {include file="$style_dir/blocks/subscriptions.html"}
{/if}
{if isSectionEnabled('videos')}
<div class="tabs"> <div class="tabs">
<ul> <ul>
<li class="selected"><a href="javascript:void(0)" id="watched" onclick="get_video('recent_viewed_vids','#index_vid_container')">{lang code='being_watched'}</a></li> <li class="selected"><a href="javascript:void(0)" id="watched" onclick="get_video('recent_viewed_vids','#index_vid_container')">{lang code='being_watched'}</a></li>
@ -48,6 +51,7 @@
</div> <!--MAIN_VIDS END--> </div> <!--MAIN_VIDS END-->
<div class="main_vid_shadow"></div> <div class="main_vid_shadow"></div>
{/if}
</div> <!--CONTENT_CON END--> </div> <!--CONTENT_CON END-->
<div class="side_con"> <div class="side_con">
@ -64,6 +68,7 @@
</div> <!--BOX END--> </div> <!--BOX END-->
{/if} {/if}
{if isSectionEnabled('videos')}
<!-- Getting Random videos --> <!-- Getting Random videos -->
{assign var=videos_items_columns value=func->config(videos_items_columns)} {assign var=videos_items_columns value=func->config(videos_items_columns)}
{get_videos assign=ran_vids limit=$videos_items_columns order=RAND()} {get_videos assign=ran_vids limit=$videos_items_columns order=RAND()}
@ -80,7 +85,9 @@
<div style="height:10px"></div> <div style="height:10px"></div>
</div> </div>
{/if} {/if}
{/if}
{if isSectionEnabled('channels')}
<div class="box"> <div class="box">
<div class="top_bg"> <div class="top_bg">
<h2>{lang code='t_10_users'}</h2> <h2>{lang code='t_10_users'}</h2>
@ -96,6 +103,8 @@
</div> </div>
{/section} {/section}
</div> </div>
</div> <!--BOX END--> </div>
{/if}
<!--BOX END-->
</div> <!--SIDE_CON END--> </div> <!--SIDE_CON END-->

View file

@ -19,6 +19,7 @@
{foreach from=$Cbucket->search_types item=search_type key=search_type_key} {foreach from=$Cbucket->search_types item=search_type key=search_type_key}
{if $search_type} {if $search_type}
{assign var='type' value=$cbsearch->init_search($search_type_key)} {assign var='type' value=$cbsearch->init_search($search_type_key)}
{if $type} {if $type}

View file

@ -12,6 +12,7 @@
<div id="content" style="padding-bottom:15px"> <div id="content" style="padding-bottom:15px">
{include file="$style_dir/blocks/view_channel/channel_top.html" } {include file="$style_dir/blocks/view_channel/channel_top.html" }
{if isSectionEnabled('videos')}
{assign var=user_vdo value= $userquery->get_user_profile_video($p)} {assign var=user_vdo value= $userquery->get_user_profile_video($p)}
{if $user_vdo} {if $user_vdo}
<!-- User Video Block --> <!-- User Video Block -->
@ -30,6 +31,7 @@
</div> </div>
<!-- User Video Blcok Ends--> <!-- User Video Blcok Ends-->
{/if} {/if}
{/if}
<div class="channel_box"> <div class="channel_box">
<div class="channel_inner_box" id="result_cont" style="display:none"></div> <div class="channel_inner_box" id="result_cont" style="display:none"></div>
@ -42,6 +44,7 @@
<!-- Right Colum --> <!-- Right Colum -->
<div class="right_column"> <div class="right_column">
{if isSectionEnabled('videos')}
<div class="channel_inner_box clearfix"> <div class="channel_inner_box clearfix">
<span class="channel_heading">{lang code='users_videos' assign='users_videos'}{$users_videos|sprintf:$u.username}</span> <span class="channel_heading">{lang code='users_videos' assign='users_videos'}{$users_videos|sprintf:$u.username}</span>
{assign var=videos_item_channel_page value=func->config(videos_item_channel_page)} {assign var=videos_item_channel_page value=func->config(videos_item_channel_page)}
@ -56,8 +59,9 @@
<hr width="100%" size="1" noshade> <hr width="100%" size="1" noshade>
<div align="right"><a href="{$userquery->get_user_videos_link($u)}">{lang code='more'}</a></div> <div align="right"><a href="{$userquery->get_user_videos_link($u)}">{lang code='more'}</a></div>
</div> </div>
{/if}
{if isSectionEnabled('channels')}
<div class="channel_inner_box clearfix"> <div class="channel_inner_box clearfix">
<span class="channel_heading">{lang code='users_subscribers' assign='users_videos'}{$users_videos|sprintf:$u.username}</span> <span class="channel_heading">{lang code='users_subscribers' assign='users_videos'}{$users_videos|sprintf:$u.username}</span>
{assign var=users_items_subscibers value=func->config(users_items_subscibers)} {assign var=users_items_subscibers value=func->config(users_items_subscibers)}
@ -71,7 +75,7 @@
<hr width="100%" size="1" noshade> <hr width="100%" size="1" noshade>
<div align="right"><a href="#">{lang code='more'}</a></div> <div align="right"><a href="#">{lang code='more'}</a></div>
</div> </div>
{/if}
{ANCHOR place='channel_box'} {ANCHOR place='channel_box'}

View file

@ -98,7 +98,7 @@ span.remember { font-size:10px; }
.top_tabs ul li { margin:0px; padding:0px; float:left; list-style:none; position:relative; right:50%; top:1px; } .top_tabs ul li { margin:0px; padding:0px; float:left; list-style:none; position:relative; right:50%; top:1px; }
.top_tabs ul li a { width:139px; display:block; height:33px; line-height:33px; background:#62b3ff; text-align:center; text-decoration:none; color:#FFF; margin-right:9px; font-size:14px; border-radius:5px 5px 0px 0px;-khtml-border-radius:5px 5px 0px 0px; -moz-border-radius:5px 5px 0px 0px; -webkit-border-top-left-radius:5px; -webkit-border-top-right-radius:5px; background:url(../images/nav_grads.png); background-position:-0px -162px; background-repeat:repeat-x} .top_tabs ul li a { width:139px; display:block; height:33px; line-height:33px; background:#62b3ff; text-align:center; text-decoration:none; color:#FFF; margin-right:9px; font-size:14px; border-radius:5px 5px 0px 0px;-khtml-border-radius:5px 5px 0px 0px; -moz-border-radius:5px 5px 0px 0px; -webkit-border-top-left-radius:5px; -webkit-border-top-right-radius:5px; background:url(../images/nav_grads.png); background-position:-0px -162px; background-repeat:repeat-x}
.top_tabs ul li a:hover { background:#0099cc; } .top_tabs ul li a:hover { background:#0099cc; }
.top_tabs ul li a.selected { background:url(../images/nav_grads.png) top repeat-x; border:1px solid #006699; border-bottom:0px none; } .top_tabs ul li.selected a { background:url(../images/nav_grads.png) top repeat-x; border:1px solid #006699; border-bottom:0px none; }
/* NAVIGATION */ /* NAVIGATION */
#navi_con { background:#14669c; padding:5px; margin:0px; border-top:1px solid #006699; } #navi_con { background:#14669c; padding:5px; margin:0px; border-top:1px solid #006699; }

View file

@ -8,7 +8,8 @@
*/ */
define("THIS_PAGE",'user_videos'); define("THIS_PAGE",'user_videos');
define("PARENT_PAGE",'channels'); define("PARENT_PAGE",'videos');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$pages->page_redir(); $pages->page_redir();
$userquery->perm_check('view_videos',true); $userquery->perm_check('view_videos',true);

View file

@ -8,7 +8,7 @@
*/ */
define("THIS_PAGE","view_group_members"); define("THIS_PAGE","view_group_members");
define("PARENT_PAGE","groups"); define("PARENT_PAGE","channels");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$pages->page_redir(); $pages->page_redir();

View file

@ -8,7 +8,7 @@
*/ */
define("THIS_PAGE","view_group_videos"); define("THIS_PAGE","view_group_videos");
define("PARENT_PAGE","groups"); define("PARENT_PAGE","videos");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$pages->page_redir(); $pages->page_redir();

View file

@ -8,7 +8,8 @@
*/ */
define("THIS_PAGE",'view_item'); define("THIS_PAGE",'view_item');
define("PARENT_PAGE",'view_collection'); define("PARENT_PAGE",'collections');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$item = $_GET['item']; $item = $_GET['item'];

View file

@ -7,6 +7,9 @@
**************************************************************************** ****************************************************************************
*/ */
define("THIS_PAGE",'view_topic');
define("PARENT_PAGE",'groups');
require 'includes/config.inc.php'; require 'includes/config.inc.php';
$pages->page_redir(); $pages->page_redir();