ADDED : WHOLE NEW QUICKLIST

UPDATE : INDEX page
Update : user record update
Added : user category system
This commit is contained in:
Arslan Hassan 2009-12-04 21:03:27 +00:00
parent 7b2f4f12e7
commit f4b4ee5cfb
57 changed files with 2082 additions and 1403 deletions

View file

@ -76,9 +76,12 @@ RewriteRule ^message$ inbox.php [nc]
#
#Users, Channel & Management
#
RewriteRule ^channels/([0-9A-Za-z]+)/(.*)/(.*)/(.*)/(.*) channels.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$2 [L]
RewriteRule ^channels channels.php [L]
RewriteRule ^members/ channels.php [nc]
RewriteRule ^users/ channels.php [nc]
RewriteRule ^channels/ channels.php [nc]
RewriteRule ^users/ channels.php [nc]
#
RewriteRule ^user/ channels.php [nc]
RewriteRule ^user/channel/(.*) view_channel.php?user=$1 [nc]

View file

@ -0,0 +1,19 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
template_files('manage_pages.html');
display_it();
?>

View file

@ -11,122 +11,102 @@ require'../includes/admin_config.php';
$userquery->login_check('member_moderation');
$pages->page_redir();
//-------TIME TO DO SOME ACTION-------//
//Delete User
if(isset($_GET['deleteuser'])){
$deleteuser = mysql_clean($_GET['deleteuser']);
if($userquery->Check_User_Exists($deleteuser)){
if($userquery->DeleteUser($deleteuser)){
$msg[] = 'User Has Been Deleted Successfully';
}else{
$msg[] = 'Error Deleting User';
}
}
$userquery->delete_user($deleteuser);
}
//Deleting Multiple Videos
if(isset($_POST['delete_selected'])){
for($id=0;$id<=RESULTS;$id++){
if(@$userquery->Check_User_Exists($_POST['check_user'][$id])){
$userquery->DeleteUser($_POST['check_user'][$id]);
}
}
$msg = "Selected Users Have Been Deleted";
for($id=0;$id<=RESULTS;$id++)
$userquery->delete_user($deleteuser);
$eh->flush();
e("Selected users have been deleted","m");
}
//Activate User
if(isset($_GET['activate'])){
$user = mysql_clean($_GET['activate']);
if($userquery->Check_User_Exists($user)){
$userquery->Activate($user);
$msg[] = 'User Has Been Activated';
}
$userquery->action('activate',$user);
}
//Deactivate User
if(isset($_GET['deactivate'])){
$user = mysql_clean($_GET['deactivate']);
if($userquery->Check_User_Exists($user)){
$userquery->DeActivate($user);
$msg[] = 'User Has Been Deactivated';
}
$userquery->action('deactivate',$user);
}
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->Activate($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Activated";
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->DeActivate($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Dectivated";
}
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->action('activate',$_POST['check_user'][$id]);
}
$eh->flush();
e("Selected users have been activated","m");
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->action('deactivate',$_POST['check_user'][$id]);
}
$eh->flush();
e("Selected users have been deactivated","m");
}
//Make User Featured
if(isset($_GET['featured'])){
$user = mysql_clean($_GET['featured']);
if($userquery->Check_User_Exists($user)){
$userquery->MakeFeatured($user);
$msg[] = 'User Has Been Made Featured Member';
}
$userquery->action('featured',$user);
}
//Make User UnFeatured
if(isset($_GET['unfeatured'])){
$user = mysql_clean($_GET['unfeatured']);
if($userquery->Check_User_Exists($user)){
$userquery->MakeUnFeatured($user);
$msg[] = 'User Has Been Unfeatured';
}
$userquery->action('unfeatured',$user);
}
//Using Multple Action
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->MakeFeatured($_POST['check_user'][$id]);
}
$msg = "Selected Users Have Been Set As Featured";
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->MakeUnFeatured($_POST['check_user'][$id]);
}
$msg = "Selected Users Have Been Removed From The Featured List";
}
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->action('featured',$_POST['check_user'][$id]);
}
$eh->flush();
e("Selected users have been set as featured","m");
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->action('unfeatured',$_POST['check_user'][$id]);
}
$eh->flush();
e("Selected users have been removed from featured list","m");
}
//Ban User
if(isset($_GET['ban'])){
$user = mysql_clean($_GET['ban']);
if($userquery->Check_User_Exists($user)){
$userquery->ban($user);
$msg[] = 'User Has Been Banned';
}
$userquery->action('ban',$user);
}
//UnBan User
if(isset($_GET['unban'])){
$user = mysql_clean($_GET['unban']);
if($userquery->Check_User_Exists($user)){
$userquery->unban($user);
$msg[] = 'User Has Been Unbanned';
}
$userquery->action('unban',$user);
}
//Using Multple Action
if(isset($_POST['ban_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->ban($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Banned";
}
if(isset($_POST['unban_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->unban($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Unbanned";
}
if(isset($_POST['ban_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->action('ban',$_POST['check_user'][$id]);
}
$eh->flush();
e("Selected users have been banned","m");
}
if(isset($_POST['unban_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->action('unban',$_POST['check_user'][$id]);
}
$eh->flush();
e("Selected users have been unbanned","m");
}
//-------TIME END TO DO SOME ACTION-------//

View file

@ -29,6 +29,9 @@ var baseurl = "{$baseurl}";
<script src="{$js}/jquery_plugs/chili-1.7.pack.js" type="text/javascript"></script>
<script src="{$js}/jquery_plugs/compressed/jeditable.js" type="text/javascript"></script>
<!-- Including Nice Edit -->
<script src="{$js}/nicedit/nicEdit.js" type="text/javascript"></script>
{literal}
<script type="text/javascript" charset="utf-8">

View file

@ -0,0 +1,31 @@
<span class="page_title">Manage Pages</span>
<form method="post">
<fieldset class="fieldset">
<legend>Add New Page
</legend><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Page Title</strong></td>
</tr>
<tr>
<td><label for="textfield"></label>
<input type="text" name="textfield" id="textfield"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Page Content</td>
</tr>
<tr>
<td><label for="textarea"></label>
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea><script type="text/javascript">
{literal}new nicEditor({fullPanel : true}).panelInstance('textarea');{/literal}
</script></td>
</tr>
</table>
</fieldset>
</td>

View file

@ -49,9 +49,13 @@
{if $u.ban_status == no}
<a href="?ban={$u.userid}">Ban Member</a>
{/if}|
<a href="?editor_pick={$videos[list].videoid}">Add To Editor's Pick</a> |
<a href="view_conversion_log.php?file_name={$videos[list].file_name}">File conversion details</a> |
<a href="?delete_user={$u.userid}">Delete</a>
{if $u.featured != Yes}
<a href="?featured={$u.userid}">Feature Member</a>
{/if}
{if $u.featured == Yes}
<a href="?unfeatured={$u.userid}">Unfeature Member</a>
{/if}|
<a href="?deleteuser={$u.userid}">Delete</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>

View file

@ -0,0 +1,155 @@
<link href="../theme/stylesheet.css" rel="stylesheet" type="text/css" />
<span class="page_title">User Categories</span>
<table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Manage User Categories</td>
<td class="head">&nbsp;</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
{if $edit_category != "show"}
<form action="user_category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="name" type="text" id="name" value="{'name'|post_form_val}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="desc" id="desc" cols="33" rows="5">{'desc'|post_form_val}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Make Default Category</td>
<td class="td_body"><p>
<label>
<input type="radio" name="default" value="yes" id="default_0" />
Yes</label>
<label>
<input name="default" type="radio" id="default_1" value="no" checked="checked" />
No</label>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Category Thumb</td>
<td align="left" class="td_body"><label for="cat_thumb"></label>
<input type="file" name="cat_thumb" id="cat_thumb" /></td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body"><input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="button"/></td>
</tr>
</table>
</form>
{/if}
{if $edit_category == "show"}
<form action="" method="post" enctype="multipart/form-data" name="edit_category" id="Edit Category">
<input name="cid" value="{$cat_details.category_id}" type="hidden" />
<input name="cur_name" value="{$cat_details.category_name}" type="hidden" />
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="name" type="text" id="name" value="{$cat_details.category_name}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Make Default Category</td>
<td class="td_body"><p>
<label>
<input type="radio" name="default" value="yes" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} />
Yes</label>
<label>
<input name="default" type="radio" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if} />
No</label>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Category Thumb</td>
<td class="td_body"><label>
<input type="file" name="cat_thumb" id="cat_thumb" />
</label></td>
</tr>
<tr>
<td colspan="2" align="right" class="tr_head"><label>
<input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
</label></td>
</tr>
</table>
</form>
{/if}
<div style="margin:10px 0px 10px 0px">
<span class="page_title">Category List</span>
</div>
{if $total != 0}
<table width="98%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" class="left_head" style="text-indent:10px">Category Name</td>
<td width="9%" class="head_sep_left">Thumb</td>
<td width="34%" class="head_sep_left">Description</td>
<td width="28%" class="head_sep_left">Default</td>
<td width="7%" class="head_sep_left">Action</td>
<td width="20" align="left" class="right_head">&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$category}
<script type="text/javascript">
cat_div = "#thumbs_{$category[list].category_id}";
{literal}
$(function() { {/literal}
$("#thumbs_{$category[list].category_id}").tooltip({literal}{showURL: false,delay: 0});
});
{/literal}
</script>
<tr bgcolor="{$bgcolor}" class="item_listing">
<td style="text-indent:10px">{$category[list].category_name}</td>
<td style="text-indent:10px"><a id="thumbs_{$category[list].category_id}" title="<img src='{$cbvid->get_category_thumb($category[list])}' />" href="javascript:void(0)">View Thumb</a>
</td>
<td style="text-indent:10px">{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
<td style="text-indent:10px">{$category[list].isdefault}</td>
<td style="text-indent:10px">
<li><a href="?category={$category[list].category_id}">Edit</a></li>
<li><a href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a></li>
{if $category[list].isdefault!="yes"}<li><a href="?make_default={$category[list].category_id}">Make Default</a></li>{/if}
</td>
<td style="text-indent:10px">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
{else}
No Category Has Been Created Yet
{/if}
<br />
<br />

View file

@ -1,5 +1,6 @@
<span class="page_title">Edit User</span>
{assign var="user_fields" value=$userquery->load_profile_fields($p)}
{assign var="signup_fields" value=$userquery->load_signup_fields($u)}
{assign var="user_custom_profile_fields" value=$userquery->load_custom_profile_fields($p)}
{assign var="user_custom_signup_fields" value=$userquery->load_custom_signup_fields($p)}
@ -79,6 +80,10 @@
</p></td>
</tr>
<tr>
<td>Category</td>
<td>{ANCHOR place=$signup_fields.cat.anchor_before}{$formObj->createField($signup_fields.cat)}{ANCHOR place=$signup_fields.cat.anchor_after}</td>
</tr>
</table>
</fieldset>

View file

@ -0,0 +1,50 @@
<?php
/*
*******************************************
| Copyright (c) 2007-2009 Clip-Bucket.com & (Arslan Hassan). All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
*******************************************
*/
require_once '../includes/admin_config.php';
$userquery->login_check('admin_access');
$pages->page_redir();
//Form Processing
if(isset($_POST['add_cateogry'])){
$userquery->add_category($_POST);
}
//Making Categoyr as Default
if(isset($_GET['make_default']))
{
$cid = mysql_clean($_GET['make_default']);
$userquery->make_default_category($cid);
}
//Edit Categoty
if(isset($_GET['category'])){
assign("edit_category","show");
if(isset($_POST['update_category']))
{
$userquery->update_category($_POST);
}
assign('cat_details',$userquery->get_category($_GET['category']));
}
//Delete Category
if(isset($_GET['delete_category'])){
$userquery->delete_category($_GET['delete_category']);
}
//Assing Category Values
assign('category',$userquery->get_categories());
assign('total',$userquery->total_categories());
Assign('msg',@$msg);
template_files('user_category.html');
display_it();
?>

View file

@ -346,6 +346,37 @@ if(!empty($mode))
}
break;
case 'quicklist':
{
$todo = $_POST['todo'];
$id = mysql_clean($_POST['vid']);
if($todo == 'add')
{
$return = $cbvid->add_to_quicklist($id);
}else
$return = $cbvid->remove_from_quicklist($id);
echo $return;
}
break;
case 'getquicklistbox';
{
if($cbvid->total_quicklist()>0)
TEMPLATE('blocks/quicklist/block.html');
}
break;
case 'clear_quicklist':
{
$cbvid->clear_quicklist();
return 'removed';
}
break;
default:
header('location:'.BASEURL);
}

View file

@ -6,22 +6,65 @@
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
define("THIS_PAGE",'channels');
define("PARENT_PAGE",'channels');
require 'includes/config.inc.php';
$userquery->perm_check('view_channel',true);
//Getting Video List
//Setting Sort
$sort = $_GET['sort'];
$u_cond = array('category'=>mysql_clean($_GET['cat']),'date_span'=>$_GET['time']);
switch($sort)
{
case "most_recent":
default:
{
$u_cond['order'] = " doj DESC ";
}
break;
case "most_viewed":
{
$u_cond['order'] = " profile_hits DESC ";
}
break;
case "featured":
{
$u_cond['order'] = "yes";
}
break;
case "top_rated":
{
$u_cond['order'] = " rating DESC";
}
break;
case "most_commented":
{
$u_cond['order'] = " total_comments DESC";
}
break;
}
//Getting User List
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,VLISTPP);
$users = $db->select("users",'*',$cond,$get_limit,"doj DESC");
$get_limit = create_query_limit($page,CLISTPP);
$ulist = $u_cond;
$ulist['limit'] = $get_limit;
$users = get_users($ulist);
Assign('users', $users);
//Collecting Data for Pagination
$total_rows = $db->count('users','*',$cond);
$total_pages = count_pages($total_rows,VLISTPP);
$ucount = $u_cond;
$ucount['count_only'] = true;
$total_rows = get_users($ucount);
$total_pages = count_pages($total_rows,CLISTPP);
//Pagination
$pages->paginate($total_pages,$page);
template_files('channels.html');
display_it();
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -65,6 +65,8 @@ class ClipBucket
(
'ajax.js' => 'homeactive',
'jquery.js' => 'global',
'jquery.js' => 'global',
'jquery_plugs/cookie.js' => 'global',
'dropdown.js' => 'global',
'flashobject.js' => 'global',
'rating_update.js' => 'global',

View file

@ -123,7 +123,7 @@ class formObj
$field['value'] = '';
//Generate Category list
$type = $field['type'] ? $field['type'] : 'video';
$catArray = getCategoryList();
$catArray = getCategoryList($field['category_type']);
foreach ($catArray as $cat)
{
$field['value'][$cat['category_id']] = $cat['category_name'];
@ -147,7 +147,7 @@ class formObj
}
}
}
echo '<input name="'.$field['name'].'" type="checkbox" value="'.$key.'" '.$checked.' '.$field['extra_tags'].'>'.$value ;
echo '<label><input name="'.$field['name'].'" type="checkbox" value="'.$key.'" '.$checked.' '.$field['extra_tags'].'>'.$value.'</label>' ;
echo $field['sep'];
}
}
@ -185,7 +185,7 @@ class formObj
$checked = '';
$count++;
}
echo '<input name="'.$field['name'].'" type="radio" value="'.$key.'" '.$checked.' '.$field['extra_tags'].'>'.$value ;
echo '<label><input name="'.$field['name'].'" type="radio" value="'.$key.'" '.$checked.' '.$field['extra_tags'].'>'.$value.'<label>' ;
echo $sep;
}
}
@ -215,8 +215,25 @@ class formObj
function createDropDown($field)
{
global $LANG;
//First Checking if value is CATEGORY
if($field['value'][0]=='category')
{
$values_array = $field['value'][1][0];
$field['value'] = '';
//Generate Category list
$type = $field['type'] ? $field['type'] : 'video';
$catArray = getCategoryList($field['category_type']);
foreach ($catArray as $cat)
{
$field['value'][$cat['category_id']] = $cat['category_name'];
}
}
$ddFieldStart = '<select name="'.$field['name'].'" id="'.$field['id'].'" class="'.$field['class'].'">';
$arrayName = $this->rmBrackets($field['name']);
if(is_array($field['value']))
foreach($field['value'] as $key => $value)
{
if(!empty($_POST[$arrayName]) || !empty($field['checked']))

View file

@ -181,42 +181,18 @@ class myquery {
}
}
$db->Execute("DELETE FROM comments WHERE comment_id='$cid'");
$db->update("users",array("total_comments"),array("|f|total_comments-1")," userid='".$cdetails['userid']."'");
e($LANG['usr_cmt_del_msg'],m);
return true;
}else{
e($LANG['no_comment_del_perm']);
return false;
}
return false;
}
function DeleteComment($id,$videoid){return $this->delete_comment($videoid);}
//Function Used To Rate Comments
function RateComment($rate,$commentid){
global $LANG;
if(!empty($_SESSION['username']) ){
$query = mysql_query("select score,scorer_ids from video_comments where comment_id='".$commentid."'");
$data = mysql_fetch_array($query);
$voter_id = $data['scorer_ids'];
$userid = $_SESSION['userid'];
$niddle = "|";
$niddle .= $userid;
$niddle .= "|";
$flag = strstr($voter_id, $niddle);
if(empty($flag)){
if ($voter_id == "")
{
$voter_id .= "|";
}
$voter_id .= $userid;
$voter_id .= "|";
$newscore = $rate+$data['score'];
mysql_query("UPDATE video_comments SET score='".$newscore."' , scorer_ids='".$voter_id."' WHERE comment_id ='".$commentid."'");
}else{
$msg = e($LANG['class_comment_err7']);
}
}else{
$msg = e($LANG['class_comment_err6']);
}
return $msg;
}
/***
* Function used to rate comment
@ -895,6 +871,8 @@ class myquery {
('type,comment,type_id,userid,date_added,parent_id,anonym_name,anonym_email','comment_ip'),
array
($type,$comment,$obj_id,userid(),NOW(),$reply_to,$name,$email,$_SERVER['REMOTE_ADDR']));
$db->update("users",array("total_comments"),array("|f|total_comments+1")," userid='".userid()."'");
e("Comment has been added",m);
return $db->insert_id();
}

View file

@ -215,7 +215,7 @@ class cbsearch
case "all":
default:
{
$cond = " date_added != '' ";
$cond = " $date_column != '' ";
}
break;

View file

@ -15,548 +15,8 @@
*/
class signup {
var $signup_plugins = array(); //Signup Plugins
var $custom_signup_fields = array();
function load_signup_fields($default=NULL)
{
global $LANG,$Cbucket;
/**
* this function will create initial array for user fields
* this will tell
* array(
* title [text that will represents the field]
* type [type of field, either radio button, textfield or text area]
* name [name of the fields, input NAME attribute]
* id [id of the fields, input ID attribute]
* value [value of the fields, input VALUE attribute]
* size
* class
* label
* extra_params
* hint_1 [hint before field]
* hint_2 [hint after field]
* anchor_before [anchor before field]
* anchor_after [anchor after field]
* )
*/
if(empty($default))
$default = $_POST;
$username = $default['username'];
$email = $default['email'];
$dcountry = $default['country'] ? $default['country'] : $Cbucket->configs['default_country_iso2'];
$dob = $default['dob'];
$dob = $dob ? date("d-m-Y",strtotime($dob)) : '14-14-1989';
$user_signup_fields = array
(
'username' => array(
'title'=> $LANG['username'],
'type'=> "textfield",
'name'=> "username",
'id'=> "username",
'value'=> $username,
'hint_2'=> $LANG['user_allowed_format'],
'db_field'=>'username',
'required'=>'yes',
'syntax_type'=> 'username',
'validate_function'=> 'username_check',
'function_error_msg' => $LANG['user_contains_disallow_err'],
'db_value_check_func'=> 'user_exists',
'db_value_exists'=>false,
'db_value_err'=>$LANG['usr_uname_err2']
),
'email' => array(
'title'=> $LANG['email'],
'type'=> "textfield",
'name'=> "email",
'id'=> "email",
'value'=> $email,
'db_field'=>'email',
'required'=>'yes',
'syntax_type'=> 'email',
'db_value_check_func'=> 'email_exists',
'db_value_exists'=>false,
'db_value_err'=>$LANG['usr_email_err3']
),
'password' => array(
'title'=> $LANG['password'],
'type'=> "password",
'name'=> "password",
'id'=> "password",
'db_field'=>'password',
'required'=>'yes',
'invalid_err'=>$LANG['usr_pass_err2'],
'relative_to' => 'cpassword',
'relative_type' => 'exact',
'relative_err' => $LANG['usr_pass_err3'],
'validate_function' => 'pass_code',
'use_func_val'=>true
),
'cpassword' => array(
'title'=> $LANG['user_confirm_pass'],
'type'=> "password",
'name'=> "cpassword",
'id'=> "cpassword",
'required'=>'no',
'invalid_err'=>$LANG['usr_cpass_err'],
),
'country' => array(
'title'=> $LANG['country'],
'type' => 'dropdown',
'value' => $Cbucket->get_countries(iso2),
'id' => 'country',
'name' => 'country',
'checked'=> $dcountry,
'db_field'=>'country',
'required'=>'yes',
),
'gender' => array(
'title' => $LANG['gender'],
'type' => 'radiobutton',
'name' => 'gender',
'id' => 'gender',
'value' => array('Male'=>$LANG['male'],'Female'=>$LANG['female']),
'sep'=> '&nbsp;',
'checked'=>'Male',
'db_field'=>'sex',
'required'=>'yes',
),
'dob' => array(
'title' => $LANG['user_date_of_birth'],
'type' => 'textfield',
'name' => 'dob',
'id' => 'dob',
'class'=>'date_field',
'anchor_after' => 'date_picker',
'value'=> $dob,
'db_field'=>'dob',
'required'=>'yes',
)
);
return $user_signup_fields;
}
/**
* Function used to validate Signup Form
*/
function validate_form_fields($array=NULL)
{
global $userquery;
$fields = $this->load_signup_fields($array);
if($array==NULL)
$array = $_POST;
if(is_array($_FILES))
$array = array_merge($array,$_FILES);
//Mergin Array
$signup_fields = array_merge($fields,$this->custom_signup_fields);
/*//Now Validating Each Field 1 by 1
foreach($signup_fields as $field)
{
$field['name'] = formObj::rmBrackets($field['name']);
//pr($field);
$title = $field['title'];
$val = $array[$field['name']];
$req = $field['required'];
$invalid_err = $field['invalid_err'];
$function_error_msg = $field['function_error_msg'];
$length = strlen($val);
$min_len = $field['min_length'];
$min_len = $min_len ? $min_len : 0;
$max_len = $field['max_length'] ;
$rel_val = $array[$field['relative_to']];
if(empty($invalid_err))
$invalid_err = sprintf("Invalid '%s'",$title);
if(is_array($array[$field['name']]))
$invalid_err = '';
//Checking if its required or not
if($req == 'yes')
{
if(empty($val) && !is_array($array[$field['name']]))
{
e($invalid_err);
$block = true;
}else{
$block = false;
}
}
$funct_err = is_valid_value($field['validate_function'],$val);
if($block!=true)
{
//Checking Syntax
if(!$funct_err)
{
if(!empty($function_error_msg))
e($function_error_msg);
elseif(!empty($invalid_err))
e($invalid_err);
}elseif(!is_valid_syntax($field['syntax_type'],$val))
{
if(!empty($invalid_err))
e($invalid_err);
}
elseif(isset($max_len))
{
if($length > $max_len || $length < $min_len)
e(sprintf(" please enter '%s' value between '%s' and '%s'",
$title,$field['min_length'],$field['max_length']));
}elseif(function_exists($field['db_value_check_func']))
{
$db_val_result = $field['db_value_check_func']($val);
if($db_val_result != $field['db_value_exists'])
if(!empty($field['db_value_err']))
e($field['db_value_err']);
elseif(!empty($invalid_err))
e($invalid_err);
}elseif($field['relative_type']!='')
{
switch($field['relative_type'])
{
case 'exact':
{
if($rel_val != $val)
{
if(!empty($field['relative_err']))
e($field['relative_err']);
elseif(!empty($invalid_err))
e($invalid_err);
}
}
break;
}
}
}
}*/
validate_cb_form($signup_fields,$array);
}
/**
* Function used to validate signup form
*/
function signup_user($array=NULL)
{
global $LANG,$db,$userquery;
if($array==NULL)
$array = $_POST;
if(is_array($_FILES))
$array = array_merge($array,$_FILES);
$this->validate_form_fields($array);
//checking terms and policy agreement
if($_POST['agree']!='yes')
e($LANG['usr_ament_err']);
if(!error())
{
$signup_fields = $this->load_signup_fields($array);
//Adding Custom Signup Fields
if(count($this->custom_signup_fields)>0)
$signup_fields = array_merge($signup_fields,$this->custom_signup_fields);
foreach($signup_fields as $field)
{
$name = formObj::rmBrackets($field['name']);
$val = $array[$name];
if($field['use_func_val'])
$val = $field['validate_function']($val);
if(!empty($field['db_field']))
$query_field[] = $field['db_field'];
if(is_array($val))
{
$new_val = '';
foreach($val as $v)
{
$new_val .= "#".$v."# ";
}
$val = $new_val;
}
if(!$field['clean_func'] || (!function_exists($field['clean_func']) && !is_array($field['clean_func'])))
$val = mysql_clean($val);
else
$val = apply_func($field['clean_func'],$val);
if(!empty($field['db_field']))
$query_val[] = $val;
}
// Setting Verification type
if(EMAIL_VERIFICATION == '1'){
$usr_status = 'ToActivate';
}else{
$usr_status = 'Ok';
}
$query_field[] = " usr_status";
$query_val[] = $usr_status;
//Creating AV Code
$avcode = RandomString(10);
$query_field[] = "avcode";
$query_val[] = $avcode;
//Signup IP
$signup_ip = $_SERVER['REMOTE_ADDR'];
$query_field[] = "signup_ip";
$query_val[] = $signup_ip;
//Date Joined
$now = NOW();
$query_field[] = "doj";
$query_val[] = $now;
$query = "INSERT INTO users (";
$total_fields = count($query_field);
//Adding Fields to query
$i = 0;
foreach($query_field as $qfield)
{
$i++;
$query .= $qfield;
if($i<$total_fields)
$query .= ',';
}
$query .= ") VALUES (";
$i = 0;
//Adding Fields Values to query
foreach($query_val as $qval)
{
$i++;
$query .= "'$qval'";
if($i<$total_fields)
$query .= ',';
}
//Finalzing Query
$query .= ")";
$db->Execute($query);
$insert_id = $db->insert_id();
$db->insert($userquery->dbtbl['user_profile'],array("userid"),array($insert_id));
if(!$userquery->perm_check('admin_add_user',true))
{
global $cbemail;
$tpl = $cbemail->get_template('email_verify_template');
$more_var = array
('{username}' => post('username'),
'{password}' => post('password'),
'{email}' => post('email'),
'{avcode}' => $avcode,
);
$var = array_merge($more_var,$var);
$subj = $cbemail->replace($tpl['email_template_subject'],$var);
$msg = $cbemail->replace($tpl['email_template'],$var);
//Now Finally Sending Email
cbmail(array('to'=>post('email'),'from'=>'webmaster@localhost','subject'=>$subj,'content'=>$msg));
}
return $insert_id;
}
}
//Duplicate User Check
function duplicate_user($name){
global $myquery;
if($myquery->check_user($name)){
return true;
}else{
return false;
}
}
function duplicate_email($name){
$myquery = new myquery();
if($myquery->check_email($name)){
return true;
}else{
return false;
}
}
//Validate Email
function isValidEmail($email){
return isValidEmail($email);
}
//Validate Username
function isValidUsername($uname){
return $this->is_username($uname);
}
/**
* Function used to make username valid
* this function will also check if username is banned or not
* it will also filter the username and also filter its patterns
* as given in administratio panel
*/
function is_username($username)
{
global $Cbucket;
//Our basic pattern for username is
//$pattern = "^^[_a-z0-9-]+$";
$pattern = "^^[_a-z0-9-]+$";
//Now we will check if admin wants to change the pattern
if (eregi($pattern, $username)){
return true;
}else {
return false;
}
}
//Validate Admin Member
function Admin_Add_User(){
global $LANG,$stats;
$uname = mysql_clean($_POST['username']);
$email = mysql_clean($_POST['email']);
$pass = pass_code(mysql_clean($_POST['password']));
$fname = mysql_clean($_POST['fname']);
$lname = mysql_clean($_POST['lname']);
$gender = mysql_clean($_POST['gender']);
$level = mysql_clean($_POST['level']);
$dob = mysql_clean($_POST['dob']);
$ht = mysql_clean($_POST['hometown']);
$city = mysql_clean($_POST['city']);
$country = $_POST['country'];
$zip = mysql_clean($_POST['zip']);
$active = $_POST['active'];
if(empty($uname)){
$msg[] = e($LANG['usr_uname_err']);
}
if($this->duplicate_user($uname)){
$msg[] = e($LANG['usr_uname_err2']);
}
if(!$this->isValidUsername($uname)){
$msg[] = e($LANG['usr_uname_err3']);
}
if(empty($_POST['password'])){
$msg[] = e($LANG['usr_pass_err2']);
}
if(empty($email)){
$msg[] = e($LANG['usr_email_err1']);
}elseif(!$this->isValidEmail($email)){
$msg[] = e($LANG['usr_email_err2']);
}
if($this->duplicate_email($email)){
$msg[] = e($LANG['usr_email_err3']);
}
if(!empty($zip) && !is_numeric($zip)){
$msg[] = e($LANG['usr_pcode_err']);
}
if(!$this->is_username($uname))
$msg[] = 'Username is not valid';
$dob = strtotime($dob) ;
if(date("Y",$dob) < 1960 || date("Y",$dob) > date("Y"))
$msg[] = "Please enter valid date of birth";
$dob = date('Y-m-d',strtotime($dob));
if(empty($msg)){
if(!mysql_query("INSERT INTO users (username,password,email,first_name,last_name,sex,level,dob,hometown,city,country,zip,usr_status)
VALUES('".$uname."','".$pass."','".$email."','".$fname."','".$lname."','".$gender."','".$level."','".$dob."','".$ht."','".$city."','".$country."','".$zip."','".$active."')")) die(mysql_error());
$stats->UpdateUserRecord(1);
redirect_to($_SERVER['PHP_SELF'].'?msg='.urlencode($LANG['usr_add_succ_msg']));
}
return $msg;
}
//UPDATE USER
function Admin_Edit_User(){
global $LANG;
$email = mysql_clean($_POST['email']);
$fname = mysql_clean($_POST['fname']);
$lname = mysql_clean($_POST['lname']);
$gender = mysql_clean(@$_POST['gender']);
$level = mysql_clean($_POST['level']);
$ht = mysql_clean($_POST['hometown']);
$city = mysql_clean($_POST['city']);
$country = $_POST['country'];
$zip = mysql_clean($_POST['zip']);
$email_inuse = $_POST['email_inuse'];
if($_GET['userid'] == 1){
if($_SESSION['superadmin'] == ''){
$msg[] = "You Are Not Allowed To Change 'Super Admin' Details";
}
}
if(empty($email)){
$msg[] = e($LANG['usr_email_err1']);
}elseif(!$this->isValidEmail($email)){
$msg[] = e($LANG['usr_email_err2']);
}
if($email !== $email_inuse){
if($this->duplicate_email($email)){
$msg[] = e($LANG['usr_email_err3']);
}
}
if(!empty($zip) && !is_numeric($zip)){
$msg[] = e($LANG['usr_pcode_err']);
}
if(!empty($_POST['pwrd'])){
$pass = pass_code($_POST['pwrd']);
$cpass = pass_code($_POST['cpwrd']);
if($pass != $cpass){
$msg[] = e($LANG['usr_cpass_err1']);
}else{
$pass_Query = "password = '".$pass."',";
}
}
if(empty($msg)){
if(!mysql_query("UPDATE users Set
email = '".$email."',
$pass_Query
first_name = '".$fname."',
last_name = '".$lname."',
sex = '".$gender."',
level = '".$level."',
hometown = '".$ht."',
city = '".$city."',
country = '".$country."',
zip = '".$zip."'
Where userid = '".$_GET['userid']."'"))die(mysql_error());
redirect_to($_SERVER['PHP_SELF'].'?msg='.urlencode($LANG['usr_upd_succ_msg']).'&userid='.$_GET['userid']);
}
return $msg;
}
//This Function Is Used To Check Regiseration is allowed or not
function Registration(){
@ -566,126 +26,6 @@ class signup {
return false;
}
}
//Validate Form Fields And Add Member
function SignUpUser(){
global $row,$LANG,$stats;
if($this->Registration()){
$uname = mysql_clean($_POST['username']);
$email = mysql_clean($_POST['email']);
$pass = pass_code(mysql_clean($_POST['password']));
$cpass = pass_code(mysql_clean($_POST['cpassword']));
$gender = mysql_clean($_POST['gender']);
$level = mysql_clean($_POST['level']);
$dob = mysql_clean($_POST['dob']);
$country = mysql_clean($_POST['country']);
$verify = clean($_POST['verification']);
$agree = mysql_clean($_POST['agree']);
$signuo_ip = $_SERVER['REMOTE_ADDR'];
$avcode = RandomString(10);
//Check User
if(empty($uname)){
$msg[] = e($LANG['usr_uname_err']);
}elseif(!$this->isValidUsername($uname)){
$msg[] = e($LANG['usr_uname_err3']);
}
if($this->duplicate_user($uname)){
$msg[] = e($LANG['usr_uname_err2']);
}
//Check Password
if(empty($_POST['password']) || empty($_POST['cpassword'])){
$msg[] = e($LANG['usr_pass_err2']);
}
if($pass != $cpass){
$msg[] = e($LANG['usr_pass_err3']);
}
//Check Email
if(empty($email)){
$msg[] = e($LANG['usr_email_err1']);
}elseif(!$this->isValidEmail($email)){
$msg[] = e($LANG['usr_email_err2']);
}
if($this->duplicate_email($email)){
$msg[] = e($LANG['usr_email_err3']);
}
//Checking Date Of Birth
$dob = strtotime($dob) ;
if(date("Y",$dob) < 1960 || date("Y",$dob) > date("Y")-5)
$msg[] = "Please enter valid date of birth";
$dob = date('Y-m-d',$dob);
//Check AgreeMent
if(empty($agree)){
$msg[] = e($LANG['usr_ament_err']);
}
//Check Confirmation Code
if($row['captcha_type'] == '2'){
require "captcha/class.img_validator.php";
$img = new img_validator();
if(!$img->checks_word($verify)){
$msg[] = e($LANG['usr_ccode_err']);
}
}
if($row['captcha_type'] == 1){
if($verify != $_SESSION['security_code']){
$msg[] = e($LANG['usr_ccode_err']);
}
}
if(empty($msg)){
if(EMAIL_VERIFICATION == '1'){
$usr_status = 'ToActivate';
}else{
$usr_status = 'Ok';
}
if(!mysql_query("INSERT INTO users (username,password,email,first_name,last_name,sex,level,dob,hometown,city,country,zip,avcode,signup_ip,usr_status)
VALUES('".$uname."','".$pass."','".$email."','".$fname."','".$lname."','".$gender."','".$level."','".$dob."','".$ht."','".$city."','".$country."','".$zip."','".$avcode."','".$_SERVER['REMOTE_ADDR']."','".$usr_status."')")) die(mysql_error());
$stats->UpdateUserRecord(1);
$username = $uname;
$password = mysql_clean($_POST['password']);
$cur_date = date("m-d-Y");
$baseurl = BASEURL;
$title = TITLE;
$to = $email;
//Send EMail For Email Verification
if(EMAIL_VERIFICATION == '1'){
$from = SUPPORT_EMAIL;
require_once(BASEDIR.'/includes/email_templates/email_verify.template.php');
require_once(BASEDIR.'/includes/email_templates/email_verify.header.php');
send_email($from,$to,$subj,nl2br($body));
}else{
//Send Welcome Email
$subj = $LANG['welcome'].' '.$username.' to '.$title;
$from = WELCOME_EMAIL;
require_once(BASEDIR.'/includes/email_templates/welcome_message.template.php');
require_once(BASEDIR.'/includes/email_templates/welcome_message.header.php');
send_email($from,$to,$subj,nl2br($body));
}
//$userquery = new userquery();
//$userquery->userlogin($uname,$pass);
$msg = 'success';
}
}else{
$msg = e($LANG['usr_reg_err']);
}
return $msg;
}
}
?>

View file

@ -267,6 +267,7 @@
{
$db->Execute($query);
$insert_id = $db->insert_id();
$db->update("users",array("total_videos"),array("|f|total_videos+1")," userid='".userid()."'");
}
}
@ -496,7 +497,7 @@
'name'=> 'category[]',
'id'=> 'category',
'value'=> array('category',$cat_array),
'hint_1'=> $LANG['vdo_cat_msg'].'<br>',
'hint_1'=> $LANG['vdo_cat_msg'],
'db_field'=>'category',
'required'=>'yes',
'validate_function'=>'validate_vid_category',

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@
* too
*/
define("QUICK_LIST_SESS","quick_list");
class CBvideo extends CBCategory
{
@ -261,6 +261,7 @@ class CBvideo extends CBCategory
}
//Finally Removing Database entry of video
$db->execute("DELETE FROM video WHERE videoid='$vid'");
$db->update("users",array("total_videos"),array("|f|total_videos-1")," userid='".$vdetails['userid']."'");
e(lang("class_vdo_del_msg"),m);
}else{
e(lang("You cannot delete this video"));
@ -478,7 +479,7 @@ class CBvideo extends CBCategory
{
global $db;
$total_comments = $this->count_video_comments($id);
$db->update("video",array("comments_count"),$total_comments," videoid='$id'");
$db->update("video",array("comments_count"),array($total_comments)," videoid='$id'");
}
/**
@ -496,6 +497,21 @@ class CBvideo extends CBCategory
return $add_comment;
}
/**
* Function used to remove video comment
*/
function delete_comment($cid,$is_reply=FALSE)
{
global $myquery,$db;
$remove_comment = $myquery->delete_comment($cid,'v',$is_reply);
if($remove_comment)
{
//Updating Number of comments of video
$this->update_comments_count($obj_id);
}
return $remove_comment;
}
/**
* Function used to generate Embed Code
@ -832,6 +848,69 @@ class CBvideo extends CBCategory
return $result;
else
return false;
}
}
/**
* Function used to add video in quicklist
*/
function add_to_quicklist($id)
{
global $sess;
if($this->exists($id))
{
$list = json_decode($sess->get(QUICK_LIST_SESS), true);
pr($list);
$list[] = $id;
$new_list = array_unique($list);
$sess->set(QUICK_LIST_SESS,json_encode($new_list));
return true;
}else
return false;
}
/**
* Removing video from quicklist
*/
function remove_from_quicklist($id)
{
global $sess;
$list = json_decode($sess->get(QUICK_LIST_SESS), true);
$key = array_search($id,$list);
unset($list[$key]);
$sess->set(QUICK_LIST_SESS,json_encode($list));
return true;
}
/**
* function used to count num of quicklist
*/
function total_quicklist()
{
global $sess;
$total = $sess->get(QUICK_LIST_SESS);
$total = json_decode($total, true);
return count($total);
}
/**
* Function used to get quicklist
*/
function get_quicklist()
{
global $sess;
return json_decode($sess->get(QUICK_LIST_SESS), true);
}
/**
* Function used to remove all items of quicklist
*/
function clear_quicklist()
{
global $sess;
$sess->set(QUICK_LIST_SESS,'');
}
}
?>

View file

@ -43,6 +43,7 @@ if(file_exists(dirname(__FILE__).'/../install/isinstall.php')){
require_once('dbconnect.php');
require_once('classes/pages.class.php');
require_once('classes/actions.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');
@ -63,7 +64,6 @@ if(file_exists(dirname(__FILE__).'/../install/isinstall.php')){
require_once('classes/log.class.php');
require_once('classes/swfObj.class.php');
require_once('classes/image.class.php');
require_once('classes/category.class.php');
require_once('classes/groups.class.php');
require_once('classes/video.class.php');
require_once('classes/player.class.php');
@ -401,6 +401,7 @@ $Smarty->register_function('show_flag_form','show_flag_form');
$Smarty->register_function('show_playlist_form','show_playlist_form');
$Smarty->register_function('lang','smarty_lang');
$Smarty->register_function('get_videos','get_videos');
$Smarty->register_function('get_users','get_users');
$Smarty->register_function('private_message','private_message');
$Smarty->register_function('show_video_rating','show_video_rating');

View file

@ -11,6 +11,7 @@ $Cbucket->links = array
'login' =>array('signup.php','login'),
'logout' =>array('logout.php','logout'),
'videos' =>array('videos.php','videos'),
'channels' =>array('channels.php','channels'),
'my_account'=>array('myaccount.php','my_account'),
'groups' =>array('groups.php','groups'),
);
@ -35,8 +36,8 @@ function time_links()
{
$array = array
('all_time' => 'All Time',
'today' => 'Today',
'yesterday' => 'Yesterday',
'today' => 'Today',
'yesterday' => 'Yesterday',
'this_week' => 'This Week',
'last_week' => 'Last Week',
'this_month' => 'This Month',

View file

@ -765,6 +765,7 @@
switch ($type)
{
case "video":
default:
{
global $cbvid;
if($with_all)
@ -775,6 +776,18 @@
return $cats;
}
break;
case "user":
{
global $userquery;
if($with_all)
$all_cat = array(array('category_id'=>'all','category_name'=>'All'));
$cats = $userquery->get_categories();
if($all_cat)
$cats = array_merge($all_cat,$cats);
return $cats;
}
break;
}
}
function getSmartyCategoryList($params,&$Smarty)
@ -1206,7 +1219,7 @@
return true;
}
/**
* Function used to check videokey exists or not
* key_exists
@ -1800,8 +1813,8 @@
*/
function user_exists($user)
{
global $signup;
return $signup->duplicate_user($user);
global $userquery;
return $userquery->duplicate_user($user);
}
/**
@ -1810,8 +1823,8 @@
*/
function email_exists($user)
{
global $signup;
return $signup->duplicate_email($user);
global $userquery;
return $userquery->duplicate_email($user);
}
@ -2189,6 +2202,8 @@
{
if(!isset($_COOKIE['video_'.$id])){
$db->update("video",array("views","last_viewed"),array("|f|views+1",NOW())," videoid='$id' OR videokey='$vkey'");
if(userid())
$db->update("users",array("total_watched"),array("|f|total_watched+1")," userid='".userid()."'");
setcookie('video_'.$id,'watched',time()+3600);
}
}
@ -2500,7 +2515,7 @@
$flag = '';
$result = $result[0];
if(SHOW_COUNTRY_FLAG)
$flag = '<img src="'.BASEURL.'/images/icons/country/'.$result['iso2'].'.png" alt="" border="0">&nbsp;';
$flag = '<img src="'.BASEURL.'/images/icons/country/'.strtolower($result['iso2']).'.png" alt="" border="0">&nbsp;';
return $flag.$result['name_en'];
}else
return false;
@ -2516,6 +2531,16 @@
return $cbvideo->get_videos($param);
}
/**
* function used to get vidos
*/
function get_users($param)
{
global $userquery;
return $userquery->get_users($param);
}
/**
* Function used to call functions
*/
@ -2601,6 +2626,23 @@
return BASEURL.'/videos.php?cat='.$data['category_id'].'&sort='.$_GET['sort'].'&time='.$_GET['time'].'&page='.$_GET['page'].'&seo_cat_name='.$_GET['seo_cat_name'];
}
break;
case 'channels':case 'channel':
default:
{
if(!isset($_GET['sort']))
$_GET['sort'] = 'most_recent';
if(!isset($_GET['time']))
$_GET['time'] = 'all_time';
if(!isset($_GET['page']))
$_GET['page'] = 1;
if(SEO=='yes')
return BASEURL.'/channels/'.$data['category_id'].'/'.SEO($data['category_name']).'/'.$_GET['sort'].'/'.$_GET['time'].'/'.$_GET['page'];
else
return BASEURL.'/channels.php?cat='.$data['category_id'].'&sort='.$_GET['sort'].'&time='.$_GET['time'].'&page='.$_GET['page'].'&seo_cat_name='.$_GET['seo_cat_name'];
}
break;
}
}
@ -2641,6 +2683,36 @@
return BASEURL.'/videos.php?cat='.$_GET['cat'].'&sort='.$sorting.'&time='.$time.'&page='.$_GET['page'].'&seo_cat_name='.$_GET['seo_cat_name'];
}
break;
case 'channels':
case 'channel':
{
if(!isset($_GET['cat']))
$_GET['cat'] = 'all';
if(!isset($_GET['time']))
$_GET['time'] = 'all_time';
if(!isset($_GET['sort']))
$_GET['sort'] = 'most_recent';
if(!isset($_GET['page']))
$_GET['page'] = 1;
if(!isset($_GET['seo_cat_name']))
$_GET['seo_cat_name'] = 'All';
if($mode == 'sort')
$sorting = $sort;
else
$sorting = $_GET['sort'];
if($mode == 'time')
$time = $sort;
else
$time = $_GET['time'];
if(SEO=='yes')
return BASEURL.'/channels/'.$_GET['cat'].'/'.$_GET['seo_cat_name'].'/'.$sorting.'/'.$time.'/'.$_GET['page'];
else
return BASEURL.'/channels.php?cat='.$_GET['cat'].'&sort='.$sorting.'&time='.$time.'&page='.$_GET['page'].'&seo_cat_name='.$_GET['seo_cat_name'];
}
break;
}
}

View file

@ -25,9 +25,12 @@
function load_remote_upload_form($params)
{
global $file_name;
echo '<div class="upload_form_div">';
if($params['class'])
$class = ' '.$params['class'];
echo '<div class="upload_form_div'.$class.'">';
echo '<label for="check_url">Please enter remote file url</label><br>';
echo '<input type="textfield" id="remote_file_url" name="remote_file_url" class="upload_input"/>';
echo '<div align="right"><input type="button" name="check_url" id="check_url" value="Upload" onClick="check_remote_url()" ></div>';
echo '<div align="right"><input type="button" name="check_url" id="check_url" value="Upload" onClick="check_remote_url()" class="'.$params['button_class'].'"></div>';
echo '</div>';
}

View file

@ -38,9 +38,6 @@ assign('recently_added',$cbvid->get_videos($recently_added));
$cats = $db->select("video_categories",'*',NULL,'6');
assign('cat',$cats);
//Top users
$users = $db->select("users",'*',NULL,'10',"total_videos DESC");
assign('topusers',$users);
//Getting Video List
$videos = $db->select("video",'*',NULL,'15',"date_added DESC");

View file

@ -1,5 +1,7 @@
// JavaScript Document
var page = baseurl+'/ajax.php';
function GetParam( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
@ -315,7 +317,7 @@
*/
function get_video(type,div)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : type,
@ -341,7 +343,7 @@
function submit_share_form(form_id,type)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : 'share_object',
@ -366,7 +368,7 @@
function flag_object(form_id,id,type)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : 'flag_object',
@ -388,7 +390,7 @@
function add_to_fav(type,id)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : 'add_to_fav',
@ -410,7 +412,7 @@
function subscriber(user,type,result_cont)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : type,
@ -431,7 +433,7 @@
function rate_comment(cid,thumb)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : 'rate_comment',
@ -454,7 +456,7 @@
function add_comment_js(form_id,type)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : 'add_comment',
@ -488,7 +490,7 @@
function get_the_comment(id,div)
{
var page = baseurl+'/ajax.php';
$.post(page,
{
mode : 'get_comment',
@ -508,7 +510,7 @@
function add_playlist(mode,vid,form_id)
{
var page = baseurl+'/ajax.php';
switch(mode)
{
case 'add':
@ -576,4 +578,115 @@
}
break;
}
}
/**
* Function used to add and remove video from qucklist
* THIS FEATURE IS SPECIALLY ADDED ON REQUEST BY JAHANZEB HASSAN
*/
function add_quicklist(obj,vid)
{
$.post(page,
{
mode : 'quicklist',
todo : 'add',
vid : vid
},
function(data)
{
if(!data)
alert("No data");
else
{
$(obj).removeClass('add_icon');
$(obj).addClass('check_icon');
$(obj).removeAttr('onClick');
load_quicklist_box();
}
},'text');
}
/**
* Function used to remove video from qucklist
*/
function remove_qucklist(obj,vid)
{
$.post(page,
{
mode : 'quicklist',
todo : 'remove',
vid : vid
},
function(data)
{
if(!data)
alert("No data");
else
{
$(obj).slideUp();
$(obj).hide();
}
},'text');
}
/**
* Function used to load quicklist
*/
function load_quicklist_box()
{
$.post(page,
{
mode : 'getquicklistbox',
},
function(data)
{
if(!data)
$("#quicklist_box").css("display","none");
else
{
$("#quicklist_box").css("display","block");
$("#quicklist_box").html(data);
if($.cookie("quick_list_box")!="hide")
{
$("#quicklist_cont").css("display","block");
}
}
},'text');
}
function clear_quicklist()
{
$.post(page,
{
mode : 'clear_quicklist',
},
function(data)
{
load_quicklist_box();
},'text');
}
function quick_show_hide_toggle(obj)
{
$(obj).slideToggle()
if($.cookie("quick_list_box")=="show")
$.cookie("quick_list_box","hide")
else
$.cookie("quick_list_box","show")
}
/**
* Function used to set cookies
*/
function ini_cookies()
{
if(!$.cookie("quick_list_box"))
$.cookie("quick_list_box","show")
}

41
upload/js/jquery_plugs/cookie.js vendored Normal file
View file

@ -0,0 +1,41 @@
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
var expires = '';
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
var date;
if (typeof options.expires == 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
}
// CAUTION: Needed to parenthesize options.path and options.domain
// in the following expressions, otherwise they evaluate to undefined
// in the packed version for some reason...
var path = options.path ? '; path=' + (options.path) : '';
var domain = options.domain ? '; domain=' + (options.domain) : '';
var secure = options.secure ? '; secure' : '';
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
} else { // only name given, get cookie
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
};

View file

@ -109,17 +109,19 @@ if(!function_exists('validate_embed_code'))
function load_embed_form($params)
{
global $file_name;
echo '<div class="upload_form_div">';
if($params['class'])
$class = ' '.$params['class'];
echo '<div class="upload_form_div'.$class.'">';
echo '<span class="header2">Please enter embed code</span><br>';
echo '<textarea name="embed_code" cols="30" id="embed_code" rows="3" class="upload_input textarea"></textarea>';
echo '<br><br>';
echo '<span class="header2">Please Enter video duration</span><br>';
echo '<label for="duration">HH:MM:SS</label><input type="text" name="duration" id="duration" size="15" class="upload_input"/>';
echo '<label for="duration">HH:MM:SS</label><br><input type="text" name="duration" id="duration" size="15" class="upload_input"/>';
echo '<br><br>';
echo '<span class="header2">Please select video thumb</span><br>';
echo '<input type="hidden" name="step_2" value="yes" />';
echo '<input name="thumb_file" type="file" class="upload_input filefield" id="thumb_file" />';
echo '<div align="right"><input type="button" name="embed_upload" id="embed_upload" value="Upload" onClick="check_embed_code()"/></div>';
echo '<div align="right"><input type="button" name="embed_upload" id="embed_upload" value="Upload" onClick="check_embed_code()" class="'.$params['button_class'].'"/></div>';
echo '</div>';
}

View file

@ -22,7 +22,7 @@ if(!$signup->Registration()){
$msg = $LANG['usr_reg_err'];
}else{
if(isset($_POST['signup'])){
$signup->signup_user($_POST);
$userquery->signup_user($_POST);
}
}
subtitle('signup');

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 B

After

Width:  |  Height:  |  Size: 518 B

View file

@ -1,6 +1,6 @@
<div class="category_list">
<span class="cat_heading">Categories</span>
{assign var='category_list' value=func->getCategoryList(video,true)}
{assign var='category_list' value=func->getCategoryList($type,true)}
<div class="categories">
<ul>
{foreach from=$category_list item=cat}

View file

@ -1,9 +1,9 @@
<div onclick="get_ep_video('{$video.videoid}')" class="featured_vid_con">
<div class="video_thumb">
<img src="{getThumb vdetails=$video}" width="90" height="60" border="0" {ANCHOR place="video_thumb"} />
<img src="{getThumb vdetails=$video}" width="64" height="42" border="0" {ANCHOR place="video_thumb"} />
</div> <!--VIDEO_THUMB END-->
<div class="details_block">
<div class="title"><a href="#">{$video.title|truncate:25}</a><br />{$video.description|truncate:30}</div>
<div class="title"><a href="#">{$video.title|truncate:25}</a><br />{$video.description|description|truncate:30}</div>
</div> <!--DETAILS_BLOCK END-->
<div class="clearfix"></div>
</div>

View file

@ -0,0 +1,28 @@
<div class="quicklist_box_head">
<a href="javascript:void" onClick="quick_show_hide_toggle('#quicklist_cont')">show/hide</a> - Quicklist({$cbvid->total_quicklist()}) - <a href="javascript:void(0)" onClick="clear_quicklist()" >Remove</a></div>
<div id="quicklist_cont" style="display:none">
{assign var=quicklist value=$cbvid->get_quicklist()}
{if $quicklist}
<div id="my_quicklist" class="my_quicklist">
<!-- Getting Playlist Items-->
{assign var='bg' value='fff'}
{foreach from=$quicklist item=vid}
{assign var=item value=$cbvid->get_video_details($vid)}
{include file="$style_dir/blocks/quicklist/video_block.html" video=$item bg=$bg show_delete='yes' unique_id="quicklist_"}
{if $bg=='fff'}
{assign var='bg' value='EFF5F8'}
{else}
{assign var='bg' value='fff'}
{/if}
{/foreach}
<div class="clearfix"></div>
</div>
{/if}
</div>

View file

@ -0,0 +1,14 @@
<div class="playlist_item" style="background-color:#{$bg}; {if $selected==$video.videoid} border:1px solid #999{/if}" id="{$unique_id}playlist_cont_{$video.videoid}">
<div class="pl_num">{$smarty.section.item.iteration}</div>
<div class="pl_thumb"><a href="{videoLink vdetails=$video}"><img src="{getThumb vdetails=$video}" width="45" height="27" border="0" /></a></div>
<div class="pl_details" onclick="window.location='{videoLink vdetails=$video}'"><a href="{videoLink vdetails=$video}">{$video.title|truncate:30}</a></div>
{if $show_delete=='yes'}
<div class="pl_delete">
<img src="{$imageurl}/dot.gif" class="cross_icon" onclick="remove_qucklist('#{$unique_id}playlist_cont_{$video.videoid}','{$video.videoid}')" title="remove {$video.title} from qucklist" alt="quicklist"></div>
{/if}
<div class="pl_duration">{$video.duration|SetTime}</div>
<div class="clearfix"></div>
</div>

View file

@ -1,13 +1,11 @@
{if $block_type == '' || $block_type=='normal'}
<div class="user_block" id="user-{$user.userid}">
<div><a href="{$userquery->profile_link($user)}">{$user.username}</a></div>
<div class="user_mid_thumb_container" > <a href="{$userquery->profile_link($user)}"><img src="{$userquery->getuserthumb($user)}" border="0" class="user_mid_thumb"></a>
<div class="thumb_container" ><a href="{$userquery->profile_link($user)}"><img src="{$userquery->getuserthumb($user)}" border="0" class="user_thumb_normal"></a>
</div>
258213<br />
videos<br />
<br />
21245658<br />
views
<div class="prof_title"><a href="{$userquery->profile_link($user)}">{$user.username}</a></div>
{$user.total_videos|number_format} videos {$user.profile_hits|number_format} views<br />
{$user.subscribers|number_format} subscribers
Last active : {$user.last_active|nicetime}
</div>
{/if}

View file

@ -5,10 +5,11 @@
<div class="video_thumb">
<a href="{videoLink vdetails=$video}"><img src="{getThumb vdetails=$video}" width="110" height="66" border="0" {ANCHOR place="video_thumb"} /></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> <!--VIDEO_THUMB END-->
<div class="details_block">
<div class="lvl1 clearfix">
<div class="title"><a href="videos.php?v={$video.videokey}">{$video.title|truncate:30}</a></div>
<div class="title"><a href="{videoLink vdetails=$video}">{$video.title|truncate:30}</a></div>
{show_rating class='rating' rating=$video.rating ratings=$video.rated_by total='10'}

View file

@ -7,20 +7,14 @@
{assign var=items value=$cbvid->get_playlist_items($playlist.playlist_id)}
{assign var='bg' value='fff'}
{section name=item loop=$items}
<div class="playlist_item" style="background-color:#{$bg}; {if $video.videoid==$items[item].videoid} border:1px solid #999{/if}" onclick="window.location='{videoLink vdetails=$items[item]}'">
<div class="pl_num">{$smarty.section.item.iteration}</div>
<div class="pl_thumb"><img src="{getThumb vdetails=$items[item]}" width="45" height="27" /></div>
<div class="pl_details"><a href="{videoLink vdetails=$items[item]}">{$items[item].title|truncate:30}</a></div>
<div class="pl_duration">{$items[item].duration|SetTime}</div>
<div class="clearfix"></div>
</div>
{include file="$style_dir/blocks/quicklist/video_block.html" video=$items[item] selected=$selected bg=$bg}
{if $bg=='fff'}
{assign var='bg' value='EFF5F8'}
{else}
{assign var='bg' value='fff'}
{/if}
{/section}
<div class="clearfix"></div>
</div>

View file

@ -5,6 +5,7 @@
<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"} /></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>
<div class="watch_video_box_details">
<a href="#">{$video.title|truncate:30}</a><br>

View file

@ -0,0 +1,35 @@
<!-- Listing Categories -->
{include file="$style_dir/blocks/category_list.html" type='user'}
<!-- Listing Categories End -->
<div style="width:620px; float:left" class="vid_page_conainer" >
<div class="sort_cont">
<ul>
<li>Sort :</li>
{assign var=sorting_links value=func->sorting_links()}
{foreach from=$sorting_links item=name key=sort}
<li {if $smarty.get.sort==$sort} class="selected"{/if}><a href="{link name=sort sort=$sort type=channel}" >{$name}</a></li>
{/foreach}
</ul>
<div class="clearfix"></div>
</div>
<div class="time_cont">
{assign var=time_links value=func->time_links()}
{foreach from=$time_links item=name key=sort name=times}
<a href="{link name=time sort=$sort type=channel}" {if $smarty.get.time==$sort } class="selected"{/if}>{$name}</a> {if !$smarty.foreach.times.last}|{/if}
{/foreach}
</div>
{section name=u_list loop=$users}
{include file="$style_dir/blocks/user.html" user=$users[u_list]}
{/section}
<div class="clear"></div>
</div>
<div class="verticle_ad" align="center">{AD place='ad_160x600'}</div>
<div class="clear"></div>
{include file="$style_dir/blocks/pagination.html"}

View file

@ -12,6 +12,7 @@
{assign var="user_fields" value=$userquery->load_profile_fields($p)}
{assign var="user_custom_profile_fields" value=$userquery->load_custom_profile_fields($p)}
{assign var="user_custom_signup_fields" value=$userquery->load_custom_signup_fields($p)}
{assign var="signup_fields" value=$userquery->load_signup_fields($user)}
<div class="account_form">
<form method="post" name="edit_profile">
@ -41,6 +42,12 @@
<div class="clearfix"></div>
</div>
<div class="account_field_block clearfix">
<div class="account_field_label" align="right"><strong><label for="country">Category</label></strong></div>
<div class="account_field">{ANCHOR place=$signup_fields.cat.anchor_before}{$formObj->createField($signup_fields.cat)}{ANCHOR place=$signup_fields.cat.anchor_after}</div>
<div class="clearfix"></div>
</div>
</fieldset>

View file

@ -70,7 +70,7 @@ var imageurl = '{$imageurl}';
{/literal}
flash_url : "{$js}/swfupload/swfupload.swf",
upload_url: "{$baseurl}/actions/file_uploader.php",
button_image_url: "{$baseurl}/images/icons/XPButton.png",
button_image_url: "{$imageurl}/cb_button.png",
post_params:
{literal}
{
@ -96,8 +96,13 @@ var imageurl = '{$imageurl}';
// Button settings
button_placeholder_id: "spanButtonPlaceHolder",
button_width: 61,
button_width: 77,
button_height: 22,
button_text_style: ".cb_button_font { font-weight:bold; font-family:Arial, Helvetica, sans-serif;font-size:12;color:#333}",
button_text_left_padding: 18,
button_text_top_padding: 2,
button_text: '<span class="cb_button_font">Upload</span>',
// The event handler functions are defined in handlers.js
file_queued_handler : fileQueued,
@ -114,11 +119,25 @@ var imageurl = '{$imageurl}';
}
swfu = new SWFUpload(settings);
load_quicklist_box();
ini_cookies();
};
{/literal}
</script>
{/if}
{if $smarty.const.THIS_PAGE != 'upload'}
<script type="text/javascript">
{literal}
window.onload = function() {
load_quicklist_box();
ini_cookies();
}
{/literal}
</script>
{/if}
<!-- Including Plugin Headers -->
{foreach key=file item=pages from=$Cbucket->header_files}
{if is_includeable($pages)}
@ -127,23 +146,6 @@ var imageurl = '{$imageurl}';
{/foreach}
<!-- Including Plugin Headers -->
<!-- Including Module Headers -->
{php}
global $Cbucket;
$modlist = $Cbucket->moduleList;
if(!empty($modlist) && is_array($modlist))
{
foreach($modlist as $mod)
{
if(!empty($mod['module_include_file']) &&
file_exists(MODULEDIR.'/'.$mod['module_include_file']))
template(MODULEDIR.'/'.$mod['module_include_file'],false);
}
}
{/php}
<!-- Including Module Headers -->
{if $smarty.const.THIS_PAGE =='private_message' && $smarty.get.mid}
<script type="text/javascript">
var mid = {$smarty.get.mid};
@ -192,7 +194,9 @@ $(document).ready(function() {
);
get_video('recently_added','#index_vid_container');
});
</script>
{/literal}

View file

@ -1,3 +1,6 @@
<!-- Loading Quicklist Box -->
<div id="quicklist_box" class="quicklist_box"></div>
<div id="header">
<div class="logo">
<img src="{$imageurl}/dot.gif" id="logo_icon" alt="{$title} Logo" title="{$title}" >
@ -37,7 +40,7 @@
<ul>
<li><a href="{$baseurl}" {current_page page='home'}>Home</a></li>
<li><a href="{link name='videos'}" {current_page page='videos'}>Videos</a></li>
<li><a href="{link name='groups'}" {current_page page='groups'}>Groups</a></li>
<li><a href="{link name='channels'}" {current_page page='channels'}>Channels</a></li>
<li><a href="{link name='signup'}" {current_page page='signup'}>Signup</a></li>
</ul>
</div> <!--TOP_TABS END-->
@ -49,8 +52,7 @@
<li><a href="videos.php?cat={$cat[c_list].category_id}">{$cat[c_list].category_name}</a></li>
{/section}
</ul>
<div class="search_con">
<div class="search_con">
<form action="{$search_result}" method="get" name="search" id="search" style="margin:0px; padding:0px;">
<input name="query" id="query" type="text" class="searchbar" value="{$query}" />
<input name="submit" type="submit" class="searchbutton" value="Search" />
@ -58,4 +60,4 @@
</div> <!--SEARCH_CON END-->
</div> <!--NAVI END-->
</div> <!--NAVI_CON END-->
<div class="clear"></div>
<div class="clearfix"></div>

View file

@ -52,27 +52,46 @@ SetId('Featured');
<div class="ads">300x250 AD</div>
</div> <!--BOX END-->
<div class="box">
<div class="ads">Another 300x250 AD</div>
</div> <!--BOX END-->
<div class="box">
<div class="login">
<img src="{$imageurl}/dot.gif" class="happyface" alt="{$title}" />
<div class="reg"><a href="signup.php">Click Here to Register</a></div>
<div class="log"><a href="#user_login">Click Here to Login</a></div>
</div>
{if !$userquery->login_check('',true)}
<div class="login">
<div class="login_title">{$title} Members</div>
<div class="some_info">Watch, Upload, Share and more</div>
<div class="regist_link"><a href="{link name='signup'}">Register for free</a></div>
<div class="login_link"><a href="{link name='signup'}">Login</a></div>
</div> <!--BOX END-->
{/if}
<!-- Getting Random videos -->
{get_videos assign=ran_vids limit=9 order=RAND()}
{if $ran_vids}
<div style="width:300px; margin:auto">
<span class="watch_vids_head" onclick='$(this).toggleClass("watch_vids_head_closed");$("#rand_vids").slideToggle("fast")'>Random Videos</span>
<div class="watch_vids_cont" id="rand_vids" style="background-color:#FFF">
{section name=uvlist loop=$ran_vids}
{include file="$style_dir/blocks/watch_video/video_box.html" video=$ran_vids[uvlist]}
{/section}
<div class="clearfix"></div>
</div>
<div style="height:10px"></div>
</div>
{/if}
<!-- Getting Random videos -->
<div class="box">
<div class="top_bg">
<h2>Top 10 Users</h2>
{get_users assign=topusers limit=10}
{section name=tusers loop=$topusers}
<div class="top_user">
<div class="avatar"><img src="{$avatardir}/{$topusers[tusers].avatar}" width="30" height="30" border="0" /></div>
<span style="float:left"><a href="#">{ $topusers[tusers].username }</a></span>
<span style="float:right">Videos: <a href="#">{ $topusers[tusers].total_videos }</a></span>
<div class="user_no">{$smarty.section.tusers.iteration}</div>
<div class="top_user">
<div class="user_no">{$smarty.section.tusers.iteration}</div>
<div class="avatar"><a href="{$userquery->profile_link($topusers[tusers])}"><img src="{$userquery->getuserthumb($topusers[tusers],'small')}" width="30" height="30" border="0" class="vsmall_thumb" /></a></div>
<div class="utitle"><a href="{$userquery->profile_link($topusers[tusers])}">{$topusers[tusers].username}</a>views : {$topusers[tusers].profile_hits|number_format} - videos : {$topusers[tusers].total_videos|number_format}
</div>
<div class="clearfix"></div>
</div>
{/section}
</div>

View file

@ -1,96 +1,68 @@
{assign var='required_fields' value=$signup->load_signup_fields()}
{assign var='custom_field' value=$signup->custom_signup_fields}
{assign var='required_fields' value=$userquery->load_signup_fields()}
{assign var='custom_field' value=$userquery->custom_signup_fields}
<table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" class="header1">{$LANG.members} {$LANG.login}</td>
<td align="left" class="header1">{$LANG.user_create_your}{$title} {$LANG.account}</td>
</tr>
<tr>
<td width="50%" align="center" valign="top">
<table width="98%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td>{$LANG.user_already_have} {$title}</td>
</tr>
<tr>
<td align="left" bgcolor="#F0F0F0">
<form name="login_form" action="{$signup_link}" method="post">
<table width="98%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="33%" align="right" valign="top" class="header3">{$LANG.username}:</td>
<td width="67%"><label>
<input name="username" type="text" id="username" size="30">
</label></td>
</tr>
<tr>
<td align="right" valign="top" class="header3">{$LANG.password}:</td>
<td><label>
<input name="password" type="password" id="password" size="30">
</label></td>
</tr>
<tr>
<td align="right" valign="top" class="header3">&nbsp;</td>
<td bgcolor="#F0F0F0"><input type="submit" name="login" id="button" value="{$LANG.login}" ></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="{$baseurl}/forgot.php">{$LANG.user_forgot_password}</a> | <a href="{$baseurl}/forgot.php">{$LANG.user_forgot_username}</a></td>
</tr>
</table> </form> </td>
</tr>
<tr>
<td align="left"><hr width="95%" size="1" noshade="noshade" /></td>
</tr>
<tr>
<td align="left" class="header1">{$LANG.what_is} {$title}?</td>
</tr>
<tr>
<td align="left"><p>{$title} is the home for video online:</p>
<div class="signup_left">
<h2>Members Login</h2>
if you already have {$title} account, please login here
<div class="signup_container">
<form name="login_form" id="login_form" method="post" action="" >
<label for="login_username" class="label">{lang code='username'} : </label>
<div class="input_container">
<input name="username" type="text" id="login_username" size="30" >
</div>
<div class="clearfix"></div>
<label for="login_password" class="label">{lang code='password'} : </label>
<div class="input_container">
<input name="password" type="password" id="login_password" size="30" >
</div>
<div class="clearfix"></div>
<label for="" class="label">&nbsp;</label>
<div class="input_container">
<input type="submit" name="login" class="cb_button_2"value="{lang code='login'}" >
</div>
<div class="clearfix"></div>
<div align="center"><a href="{$baseurl}/forgot.php">{$LANG.user_forgot_password}</a> | <a href="{$baseurl}/forgot.php">{$LANG.user_forgot_username}</a></div>
</form>
</div>
<p>{$title} is the home for video online:</p>
<ul><li><strong>Watch</strong> millions of videos</li><li><strong>Share favorites</strong> with friends and family</li><li><strong>Connect with other users</strong> who share your {$LANG.interests}</li><li><strong>Upload your videos</strong> to a worldwide audience</li></ul>
<h3>{$LANG.reg_now_join} {$title} {$LANG.community}!</h3></td> </tr>
</table>
</form></td>
<td width="50%" align="center" valign="top"><form id="form2" name="form2" method="post" action="">
<table width="98%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td>{$LANG.user_reg_msg_0}{$title} {$LANG.user_reg_msg_1}</td>
</tr>
<tr>
<td align="left" bgcolor="#F0F0F0"><table width="98%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td height="30" colspan="2" align="right" class="tips">{$LANG.user_all_fields_req}</td>
</tr>
{foreach from=$required_fields item=field}
<tr>
<td width="33%" align="right" valign="top" class="header3">{$field.title}* :</td>
<td width="67%">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}<br />
{$field.hint_2}</td>
</tr>
{/foreach}
{foreach from=$custom_field item=field}
<tr>
<td width="33%" align="right" valign="top" class="header3">{$field.title}* :</td>
<td width="67%">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}<br />
{$field.hint_2}</td>
</tr>
{/foreach}
<tr>
<td colspan="2" align="center" valign="top" class="header3"><input name="agree" type="checkbox" id="agree" value="yes" checked="checked" />
- {$LANG.user_i_agree_to_the} <a href="{$termsofuse_link}" target="_blank" style="text-decoration:underline">{$LANG.tos_title}</a> and <a href="{$privacy_link}" target="_blank" style="text-decoration:underline">{$LANG.privacy_policy}</a>
<label></label></td>
</tr>
<tr>
<td colspan="2" align="center" valign="top" class="header3"><label>
<input type="submit" name="signup" id="button" value="{$LANG.signup}" />
</label></td>
</tr>
</table></td>
</tr>
<h3>{$LANG.reg_now_join} {$title} {$LANG.community}!</h3>
</table>
</form>
</td>
</tr>
</table>
</div>
<div class="signup_right">
<h2>New Members Signup Here</h2>
Register as ClipBucket v2 member, its free and easy just
<div class="signup_container">
<form name="login_form" id="login_form" method="post" action="" >
{foreach from=$required_fields item=field}
<label for="{$field.id}" class="label">{$field.title}</label>
<div class="input_container">
{if $field.hint_1}
<div class="hint">{$field.hint_1}</div>
{/if}
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}
{if $field.hint_2}
<div class="hint">{$field.hint_2}</div>
{/if}
</div>
<div class="clearfix"></div>
{/foreach}
<div align="center">
<input name="agree" type="checkbox" id="agree" value="yes" checked="checked" />
- {$LANG.user_i_agree_to_the} <a href="{$termsofuse_link}" target="_blank" style="text-decoration:underline">{$LANG.tos_title}</a> and <a href="{$privacy_link}" target="_blank" style="text-decoration:underline">{$LANG.privacy_policy}</a>
</div>
<label for="" class="label">&nbsp;</label>
<div class="input_container">
<input type="submit" name="signup" class="cb_button_2" value="{lang code='signup'}" style="margin-top:10px" />
</div>
<div class="clearfix"></div>
</form>
</div>
</div>
<div class="clearfix"></div>

View file

@ -1,132 +1,101 @@
</body><head>
{if $show_upload != 'no'}
{if $data.usr_status !=''}
<body>
<table width="930" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#B9E3FF" style="border:solid 1px #0099CC;">
<tr>
<td ><table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5%"><img src="{$imageurl}/alert.png" /></td>
<td width="95%"><span class="tips">{$LANG.vdo_inactive_msg}</span> <a href="{$baseurl}/activation.php">{$LANG.vdo_click_here}</a></td>
</tr>
</table></td>
</tr>
</table>
{else}
<script src="{$js}/flashobject.js"></script>
<script src="{$js}/uploader.js"></script>
{$java}
</head>
<body>
{assign var='requiredFields' value=$Upload->loadRequiredFields()}
{assign var='optionFields' value=$Upload->loadOptionFields()}
{assign var='locationFields' value=$Upload->loadLocationFields()}
{assign var='cust_fields' value=$Upload->custom_form_fields}
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
<div id="link_button">
<ul>
{foreach from=$plugin_list item=plugin}
{if $plugin.plugin_type == upload}
{$plugin.plugin_link}
{/if}
{/foreach}
</ul>
</div>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">{if $step =='1'}
<form name="upload_01" method="post" action="">
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="left" valign="middle" class="header1" >{$LANG.vdo_upload_step1} <span class="header2">{$LANG.vdo_upload_step2}</span></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#F0F0F0"><img src="{$imageurl}/uploader_tr.gif"></td>
</tr>
<tr bgcolor="#F6F6F6">
<td align="left" valign="middle" bgcolor="#F0F0F0"><table width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td colspan="2" align="left" class="header2">{$LANG.vdo_video_details}</td>
</tr>
{foreach from=$requiredFields item=field}
<tr>
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
<td class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
<tr>
<td height="130" colspan="2" align="right"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td colspan="2" align="left" class="header2">{$LANG.vdo_date_loc}</td>
</tr>
{foreach from=$locationFields item=field}
<tr>
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
<td width="347" class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table></td>
</tr>
<tr>
<td height="80" colspan="2" align="right"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td colspan="2" align="left" class="header2">{$LANG.vdo_share_opt}</td>
</tr>
{foreach from=$optionFields item=field}
<tr>
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
<td class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
{foreach from=$cust_fields item=field}
<tr>
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
<td class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table></td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#F6F6F6">
<td align="right" valign="middle" bgcolor="#F0F0F0"><img src="{$imageurl}/uploader_br.gif"></td>
</tr>
<tr>
<td align="center" valign="middle">
<input type="submit" name="submit_data" id="button" value="{$LANG.vdo_continue_upload}" onClick="return validate_upload_form(upload_01)"> </td>
</tr>
</table>
</form>
{/if}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">
<div class="upload_left">
<!-- STEP 1 - UPLOADING VIDEO DETAILS -->
{if $step =='1'}
<div class="upload_info">
<h2>Video Upload Step 1 of 1</h2>
<form name="upload_form" class="upload_form" method="post" action="">
<!-- Required Fields -->
<fieldset>
<span class="form_head">required fields</span>
{foreach from=$requiredFields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
</fieldset>
<!-- Required Fields -->
<div id="more_fields" style="display:none">
<!-- Location Fields -->
<fieldset>
<span class="form_head">{lang code='vdo_date_loc'}</span>
{foreach from=$locationFields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
</fieldset>
<!-- Location Fields -->
<!-- Sharing Fields -->
<fieldset>
<span class="form_head">{lang code='vdo_share_opt'}</span>
{foreach from=$optionFields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
</fieldset>
<!-- Sharing Fields -->
{if $cust_fields}
<!-- Other Custom Fields -->
<fieldset>
<span class="form_head">{lang code='Custom Fields'}</span>
{foreach from=$cust_fields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
</fieldset>
<!-- Other Custom Fields -->
{/if}
</div>
<span class="more_button"><a href="javascript:void()" onClick="$('#more_fields').slideToggle();$('.more_button').toggleClass('more_button_up');">More Options</a></span>
<div align="right" style="margin-top:10px"><input type="submit" name="submit_data" class="cb_button_2" value="{lang code='vdo_continue_upload'}"></div>
</form>
</div>
{/if}
<!-- STEP 1 ENDS HERE -->
<!-- STEP 2 - UPLOADING VIDEO FILES -->
{if $step =="2"}
<h2>Video Upload - Step 2 of 2</h2>
<form action="{$upload_link}" method="post" enctype="multipart/form-data" name="{$upload_form_name}" id="{$upload_form_name}" >
{$Upload->load_post_fields()}
<input name="file_name" type="hidden" value="{$file_name}">
@ -134,48 +103,41 @@
{foreach from=$opt_list item=opt key=divid}
<div class="upload_opt" id="{$divid}">
<span class="header1">{$opt.title}</span>
{load_form name=$opt.load_func}
<span class="upload_opt_head">{$opt.title}</span>
{load_form name=$opt.load_func button_class='cb_button_2' class='upload_form'}
</div>
{/foreach}
</form>
{/if}
<!-- STEP 2 ENDS HERE -->
<!-- STEP 3 - VIEWING SUCCESSFULL PAGE -->
{if $step==3}
<table width="445" border="0" align="center" cellspacing="0">
<tr>
<td width="50%" class="header1" style="padding-left:5px">{$LANG.vdo_video_upload_complete}</td>
</tr>
<tr>
<td width="50%" align="right" bgcolor="#F0F0F0" style="padding:0px; margin:0px"><img src="{$imageurl}/uploader_tr.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="50%" bgcolor="#F0F0F0" style="padding:5px"><span class="header1">{$LANG.vdo_thanks_you_upload_complete_1}.</span><br>
<div class="upload_info">
<h2>{lang code='vdo_video_upload_complete'}</h2>
<span class="header1">{$LANG.vdo_thanks_you_upload_complete_1}.</span><br>
<span class="tips">{$LANG.vdo_thanks_you_upload_complete_2} <a href="{$manage_videos}"><strong>{$LANG.com_my_videos}</strong></a> {$LANG.vdo_after_it_has_process} </span><span class="header1"><br>
</span></td>
</tr>
<tr>
<td width="50%" align="right" bgcolor="#F0F0F0" style="padding:0px; margin:0px"><img src="{$imageurl}/uploader_br.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="50%" align="right" style="padding:0px; margin:0px">&nbsp;</td>
</tr>
<tr>
<td align="center" style="padding:0px; margin:0px">
<div id="link_button" align="center">
<ul>
<li><a href="{$upload_link}" >{$LANG.vdo_upload_another_video}</a></li>
<li><a href="{$manage_videos}" >{$LANG.vdo_goto_my_videos}</a></li>
</ul>
</div></td>
</tr>
</table>
</span>
<div class="upload_link_button" align="center">
<ul>
<li><a href="{$upload_link}" >{$LANG.vdo_upload_another_video}</a></li>
<li><a href="{$manage_videos}" >{$LANG.vdo_goto_my_videos}</a></li>
</ul>
<div class='clearfix'></div>
</div>
</div>
{/if}
</td>
<td width="450">&nbsp;</td>
</tr>
</table>
{/if}
{/if}
<!-- STEP 3 ENDS HERE -->
</div>
<div class="upload_right">
<div class="instructions">
<p><strong><strong>Important:</strong> Do not upload any TV shows, music videos, music concerts, or commercials without permission unless they consist entirely of content you created yourself.</strong></p>
<p>The <a href="#">Copyright Tips page</a> and the <a href="#">Community Guidelines</a> can help you determine whether your video infringes someone else's copyright.</p>
<p>By clicking "Upload Video", you are representing that this video does not violate {$title}'s <a id="terms-of-use-link" href="#">Terms of Use</a> and that you own all copyrights in this video or have authorization to upload it.</p>
</div>
</div>
<div class="clearfix"></div>

View file

@ -14,7 +14,7 @@
<div class="channel_box">
<div class="channel_inner_box channel_top">
<div class="channel_top_user_box">
<div class="usr_small_thumb"><img src="{$userquery->getUserThumb($u,'small')}" class="user_small_thumb" alt="{$u.username}"></div>
<div class="usr_small_thumb"><img src="{$userquery->getUserThumb($u,'small')}" class="user_small_thumb" alt="{$u.username}" style="max-height:30px; max-width:50px"></div>
<div class="usr_channel">{lang code='user_s_channel' assign='usr_s'}{$usr_s|sprintf:$u.username} </div>
</div>
{assign var='channel_links' value=$userquery->get_inner_channel_top_links($u)}
@ -41,7 +41,7 @@
This content requires JavaScript and Macromedia Flash Player 7 or higher. <a href=http://www.macromedia.com/go/getflash/>Get Flash</a><br/><br/>
</div>
<script language="javascript">
{FlashPlayer vdetails = $vdo height=$Cbucket->configs.channel_player_height width=$Cbucket->configs.channel_player_width}
{FlashPlayer vdetails = $user_vdo height=$Cbucket->configs.channel_player_height width=$Cbucket->configs.channel_player_width}
</script>
</div>
<div align="center" style="width:300px; float:left">{AD place=336x280}</div>
@ -64,7 +64,7 @@
<div class="usr_thumb_container" align="center">
<img src="{$userquery->getUserThumb($u)}" alt="{$u.username}" class="user_thumb">
</div>
<span class="cb_button" onclick="subscriber('{$u.userid}','subscribe_user','result_cont')">{lang code='subscribe'}</span><br>
<span class="cb_button" onClick="subscriber('{$u.userid}','subscribe_user','result_cont')">{lang code='subscribe'}</span><br>
{assign var='channel_action_links' value=$userquery->get_channel_action_links($u)}
<ul class="channel_action_links">
{foreach from=$channel_action_links item=link key=link_title}
@ -192,7 +192,7 @@
{ANCHOR place='channel_box'}
<!-- Comments -->
<div class="channel_inner_box" >
<div class="channel_inner_box" style="font-weight:normal" >
<span class="channel_heading">{lang code='comments'|capitalize:true}</span>
<hr width="100%" size="1" noshade><!-- Displaying Comments -->
{include file="$style_dir/blocks/comments/comments.html" id=$u.userid type=c}<hr width="100%" size="1" noshade>

View file

@ -126,7 +126,7 @@
<!-- Playlist -->
{include file="$style_dir/blocks/watch_video/playlist_box.html" video=$vdo }
{include file="$style_dir/blocks/watch_video/playlist_box.html" selected=$vdo.videoid }
<!-- Playlist End-->

View file

@ -55,7 +55,7 @@ Rating
.content_con { width:660px; margin:0px auto; padding:0px; float:left; margin-left:8px; }
.login_con { width:325px; float:right; margin:0px; padding:0px; position:absolute; top:0px; right:0px; z-index:999; }
.side_con { background:url(../images/side_bg.png) top repeat-x; width:305px; min-height:391px; border:1px solid #ccc; background-color:#f3f3f3; margin:0px 8px 0px 0px; padding:5px; float:right; }
.feature_con { background:url(../images/feature_bg.png) repeat-x; border:1px solid #1b6fbc; background-color:#0066ff; min-height:287px; padding-bottom:4px;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;}
.feature_con { background:url(../images/simple_gradient.png) bottom repeat-x; border:2px solid #ccc; background-color:#fff; min-height:287px; padding-bottom:4px;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;}
.search_con { float:right; margin:0px; padding:0px;margin-right:4px; margin-top:5px; }
.foot_s_con { width:500px; margin:10px auto 0px; padding:10px 0px 0px; }
@ -87,10 +87,10 @@ span.remember { font-size:10px; }
.user_login .txt a:hover { background:#cc0000; color:#fff; }
.user_login .links { font-size:10px; }
/* TOP TABS */
.top_tabs { margin:0px; padding:0px; clear:both; }
.top_tabs { margin:0px; padding:0px; clear:both;overflow:hidden }
.top_tabs ul { margin:0px; padding:0px; list-style:none; float:left; position:relative; left:50%; }
.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; -moz-border-radius:5px 5px 0px 0px; -webkit-border-radius:5px 5px 0px 0px; 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-radius:5px 5px 0px 0px; 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.selected { background:url(../images/nav_grads.png) top repeat-x; border:1px solid #006699; border-bottom:0px none; }
@ -112,7 +112,7 @@ span.remember { font-size:10px; }
/* FEATURED VIDEO SECTION */
.feature_left { float:left; margin:0px; padding:0px; width:460px }
.feature_left .feature_heading{background-image:url(../images/nav_grads.png); background-position:0px -417px; height:24px; line-height:24px; color:#fff; width:98%; display:block; margin-top:10px;border-radius:0px 8px 8px 0px;-webkit-border-radius:0px 8px 8px 0px;-moz-border-radius:0px 8px 8px 0px; padding-left:10px}
.feature_left .feature_heading{background-image:url(../images/nav_grads.png); background-position:0px -417px; height:24px; line-height:24px; color:#0099cc; width:98%; display:block; margin-top:10px;border-radius:0px 8px 8px 0px;-webkit-border-radius:0px 8px 8px 0px;-moz-border-radius:0px 8px 8px 0px; padding-left:10px}
.feature_right { float:right; width:190px; margin:4px 3px 0px 0px;font-size:10px; overflow:auto; height:360px;}
.feature_shadow { background:url(../images/shadows.png) 0px -31px no-repeat; width:660px; height:35px; margin:0px; padding:0px; }
@ -131,11 +131,12 @@ span.remember { font-size:10px; }
.feature_right ul { margin:0px; padding:0px; list-style:none; }
.feature_right ul li { padding:0px; margin:0px; margin-bottom:3px; color:#193f77; font-size:9px; }
.feature_right .sp { background:url(../images/line_sps.png) top repeat-x; margin:5px 0px; padding:0px; height:2px; }
.feature_right .details_block { float:right; width:60px; margin:0px; padding:0px; }
.feature_right .title a{font-size:10px; font-weight:bold; text-decoration:none}
.feature_right .details_block { float:right; width:90px; margin:0px; padding:0px; color:#999 }
.feature_right .title a{font-size:10px; font-weight:bold; text-decoration:none; color:#fff}
.feature_right .title { font-size:10px; clear:both; padding:0px; width:60px; overflow:hidden}
.featured_vid_con{cursor:pointer; background:#FFF url(../images/nav_grads.png) -0px -260px; padding:5px; border-radius:5px 0px 0px 5px;-webkit-border-radius:5px 0px 0px 5px;-moz-border-radius:5px 0px 0px 5px; background-color:#FFF; margin:3px 0px 3px}
.featured_vid_con:hover{background-position:-0px -336px; }
.featured_vid_con .video_thumb{border:0px; padding:0px;}
.featured_vid_con:hover{background-position:-0px -338px; }
.featured_video_details{width:440px; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; background-color:#fff; padding:5px; margin:5px}
.featured_video_player{width:440px; height:250px; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; background-color:#000; padding:5px; margin:5px}
@ -195,24 +196,34 @@ span.remember { font-size:10px; }
.vertical .lvl4 { font-size:10px; }
/* SIDEBAR INDEX */
.box { background:#FFF; border:1px solid #b6e2fe; padding:2px; width:300px; margin:0px auto 10px; }
.box { background:#FFF; border:1px solid #b6e2fe; padding:2px; width:300px; margin:0px auto 10px; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;-khtml-border-radius:5px }
/* LOGIN/REGISTER BOX */
.login { background:url(../images/login_grad.png) repeat-x; min-height:79px; background-color:#8d8b8b; margin:0px; padding:0px 3px 0px;}
.login .happyface { background:url(../images/blocks.png) right top no-repeat; width:77px; height:73px; float:right; margin-top:5px; }
.login .reg, .login .log { background:url(../images/blocks.png) 0px -47px no-repeat; width:203px; height:27px; padding:0px 5px; line-height:27px; float:left; font-size:10px; margin:9px 0px 4px 0px; }
.login .log { background:url(../images/blocks.png) 0px -83px no-repeat; margin:0px 0px 0px 0px; }
.login .reg a, .login .log a, .login .reg a:visited, .login .log a:visited { display:block; color:#232323; text-decoration:none; }
.login .reg a:hover, .login .log a:hover, .login .reg a:active, .login .log a:active { display:block; color:#232323; text-decoration:underline; }
.login { background:url(../images/main_box.png) repeat-x; height:92px; width:300px; position:relative; margin:auto}
.login_box_cont{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;}
.login .login_title{font-size:12px; font-weight:bold; text-transform:uppercase; font-family:tahoma; color:#0099cc; margin:9px 0px 0px 91px; height:23px; line-height:23px; text-align:center}
.login .some_info{ margin-left:91px; font-size:10px; font-weight:bold; text-transform:uppercase; font-family:tahoma; color:#333; height:30px; padding-top:15px}
.login .regist_link{width:147px; height:16px; background-image:url(../images/main_box.png); background-position:-0px -92px; position:absolute; bottom:7px; left:87px; text-align:center; line-height:16px}
.login .regist_link a{color:#FFF; text-transform:uppercase; text-decoration:none; font-size:10px; font-weight:bold}
.login .login_link{width:54px; height:16px; background-image:url(../images/main_box.png); background-position:-152px -92px; position:absolute; bottom:7px; left:239px; text-align:center; line-height:16px}
.login .login_link a{color:#0099cc; text-transform:uppercase; text-decoration:none; font-size:10px; font-weight:bold}
/* TOP USERS */
.top_bg { background:url(../images/top_users_grad.png) repeat-x; min-height:81px; background-color:#ccfeff; border:1px solid #85a8c8; margin:0px; padding:0px 2px; }
.top_bg { background: url(../images/simple_gradient.png) repeat-x bottom; min-height:81px; background-color:#fff; border:1px solid #85a8c8; margin:0px; padding:0px 2px; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;-khtml-border-radius:5px }
.top_bg h2 { margin:5px 2px 8px; padding:0px; color:#21759b; font-size:18px; font-family:Tahoma; text-transform:uppercase; font-weight:bold; }
.top_user { background:url(../images/top_user.png) repeat-x; height:35px; border:1px solid #CCC; margin-bottom:15px; line-height:35px; font-size:9px; padding:0px 8px; position:relative; background-color:#FFF; }
.avatar { width:30px; height:30px; background:#232323; padding:0px; margin:2px 5px 0px 0px; vertical-align:super; float:left; }
.top_user > .user_no { background:url(../images/blocks.png) -231px -56px no-repeat; width:19px; height:45px; position:absolute; top:-5px; right:85px; font-size:11px; color:#FFF; text-shadow:1px 1px 1px #6fa1b7; text-indent:4px; line-height:45px; }
.top_user { background:url(../images/top_user.png) repeat-x; height:35px; border:1px solid #CCC; margin-bottom:15px; font-size:9px; padding:0px 8px; position:relative; background-color:#FFF; color:#666}
.top_user:hover{background-position:bottom}
.top_user a{font-size:12px; font-family:Arial, Helvetica, sans-serif; color:#333; text-decoration:none; font-weight:bold}
.top_user a:hover{color:#0099cc}
.avatar { width:30px; height:30px; padding:0px; margin:2px 5px 0px 20px; vertical-align:super; float:left; border:1px #ccc solid }
.top_user > .user_no { background:url(../images/blocks.png) -231px -56px no-repeat; width:19px; height:45px; position:absolute; top:-5px; left:5px; font-size:11px; color:#FFF; text-shadow:1px 1px 1px #6fa1b7; text-indent:4px; line-height:45px; }
.top_bg .utitle { margin-top:5px}
.top_bg .utitle a{display:block}
/* FOOTER SEARCH */
.search_footer { background:url(../images/search_footer.png) repeat-x; height:57px; margin:0px; padding:0px; clear:both; }
.advance { background:url(../images/blocks.png) left -123px no-repeat; width:33px; height:35px; text-indent:-9000px; float:left; margin:2px 6px 0px 0px; padding:0px; }
@ -492,12 +503,14 @@ display:inline-block; width:18px; height:18px; line-height:18px; text-align:cent
.watch_vids_cont{width:300px; overflow:hidden; padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid #CCC; padding-top:10px}
.playlist_item{padding:5px; margin:3px 0px 3px 0px; height:30px; cursor:pointer}
.playlist_item{padding:5px; margin:3px 0px 3px 0px; height:30px;}
.playlist_item .pl_num{ width:25px; text-align:center; float:left; line-height:30px; height:30px;font-size:10px; color:#666}
.playlist_item .pl_thumb{width:45px; height:27px; border:2px solid #999;float:left; margin-right:5px }
.playlist_item .pl_details{font-size:10px; width:160px; float:left}
.playlist_item .pl_details{font-size:10px; width:160px; float:left; cursor:pointer}
.playlist_item .pl_details a{font-size:10px; color:#0099cc; text-decoration:none; font-weight:bold}
.playlist_item .pl_duration{font-size:10px; color:#666}
.playlist_item .pl_duration{font-size:10px; color:#666; float:left}
.playlist_item .pl_delete{font-size:10px; color:#666;float:right}
.videosharing{width:280px;}
.videosharing input{border:1px solid #999; color:#999; font-size:10px}
@ -505,3 +518,68 @@ display:inline-block; width:18px; height:18px; line-height:18px; text-align:cent
.user_block_small{width:70px; height:80px; margin:3px; float:left; padding:5px; font-size:10px; border:1px solid #CCC}
.user_block_small a{font-size:11px; font-weight:bold}
.user_mid_thumb{width:60px; height:60px;display:inline; border:1px solid #999; padding:2px;}
/** UPLOAD CSS **/
.upload_left{width:675px; float:left; padding:0px 5px}
.upload_opt,.upload_left .upload_info{ background:#fff url(../images/simple_gradient.png) repeat-x bottom;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; padding:5px; border:1px solid #f0f0f0;}
.upload_right{width:300px; float:right; margin-right:10px}
.upload_right .instructions{background:#fff url(../images/simple_gradient.png) repeat-x bottom; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; padding:5px; border:1px solid #f0f0f0; }
.upload_form{padding:0px; margin:0px;}
.upload_form fieldset{padding:5px; border:none; }
.upload_form fieldset .form_head{display:block; background-color:#0099cc; padding:3px; color:#fff; font-size:13px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; margin-bottom:10px}
.upload_form .label{cursor:pointer; display:block; font-size:14px; text-transform:uppercase; font-family:Arial, Helvetica, sans-serif; font-weight:bold; margin-bottom:2px}
.upload_form input[type=text],.upload_form input[type=textfield],.upload_form textarea{border:1px solid #999; width:400px}
.upload_form .field{margin-bottom:10px}
.upload_form .hint{font-size:11px}
.upload_form label{cursor:pointer}
.more_button,.more_button_up {display:block; border-bottom:1px #CCC solid; border-top:1px #CCC solid; color:#999; background:#fff url(../images/nav_grads.png) no-repeat right -441px; padding:2px; height:13px }
.more_button_up{ background-position:right -458px}
.more_button_up a,.more_button a{color:#333; text-decoration:none; font-weight:bold; font-family:Arial, Helvetica, sans-serif;font-size:11px; display:block}.more_button_up a,.more_button a:hover{color:#0099cc}
.upload_opt{ margin-bottom:10px}
.upload_opt_head{font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif}
.swfupload{margin:0px; margin-bottom:-5px}
.upload_form_div{margin:3px; border:1px solid #EAEAEA; background:#FFF; padding:3px;}
.divStatus{font-weight:bold}
.upload_link_button ul{margin:0px; padding:0px; display:block; padding:4px; margin-top:10px}
.upload_link_button ul li{list-style:none; float:left; display:block; margin-right:10px}
.upload_link_button a{text-decoration:none}
/** SIGNUP CSS **/
.signup_left{width:480px; float:left; padding:5px; padding-left:15px}
.signup_right{width:480px; float:right;padding:5px; padding-right:15px}
.signup_container{background:#FFF url(../images/simple_gradient.png) repeat-x bottom;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; padding:5px; border:1px solid #f0f0f0;}
.signup_container .label{ width:170px; float:left; text-align:right; margin-right:5px}
.signup_container .input_container{float:left; width:220px; margin-bottom:5px}
.signup_container input[type=textfield],.signup_container input[type=text],.signup_container input[type=password]{width:220px; border:1px solid #999;}
.signup_container .hint{display:block; font-size:11px}
/**
* Channel and user
*/
.user_block{ display:block; width:120px; height:180px; float:left; margin:10px; font-size:10px}
.user_block .thumb_container{ width:120px; height:120px; overflow:hidden; border:1px solid #99ccff; padding:1px; display:inline-table; vertical-align:middle}
.user_thumb_normal{width:120px; height:120px}
.prof_title a{font-weight:bold; text-decoration:none}
/**
* QUCKLIST ICON
*/
.cross_icon,.check_icon,.add_icon{background-image:url(../images/quick_icon.png); height:14px; width:14px; background-position:-0px -14px ; background-repeat:no-repeat; cursor:pointer;position:absolute; left:1px; bottom:1px;}
.check_icon{background-position:0px 0px}
.cross_icon{background-position:0px -28px; position:relative; z-index:10}
.quicklist_box{bottom:0px; right:0px; padding:5px; background-color:#333; width:300px; color:#fff; position:fixed; z-index:1000; border-radius:5px 5px 0px 0px;-moz-border-radius:5px 5px 0px 0px;-webkit-border-radius:5px 5px 0px 0px}
.my_quicklist{max-height:325px; overflow:auto; padding-right:8px}
.quicklist_box_head{background-image:url(../images/simple_gradient.png); background-position:bottom; height:20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; padding:5px; line-height:20px; color:#333; font-size:11px; font-weight:bold}
.quicklist_box_head a{color:#0099cc; font-size:11px; font-weight:bold; text-decoration:none}

View file

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