ADDED : CONFIGURATION OPTIONS

ADDED : ADD GROUP OPTION
ADDED : MANAGE GROUPS
ADDED : ADMIN MEMBER SEARCH
UPDATE : MASS EMAIL
ADDED : ADMIN GROUPS search
ADDED : ADD MEMBER FUNCTION
ADDED : ClipBucket News
ADDED : Private Notes
ADDED : Quick actions
ADDED : NEW PAGING SYSTEM
This commit is contained in:
Arslan Hassan 2010-01-05 09:47:10 +00:00
parent c8f50e3ccd
commit b08038f43d
52 changed files with 2029 additions and 817 deletions

34
upload/actions/admin.php Normal file
View file

@ -0,0 +1,34 @@
<?php
/**
* This file is used to update
* Comment
* Author : Arslan Hassan
* Since : Jan 02 2009
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$mode = $_POST['mode'];
switch($mode)
{
case 'add_note':
{
$value = mysql_clean($_POST['note']);
$myquery->insert_note($value);
$array['note'] = mysql_clean($value);
$array['id'] = $db->insert_id();
echo json_encode($array);
}
break;
case 'delete_note':
{
$id = mysql_clean($_POST['id']);
$myquery->delete_note($id);
}
break;
}
?>

View file

@ -27,8 +27,9 @@ if(!empty($tmp_file)){
$temp_file = TEMP_DIR.'/'.$tmp_file.'.'.$tmp_ext;
$orig_file = CON_DIR.'/'.$tmp_file.'.'.$ext;
//copy($temp_file,$orig_file);
rename($temp_file,$orig_file);
//copy($temp_file,$orig_file);
rename($temp_file,$orig_file);
$configs = array
(
'use_video_rate' => true,
@ -37,13 +38,14 @@ rename($temp_file,$orig_file);
'use_audio_bit_rate' => true,
'use_audio_codec' => true,
'format' => 'flv',
'video_codec'=>'flv',
'audio_codec'=>'libfaac',
'audio_rate'=>22050,
'audio_bitrate'=>128000,
'video_bitrate'=>512000,
'video_width'=>400,
'video_height'=>300,
'video_codec'=> config('video_codec'),
'audio_codec'=> config('audio_codec'),
'audio_rate'=> config("srate"),
'audio_bitrate'=> config("sbrate"),
'video_rate'=> config("vrate"),
'video_bitrate'=> config("vbrate"),
'video_width'=> config('r_width'),
'video_height'=> config('r_height'),
'resize'=>'max'
);
@ -65,6 +67,9 @@ rename($temp_file,$orig_file);
$ffmpeg->configs = $configs;
$ffmpeg->gen_thumbs = TRUE;
$ffmpeg->gen_big_thumb = TRUE;
$ffmpeg->num_of_thumbs = config('num_thumbs');
$ffmpeg->thumb_dim = config('thumb_width')."x".config('thumb_height');
$ffmpeg->big_thumb_dim = config('big_thumb_width')."x".config('big_thumb_height');
$ffmpeg->tmp_dir = TEMP_DIR;
$ffmpeg->input_ext = $ext;
$ffmpeg->output_file = VIDEOS_DIR.'/'.$tmp_file.'.flv';

View file

@ -2,21 +2,5 @@
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
// Collecting Users List
$userdata = $db->select("users","*");
// Creating Group if button is pressed
if(isset($_POST['create_group'])) {
$cbgroup->createGroups($_POST);
}
// Assigning Variables
assign('users',$userdata);
assign('category',$cbgroup->get_categories());
template_files('add_group.html');
display_it();
header("location:".cblink(array("name"=>"create_group")));
?>

View file

@ -0,0 +1,28 @@
<?php
/**
* @Software : ClipBucket
* @Author : Arslan Hassan
* @Since : Jan 5 2009
* @Function : Add Member
* @license : CBLA
*/
require'../includes/admin_config.php';
$userquery->login_check('member_moderation');
$pages->page_redir();
if(isset($_POST['add_member']))
{
if($userquery->signup_user($_POST))
{
e("New member has been added","m");
$_POST = '';
}
}
template_files('add_members.html');
display_it();
?>

View file

@ -1,70 +1,32 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
****************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
****************************************************************
*/
require_once '../includes/admin_config.php';
$gpid = mysql_clean($_GET['group_id']);
// Collecting Users List
$userdata = $db->select("users","*");
if(isset($_POST['update_group'])) {
$cbgroup->edit_group($_POST);
}
//Assign Varialbes
assign('users',$userdata);
assign('category',$cbgroup->get_categories());
assign('group_details',$cbgroup->group_details($gpid));
$gpid = mysql_clean($_GET['group_id']);
$group = $cbgroup->get_details($gpid);
if($group)
{
if(isset($_POST['update_group']))
{
$_POST['group_id'] = $gpid;
$cbgroup->update_group();
$group = $cbgroup->get_group_details($gid);
}
assign('group',$group );
}else
e("Group does not exist");
template_files('edit_group.html');
display_it();
//require'../includes/admin_config.php';
//$userquery->login_check('admin_access');
//$pages->page_redir();
//
//$gpid = mysql_clean($_GET['group_id']);
////Updating Group
//if(isset($_POST['update'])){
// $msg = $cbgroup->UpdateGroup(2);
//}
//if(!$cbgroup->GroupExists($group) || $group == 'Array'){
// $msg = $LANG['grp_exist_error'];
// $show_group = 'No';
//}else{
//
// $details = $cbgroup->GetDetailsid($group);
// $group = $details['group_id'];
// $user = $_SESSION['username'];
//
//Assign('groups',$details);
//}
//
////Assigning Category List
// $sql = "SELECT * from category";
// $rs = $db->Execute($sql);
// $total_categories = $rs->recordcount() + 0;
// $category = $rs->getrows();
// Assign('category', $category);
//
////If Update is true
//$update = mysql_clean($_GET['update']);
//if($update==true){
// $msg = $LANG['grp_update_msg'];
//}
//
////Assing Template
//Assign('country',$signup->country());
//Assign('msg',$msg);
//Template('header.html');
//Template('leftmenu.html');
//Template('message.html');
//Template('edit_group.html');
//Template('footer.html');
?>

View file

@ -1,7 +1,7 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
@ -11,7 +11,19 @@ require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Updatingg email templates
if(isset($_POST['update']))
{
for($i=0;$i<count($_POST['template_id']);$i++)
{
$params = array('id'=>$_POST['template_id'][$i],'subj'=>$_POST['subject'][$i],
'msg'=>$_POST['message'][$i]);
$cbemail->update_template($params);
$eh->flush();
e("Email templates have been updated","m");
}
}
template_files('under_development.html');
template_files('email_settings.html');
display_it();
?>

View file

@ -13,55 +13,132 @@ $pages->page_redir();
// Deactivate Group
if(isset($_GET['deactivate'])) {
$cbgroup->unactive_gp(mysql_clean($_GET['deactivate']));
$cbgroup->grp_actions('deactivate',mysql_clean($_GET['deactivate']));
}
// Activate Group
if(isset($_GET['activate'])) {
$cbgroup->active_gp(mysql_clean($_GET['activate']));
$cbgroup->grp_actions('activate',mysql_clean($_GET['activate']));
}
// Feature Group
if(isset($_GET['feature'])) {
$cbgroup->grp_actions('feature',mysql_clean($_GET['feature']));
}
// unFeature Group
if(isset($_GET['unfeature'])) {
$cbgroup->grp_actions('unfeature',mysql_clean($_GET['unfeature']));
}
//Multiple Activate
if(isset($_POST['activate_selected'])) {
for($i=0; $i<count($_POST['check_group']); $i++) {
$cbgroup->active_gp($_POST['check_group'][$i],true);
$cbgroup->grp_actions('activate',$_POST['check_group'][$i],true);
}
e(lang('Selected Groups are activated.','m'));
$eh->flush();
e(lang('Selected Groups are activated.'),'m');
}
//Multiple Deactivate
if(isset($_POST['deactivate_selected'])) {
for($i=0; $i<count($_POST['check_group']); $i++) {
$cbgroup->unactive_gp($_POST['check_group'][$i],true);
$cbgroup->grp_actions('decativate',$_POST['check_group'][$i],true);
}
e(lang('Selected Groups are deactivated.','m'));
$eh->flush();
e(lang('Selected Groups are deactivated.'),'m');
}
//Multiple Feature
if(isset($_POST['make_featured_selected'])) {
for($i=0; $i<count($_POST['check_group']); $i++) {
$cbgroup->grp_actions('feature',$_POST['check_group'][$i],true);
}
$eh->flush();
e(lang('Selected Groups have been set as featured.'),'m');
}
//Multiple UnFeature
if(isset($_POST['make_unfeatured_selected'])) {
for($i=0; $i<count($_POST['check_group']); $i++) {
$cbgroup->grp_actions('feature',$_POST['check_group'][$i],true);
}
$eh->flush();
e(lang('Selected Groups have been set as Unfeatured.'),'m');
}
// Delete group
if(isset($_GET['delete_group'])) {
$cbgroup->delete_group(mysql_clean($_GET['delete_group']));
$cbgroup->grp_actions("delete",mysql_clean($_GET['delete_group']));
}
//Multiple Delete
if(isset($_POST['delete_selected'])) {
for($i=0; $i<count($_POST['check_group']); $i++) {
$cbgroup->delete_group($_POST['check_group'][$i],true);
$cbgroup->grp_actions("delete",$_POST['check_group'][$i],true);
}
e(lang('Selected Groups are Deleted.','m'));
$eh->flush();
e(lang('Selected Groups are Deleted.'),'m');
}
//Collecting Data for Pagination
$total_rows = $db->count('users','*',$cond);
$total_pages = count_pages($total_rows,RESULTS);
//Pagination
//Calling Group Manager Functions
call_functions($cbgroup->group_manager_funcs);
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,RESULTS);
if(isset($_GET['search']))
{
$array = array
(
'group_id' => $_GET['group_id'],
'user' => $_GET['userid'],
'title' => $_GET['title'],
'tags' => $_GET['tags'],
'category' => $_GET['category'],
'featured' => $_GET['featured'],
'active' => $_GET['active']
);
}
$result_array = $array;
//Getting Video List
$result_array['limit'] = $get_limit;
if(!$array['order'])
$result_array['order'] = " date_added DESC ";
$groups = $cbgroup->get_groups($result_array);
Assign('groups', $groups);
//Collecting Data for Pagination
$gcount = $array;
$gcount['count_only'] = true;
$total_rows = $cbgroup->get_groups($gcount);
$total_pages = count_pages($total_rows,RESULTS);
$pages->paginate($total_pages,$page);
/* // Assign varibles
assign('category',$cbgroup->get_categories());
assign('gps',$cbgroup->get_groups());
*/
template_files('under_development.html');
//Category Array
if(is_array($_GET['category']))
$cats_array = array($_GET['category']);
else
{
preg_match_all('/#([0-9]+)#/',$_GET['category'],$m);
$cats_array = array($m[1]);
}
$cat_array = array($LANG['vdo_cat'],
'type'=> 'checkbox',
'name'=> 'category[]',
'id'=> 'category',
'value'=> array('category',$cats_array),
'hint_1'=> $LANG['vdo_cat_msg'],
'display_function' => 'convert_to_categories',
'category_type'=>'groups');
assign('cat_array',$cat_array);
template_files('groups_manager.html');
display_it();
?>

View file

@ -12,4 +12,5 @@ $userquery->admin_login_check();
template_files('index.html');
display_it();
?>

View file

@ -26,8 +26,8 @@ if(isset($_POST['update'])){
'keywords' ,
'player_file',
'ffmpegpath' ,
'mencoderpath',
'flvpath',
'flvtool2path',
'mp4boxpath',
'closed' ,
'closed_msg',
'resize',
@ -92,6 +92,15 @@ if(isset($_POST['update'])){
'users_items_contacts_channel',
'users_items_search_page',
'users_items_group_page',
'video_categories',
'max_video_title',
'max_video_desc',
'max_video_tags',
'min_video_title',
'min_video_tags',
'min_video_desc',
'video_codec',
'vrate',
);
//Numeric Array
@ -115,6 +124,13 @@ if(isset($_POST['update'])){
'users_items_contacts_channel',
'users_items_search_page',
'users_items_group_page',
'video_categories',
'max_video_title',
'max_video_desc',
'max_video_tags',
'min_video_title',
'min_video_tags',
'min_video_desc',
);
foreach($rows as $field)
{

View file

@ -1,10 +1,10 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
****************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
****************************************************************
*/
require_once '../includes/admin_config.php';
@ -14,25 +14,54 @@ $pages->page_redir();
if(!empty($_GET['email'])){
Assign('email',$_GET['email']);
}
//Sending Message To Multiple Users
if(isset($_POST['send_mail'])){
if(isset($_POST['send_to_all']))
{
$from = mysql_clean($_POST['from']);
$subject = mysql_clean($_POST['subj']);
$message = $_POST['msg'];
$uarray = array();
//Sending Message To User
$query = mysql_query("SELECT * FROM users");
while($data = mysql_fetch_array($query)){
$keys = array("[username]","[firstname]","[lastname]","[email]","[datejoined]");
$rplc = array($data['username'],$data['first_name'],$data['last_name'],$data['email'],$data['doj']);
if(empty($from))
e("From field was empty");
if(empty($subject))
e("Subject field was empty");
if(empty($message))
e("Message field was empty");
//Checking if admin wants to send email to active users only....
if($_POST['active']!='')
$uarray['status'] = $_POST['active'];
//Checking if admin wants to send email to banned or unbanned users only...
if($_POST['ban']!='')
$uarray['ban'] = $_POST['ban'];
//Checking if admin wants to send email to specific leveled users
if($_POST['level']!='')
$uarray['level'] = $_POST['level'];
//Checkinf if admin wants to send email to specfic categorized users
if($_POST['category']!='')
$uarray['category'] = $_POST['category'];
if(!error())
{
$users = get_users($uarray);
foreach($users as $user)
{
$keys = array("[username]","[email]","[datejoined]");
$rplc = array($user['username'],$user['email'],$user['doj']);
$msg = nl2br(str_replace($keys, $rplc, $message));
send_email($from,$data['email'],$subject,$msg);
//send_email($from,$data['email'],$subject,$msg);
cbmail(array('from'=>$from,'to'=>$user['email'],'subject'=>$subj,'content'=>$message));
}
$msg = 'Your Email has Been Sent To All Users';
e('Your Email has Been Sent To All Users','m');
}
}
//Send Message To Individual
if(isset($_POST['email'])){
$from = mysql_clean($_POST['from']);
@ -40,18 +69,55 @@ if(isset($_POST['email'])){
$message = $_POST['msg'];
$users = $_POST['to'];
$new_users = explode(',',$users);
foreach($new_users as $user){
send_email($from,$user,$subject,$message);
if(empty($from))
e("From field was empty");
if(empty($subject))
e("Subject field was empty");
if(empty($message))
e("Message field was empty");
if(empty($users))
e("Users field was empty");
if(!error())
{
foreach($new_users as $theuser)
{
$user = $userquery->get_user($theuser);
if($user)
{
$keys = array("[username]","[email]","[datejoined]");
$rplc = array($user['username'],$user['email'],$user['doj']);
$msg = nl2br(str_replace($keys, $rplc, $message));
//send_email($from,$data['email'],$subject,$msg);
cbmail(array('from'=>$from,'to'=>$user['email'],'subject'=>$subj,'content'=>$message));
}
}
e('Your Email has Been Sent To Sepecified users','m');
}
$msg = 'Email Has Been Sent';
}
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('mass_email.html');
Template('footer.html');
//Category Array...
if(is_array($_POST['category']))
$cats_array = array($_POST['category']);
else
{
preg_match_all('/#([0-9]+)#/',$_POST['category'],$m);
$cats_array = array($m[1]);
}
$cat_array = array($LANG['vdo_cat'],
'type'=> 'checkbox',
'name'=> 'category[]',
'id'=> 'category',
'value'=> array('category',$cats_array),
'hint_1'=> $LANG['vdo_cat_msg'],
'display_function' => 'convert_to_categories',
'category_type'=>'user');
assign('cat_array',$cat_array);
//Displaying template...
template_files("mass_email.html");
display_it();
?>

View file

@ -1,136 +1,16 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
**************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
**************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Assing Counntry List
Assign('country',$signup->country());
//Assigning Category List
$sql = "SELECT * from category";
$rs = $db->Execute($sql);
$total_categories = $rs->recordcount() + 0;
$category = $rs->getrows();
Assign('category', $category);
if(isset($_POST['upload_01'])){
//Validatin Categories
$sql = mysql_query("SELECT * from category");
$total_categories = mysql_num_rows($sql);
$selected = 0;
for($id=0;$id<=$total_categories;$id++){
$category = @$_POST['category'][$id];
if(!empty($category)){
$selected = $selected +1 ;
}
}
if($selected == 0){
$msg[] = "Please Choose At least 1 Category";
}elseif($selected >3){
$msg[] = "You Can Only Choose Up to 3 Categoriess";
}
if(empty($_POST['num']) || !is_numeric($_POST['num'])){
$msg [] = "Please Enter a Valid Number In Number Field";
}
if(empty($msg)){
Assign('step','2');
Assign('loop',$_POST['num']);
}
//$youtube->UploadProcess();
//}
}
//Assign Form Chizzein
@$values= array(
'default_num' => mysql_clean($_POST['num']),
'default_location' => mysql_clean($_POST['location']),
'default_country' => mysql_clean($_POST['country']),
'default_broadcast' => $_POST['broadcast'],
'default_m' => $_POST['month'],
'default_d' => $_POST['day'],
'default_y' => $_POST['year'],
'default_comment' => $_POST['comments'],
'default_embedding' => $_POST['embedding'],
'default_rating' => $_POST['rating'],
'default_comments_voting' => $_POST['comment_voting'],
'default_date' => $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day']
);
while(list($name,$value) = each($values)){
CBTemplate::assign($name,$value);
}
for($id=0;$id<=3;$id++){
$category = @$_POST['category'][$id];
Assign('category'.$id,$category );
}
function AssignDefaultThumb($flv){
global $row;
//Minus Extension
$site_template = BASEDIR.'/styles/'.$row['template_dir'];
$filename_minus_ext = substr($flv, 0, strrpos($flv, '.'));
$proccesing_thumb = $site_template.'/images/en/processing.png';
$proccesing_thumb_big = $site_template.'/images/en/processing-big.png';
copy($proccesing_thumb,'../files/thumbs/'.$filename_minus_ext.'-1.jpg');
copy($proccesing_thumb,'../files/thumbs/'.$filename_minus_ext.'-2.jpg');
copy($proccesing_thumb,'../files/thumbs/'.$filename_minus_ext.'-3.jpg');
copy($proccesing_thumb_big,'../files/thumbs/'.$filename_minus_ext.'-big.jpg');
}
//Form Checking And Processing
if(isset($_POST['upload_02'])){
//Including FFMPEG CLASS
if($row['con_modules_type'] == 0){
require_once('../includes/classes/conversion/ffmpeg.class.php');
}else{
require_once('../includes/classes/conversion/multi.class.php');
}
for ($id = 0; $id <= $_POST['loop']; $id ++){
$title = @$_POST['title'][$id];
$des = @$_POST['des'][$id];
$tags = @$_POST['tags'][$id];
$file = @$_FILES['file']['name'][$id];
if(!empty($title) && !empty($des) && !empty($file) ){
$newflv[$id] = rand(1000000,999999999999999).'.flv';
if($Upload->CheckFLV(@$flv)){
$newflv[$id] = rand(1000000,999999999999999).'.flv';
}
$filename[$id] = $newflv[$id];
$new_name = substr($filename[$id], 0, strrpos($filename[$id], '.'));
$ext = substr($file, strrpos($file,'.') + 1);
$newfilename[$id] = $new_name.".".$ext;
$path = BASEDIR."/files/temp/".$newfilename[$id];
copy($_FILES['file']['tmp_name'][$id], $path);
$MassUpload->DataEntry($title,$des,$newflv[$id],$tags);
AssignDefaultThumb($newflv[$id]);
}
}
for ($id = 0; $id <= $_POST['loop']; $id ++){
if(!empty($newfilename[$id])){
$ffmpeg = new ffmpeg();
$ffmpeg->ConvertFile($newfilename[$id],$newflv[$id]);
}
}
$msg = "All Files Has Been Uploaded";
}
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('mass_uploader.html');
Template('footer.html');
template_files("mass_upload.html");
display_it();
?>

View file

@ -1,10 +1,10 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
***************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
***************************************************************
*/
require'../includes/admin_config.php';
@ -20,7 +20,7 @@ if(isset($_GET['deleteuser'])){
//Deleting Multiple Videos
if(isset($_POST['delete_selected'])){
for($id=0;$id<=RESULTS;$id++)
for($id=0;$id<=count($_POST['check_user']);$id++)
$userquery->delete_user($deleteuser);
$eh->flush();
e("Selected users have been deleted","m");
@ -39,14 +39,14 @@ if(isset($_GET['deactivate'])){
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_user']);$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++){
for($id=0;$id<=count($_POST['check_user']);$id++){
$userquery->action('deactivate',$_POST['check_user'][$id]);
}
$eh->flush();
@ -65,14 +65,14 @@ if(isset($_GET['unfeatured'])){
}
//Using Multple Action
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_user']);$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++){
for($id=0;$id<=count($_POST['check_user']);$id++){
$userquery->action('unfeatured',$_POST['check_user'][$id]);
}
$eh->flush();
@ -92,7 +92,7 @@ if(isset($_GET['unban'])){
//Using Multple Action
if(isset($_POST['ban_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_user']);$id++){
$userquery->action('ban',$_POST['check_user'][$id]);
}
$eh->flush();
@ -100,7 +100,7 @@ if(isset($_POST['ban_selected'])){
}
if(isset($_POST['unban_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_user']);$id++){
$userquery->action('unban',$_POST['check_user'][$id]);
}
$eh->flush();
@ -108,21 +108,66 @@ if(isset($_POST['unban_selected'])){
}
//-------TIME END TO DO SOME ACTION-------//
//Calling Video Manager Functions
call_functions($userquery->user_manager_functions);
//Getting Member List
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,RESULTS);
if(isset($_GET['search']))
{
$array = array
(
'userid' => $_GET['userid'],
'username' => $_GET['username'],
'category' => $_GET['category'],
'featured' => $_GET['featured'],
'ban' => $_GET['ban'],
'status' => $_GET['status'],
'email' => $_GET['email'],
'gender' => $_GET['gender'],
);
}
$result_array = $array;
//Getting Video List
$result_array['limit'] = $get_limit;
if(!$array['order'])
$result_array['order'] = " doj DESC ";
$users = get_users($result_array);
Assign('users', $users);
//Getting Member List
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,RESULTS);
$users = $db->select("users",'*',$cond,$get_limit,"doj DESC");
Assign('users', $users);
//Collecting Data for Pagination
$total_rows = $db->count('users','*',$cond);
$total_pages = count_pages($total_rows,VLISTPP);
//Pagination
$pages->paginate($total_pages,$page);
//Collecting Data for Pagination
$mcount = $array;
$mcount['count_only'] = true;
$total_rows = get_users($mcount);
$total_pages = count_pages($total_rows,RESULTS);
$pages->paginate($total_pages,$page);
//Pagination
$pages->paginate($total_pages,$page);
//Category Array
if(is_array($_GET['category']))
$cats_array = array($_GET['category']);
else
{
preg_match_all('/#([0-9]+)#/',$_GET['category'],$m);
$cats_array = array($m[1]);
}
$cat_array = array($LANG['vdo_cat'],
'type'=> 'checkbox',
'name'=> 'category[]',
'id'=> 'category',
'value'=> array('category',$cats_array),
'hint_1'=> $LANG['vdo_cat_msg'],
'display_function' => 'convert_to_categories',
'category_type'=>'user');
assign('cat_array',$cat_array);
template_files('members.html');
display_it();

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

View file

@ -0,0 +1,58 @@
{assign var='required_fields' value=$userquery->load_signup_fields()}
{assign var='custom_field' value=$userquery->custom_signup_fields}
<h2>Add New Member</h2>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Required Member Details</td>
<td width="10" class="right_head">&nbsp;</td>
</tr>
</table>
<form action="" method="post">
<fieldset class="fieldset">
<legend>User Information</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$required_fields item=field}
<tr>
<td width="200"><label for="{$field.id}" class="label">{$field.title}</label></td>
<td>{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}<br>{$field.hint_2}{/if}</td>
</tr>
{/foreach}
<tr>
<td width="200"><label for="level" class="label">User level</label></td>
<td><select name="level" id="level">
{assign var=levels value=$userquery->get_levels()}
{foreach from=$levels item=level}
<option value="{$level.user_level_id}" {if $smarty.post.level==$level.user_level_id} selected{elseif $level.user_level_id==2}selected{/if}>{$level.user_level_name}</option>
{/foreach}
</select></td>
</tr>
<tr>
<td>Status</td>
<td><label for="active"></label>
<select name="active" id="active">
<option value="Ok">Active</option>
<option value="ToActivate">Inactive</option>
</select></td>
</tr>
</table>
</fieldset>
{if $custom_field}
<fieldset class="fieldset">
<legend>Other</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_field item=field}
<tr>
<td width="200"><label for="{$field.id}" class="label">{$field.title}</label></td>
<td>{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}<br>{$field.hint_2}{/if}</td>
</tr>
{/foreach}
</table>
</fieldset>
{/if}
<div align="left" style="padding:10px"><input type="submit" name="add_member" value="Add Member" class="button" id="add_member" ></div>
</form>

View file

@ -1,23 +1,22 @@
{include file="$style_dir/global_header.html" }
<html>
<body>
<div style="min-height:100%">
<!-- Including Commong header -->
{include file="$style_dir/header.html" }
{include file="$style_dir/msg.html" }
<div style="min-height:600px">
<div style="min-height:600px; min-width:1000px">
<!-- Including Left Column -->
<!-- Inlcluding Other Files -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" valign="top" style="max-width:150px">
<td colspan="2" valign="top">
<span class="toggle_menu" onClick="$('#left_menu').animate({literal}{width:'toggle'}{/literal},250);"><img src="{$imageurl}/dot.gif" class="toggle_menu_icon">Toggle Menu</span></td>
</tr>
<tr>
<td valign="top" style="max-width:250px">{include file="$style_dir/left_menu.html" }
<td width="220" valign="top" style="max-width:250px">{include file="$style_dir/left_menu.html" }
</td>
<td width="100%" valign="top" >
{foreach from=$template_files item=file}

View file

@ -1,70 +1,108 @@
<h2>Edit Group</h2>
{* Loading Form Fields *}
{assign var='requiredFields' value=$cbgroup->load_required_fields($group,true)}
{assign var='optionFields' value=$cbgroup->load_other_fields($group)}
<table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Edit Group</td>
<td class="head">&nbsp;</td>
<td width="10" align="left" valign="middle" class="left_head" style="text-indent:10px">&nbsp;</td>
<td class="head">Editing {$group.title}</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
<form name="add_group" action="" method="post" enctype="multipart/form-data">
<input name="gpid" type="hidden" value="{$group_details.group_id}" />
<input name="owner" type="hidden" value="{$group_details.group_owner}" />
{assign var="username" value=$userquery->GetUserData($group_details.group_owner)}
<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>
<form name="edit_group" method="post">
<fieldset class="fieldset">
<legend>Thumbs</legend>
<div style="width:140px; float:left" align="center">
<img src="{$cbgroup->get_group_thumb($group)}" border="1" style="margin:4px;max-height:120px; max-width:120px;" />
</div>
<div style="width:500px; float:left">
<li>{$LANG.grp_must_be} JPG | GIF | PNG</li>
<li>{$LANG.grp_90x90}</li>
<li>{$LANG.grp_thumb_warn}</li>
<input type="file" name="thumb_file" id="thumb_file" />
</div>
<div class="clearfix"></div>
</fieldset>
<fieldset class="fieldset">
<legend>Required Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$requiredFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{if $field.hint_1}{$field.hint_1}<br />{/if}
{if $field.anchor_before}{ANCHOR place=$field.anchor_before}<br />{/if}
{$formObj->createField($field)} <br />
{$field.hint_2}</td>
</tr>
<tr>
<td valign="top" class="td_body">Change User</td>
<td class="td_body"><select name="users" tabindex="1" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">
<option>Select User</option>
{section name=u_list loop=$users}
<option value="{$users[u_list].userid}"{if $users[u_list].userid eq $group_details.group_owner} selected="selected" {/if}>{$users[u_list].username}</option>
{/section}
</select></td>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Group Stats</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200" valign="top"><strong>Total Views</strong></td>
<td valign="top" ><label for="total_views"></label>
<input name="total_views" type="text" id="total_views" value="{$group.total_views}" /></td>
</tr>
<tr>
<td valign="top" class="td_body">Group Title</td>
<td class="td_body"><input name="title" id="title" value="{$group_details.group_name}" tabindex="2" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /></td>
<tr>
<td valign="top"><strong>Total Members</strong></td>
<td valign="top" ><label for="total_members"></label>
<input name="total_members" type="text" id="total_members" value="{$group.total_members}" /></td>
</tr>
<tr>
<td valign="top"><strong>Total Videos</strong></td>
<td valign="top" ><label for="total_topics"></label>
<input name="total_videos" type="text" id="total_views4" value="{$group.total_videos}" /></td>
</tr>
<tr>
<td valign="top"><strong>Total Topics</strong></td>
<td valign="top" ><label for="total_views5"></label>
<input name="total_topics" type="text" id="total_views5" value="{$group.total_topics}" /></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top" >&nbsp;</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Other Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$optionFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{if $field.hint_1}{$field.hint_1}<br />{/if}
{if $field.anchor_before}{ANCHOR place=$field.anchor_before}<br />{/if}
{$formObj->createField($field)} <br />
{$field.hint_2}</td>
</tr>
<tr>
<td valign="top" class="td_body">Group Description</td>
<td class="td_body"><p>
<textarea name="description" id="description" rows="5" tabindex="3" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">{$group_details.group_description}</textarea>
<br />
</p></td>
</tr>
<tr>
<td class="td_body">Group Tags</td>
<td align="left" class="td_body"><input name="tags" id="tags" value="{$group_details.group_tags}" tabindex="4" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /></td>
</tr>
<tr>
<td class="td_body">Group Url</td>
<td align="left" class="td_body"><input name="gp_url" id="gp_url" value="{$group_details.group_url}" tabindex="5" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /> <small>Only these characters are allowed. a-z, 0-9, hypen(-), underscore(_), period(.)</small></td>
</tr>
<tr>
<td class="td_body">Group Type</td>
<td align="left" class="td_body"><input name="gptype" type="radio" value="0" tabindex="6"{if $group_details.group_type eq "0"} checked = "checked" {/if}>Public<BR/> <input name="gptype" type="radio" tabindex="7" value="1"{if $group_details.group_type eq "1"} checked = "checked" {/if}>Private<BR/> <input name="gptype" type="radio" tabindex="8" value="2"{if $group_details.group_type eq "2"} checked = "checked" {/if}>Only Invited Members</td>
</tr>
<tr>
<td class="td_body">Group Category</td>
<td align="left" class="td_body">
<select name="category" tabindex="9" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">
<option>Choose A Category</option>
{section name=cat_list loop=$category}
<option value="{$category[cat_list].category_id}" {if $category[cat_list].category_id eq $group_details.group_category} selected="selected" {/if}>{$category[cat_list].category_name}</option>
{/section}
</select></td>
</tr>
<tr>
<td class="td_body">Group Thumb</td>
<td align="left" class="td_body">
<div style="padding:3px; border:1px solid #ccc; float:left; margin-right:20px;"><img src="{$gp_thumbs_url}/{$cbgroup->get_gp_thumb($group_details.group_image)}" /></div>
<input type="file" name="gpThumb" id="gpThumb" tabindex="10" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;"/></td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body"><input type="submit" tabindex="11" name="update_group" id="update_group" value="Update Group" class="button"/></td>
</tr>
</table>
{/foreach}
</table>
</fieldset>
<div style="width:98%; margin:auto">
<input type="submit" class="button" value="Update Group details" style="margin:5px 0px 15px 0px" name="update_group" id="update_group">
</div>
</form>

View file

@ -1,151 +1,43 @@
<script type="text/javascript" src="{$js}/popup_image.js"></script>
<div class="setting_title"> Email Settings </div>
<form action="" method="post" enctype="multipart/form-data" name="Email Settings" id="Email Settings">
<table width="100%" border="0" cellpadding="3" cellspacing="3">
<tr>
<td colspan="2" bgcolor="#F2F2F2" class="tr_head">Email Settings</td>
</tr>
<tr>
<td width="152" valign="top" bgcolor="#F9F9F9" class="td_body">Website Email</td>
<td width="841" bgcolor="#F9F9F9" class="td_body"><label>
<input name="website_email" type="text" id="website_email" value="{$row.website_email}" size="45">
</label></td>
</tr>
<tr>
<td width="152" valign="top" bgcolor="#F9F9F9" class="td_body">Support Email</td>
<td bgcolor="#F9F9F9" class="td_body"><input name="support_email" type="text" id="support_email" value="{$row.support_email}" size="45"></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" class="td_body">Welcome Email</td>
<td bgcolor="#F9F9F9" class="td_body"><input name="welcome_email" type="text" id="welcome_email" value="{$row.welcome_email}" size="45"></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9F9F9" class="tr_head">Email Templates</td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9F9F9" class="td_body"><table width=100% align="center" bgcolor=#f1f1f1 class=des_table>
<tr>
<td colspan="4" class="title">Email Templates Instruction</td>
<h2>Email Templates Settings</h2>
<div style="height:10px"></div>
<div style="padding-right:10px">
{assign var=templates value=$cbemail->get_templates()}
{if $templates}
<form name="email_templates" method="post">
{foreach from=$templates item=template}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" onclick="$('#template-{$template.email_template_id}').slideToggle()" style="cursor:pointer">
<tr>
<td width="10" align="center" valign="middle" class="left_head">&nbsp;</td>
<td align="center" class="head">{$template.email_template_name}</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
<tr>
<td width="85">Username</td>
<td width="135">$username</td>
<td width="99">From</td>
<td width="787">$from</td>
</tr>
<tr>
<td>Email</td>
<td>$email</td>
<td>Sender Email</td>
<td>$from_email</td>
</tr>
<tr>
<td>Password</td>
<td>$password</td>
<td>VideoKey</td>
<td>$videokey</td>
</tr>
<tr>
<td>Activation Code</td>
<td>$avcode</td>
<td>VideoThumb</td>
<td>$videothumb</td>
</tr>
<tr>
<td>Current Date</td>
<td>$cur_date</td>
<td>VideoTtle</td>
<td>$videotitle</td>
</tr>
<tr>
<td>Website Title</td>
<td>$title</td>
<td>VideoDescription</td>
<td>$videodes</td>
</tr>
<tr>
<td>Website URL</td>
<td>$baseurl</td>
<td>PersonalMessage</td>
<td>$message</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="4"><ul>
<li>Above Given Tags can be used in Email</li>
<li>Do Not Use Double or Single Quotation in Hyperlinks ie &lt;a href=&quot;linkgoeshere&quot;&gt;clickhere&lt;/a&gt; is wrong, just type &lt;a href=linkgoeshere.....</li>
<li>Dont Use Tags That are not allowed for the specific Template</li>
<li>You can add HTML in it</li>
<li>If you want more Templates Please ClipBucket</li>
</ul></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Signup Template<br />
(Email Verification)</td>
<td valign="top" bgcolor="#F9F9F9" class="td_body"><label> Subject:<br />
<input name="email_verification_header" type="text" id="email_verification_header" value="{$header.email_verification_template}" size="60" />
<br />
Message:<br />
<textarea name="email_verification_template" id="email_verification_template" cols="50" rows="8">{$row.email_verification_template}</textarea>
<br />
(Allowed Tags:Username,Email,Password,ActivationCode,CurrentDate,Websitetitle,WebsiteURL)</label></td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Welcome Message Template</td>
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
<input name="welcome_message_header" type="text" id="welcome_message_template_header" value="{$header.welcome_message_template}" size="60" />
<br />
Message:<br />
<textarea name="welcome_message_template" id="welcome_message_template" cols="50" rows="8">{$row.welcome_message_template}</textarea>
<br />
(Allowed Tags:Username,Email,CurrentDate,Websitetitle,WebsiteURL)</td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Activation Code Request Template</td>
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
<input name="activate_request_header" type="text" id="welcome_message_template_header2" value="{$header.activate_request_template}" size="60" />
<br />
Message: <br />
<textarea name="activate_request_template" id="activate_request_template" cols="50" rows="8">{$row.activate_request_template}</textarea>
<br />
(Allowed Tags:Username,Email,ActivationCode,CurrentDate,Websitetitle,WebsiteURL)</td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Share This Video Template</td>
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
<input name="share_video_header" type="text" id="email_verification_header3" value="{$header.share_video_template}" size="60" />
<br />
Message:<br />
<textarea name="share_video_template" id="share_video_template" cols="50" rows="8">{$row.share_video_template}</textarea>
<br />
(Allowed Tags:From,SenderEmail,,Websitetitle,WebsiteURL,Videokey,VideoThumb,VideoTtle,VideoDescription,CurrentDate)</td>
</tr>
<tr>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="button" id="button" value="Submit" style="width:150px"/>
<input type="reset" name="button2" id="button" value="Reset" style="width:150px"/>
</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block" id="template-{$template.email_template_id}">
<tr>
<td width="114" align="right" valign="top"><span class="td_body">Email Subject</span></td>
<td valign="top" style="padding-left:10px"><input type="hidden" value="{$template.email_template_id}" name="template_id[]"/><input name="subject[]" type="text" id="subject[]" value="{$template.email_template_subject|form_val}" size="80" /></td>
</tr>
<tr>
<td align="right" valign="top">Email Message</td>
<td valign="top" style="padding-left:10px"><textarea name="message[]" cols="60" rows="8" id="message[]">{$template.email_template|form_val}</textarea></td>
</tr>
<tr>
<td align="right" valign="top">&nbsp;</td>
<td valign="top" style="padding-left:10px">&nbsp;</td>
</tr>
<tr>
<td align="right" valign="top">&nbsp;</td>
<td align="right" valign="top" style="padding-left:10px"><label for="update"></label>
<input type="submit" name="update" id="update" value="Update All" class="button" /></td>
</tr>
</table>
<div style="height:15px"></div>
{/foreach}
</form>
{/if}
</div>

View file

@ -1,4 +1,4 @@
<div class="footer_grey_bar">
<div style="height:10px"></div><div class="footer_grey_bar">
<img src="{$imageurl}/dot.gif" class="cbicon" /> Thanks for using ClipBucket | &copy; Copyright 2007 &#8211; {$smarty.now|date_format:"%Y"}
<div style="float:right" align="right">
<em>v2.0</em>| <a href="http://forums.clip-bucket.com/">Forums</a> | <a href="http://clip-bucket.com/arslan-hassan">Arslan Hassan</a> | <a href="http://docs.clip-bucket.com/">Docs</a> | <a href="http://clip-bucket.com/cbla">CBLA</a></div>

View file

@ -18,9 +18,10 @@ var imageurl = "{$imageurl}";
<script type="text/javascript" src="{$js}/jquery_plugs/hover_intent.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/cb.tabs.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/cookie.js"></script>
<link rel="stylesheet" href="{$js}/jquery_plugs/css/jquery.tooltip.css" />
<link rel="stylesheet" href="{$js}/jquery_plugs/css/screen.css" />
<link rel="stylesheet" href="{$js}/jquery_plugs/css/tipsy.css" />
<link rel="stylesheet" href="{$js}/ui/css/ui-lightness/jquery-ui-1.7.2.custom.css" />
<script src="{$js}/jquery_plugs/jquery.bgiframe.js" type="text/javascript"></script>
@ -28,6 +29,7 @@ var imageurl = "{$imageurl}";
<script src="{$js}/jquery_plugs/jquery.tooltip.pack.js" type="text/javascript"></script>
<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>
<script src="{$js}/jquery_plugs/jquery.tipsy.js" type="text/javascript"></script>
<!-- Including Nice Edit -->
<script type="text/javascript" src="{$js}/nicedit/nicEdit.js"></script>
@ -35,12 +37,6 @@ var imageurl = "{$imageurl}";
<script type="text/javascript" charset="utf-8">
$(function() {
$("#abcds").tooltip();
});
function makeTall(divid){ $('#'+divid).animate({"height":209},200);}
function makeShort(divid){ $('#'+divid).animate({"height":0},200);}
@ -74,7 +70,44 @@ var imageurl = "{$imageurl}";
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
tooltip : 'Click to edit...',
});
$('.widgets-wrap').sortable({
connectWith: '.widgets-wrap',
handle: 'h2',
cursor: 'move',
placeholder: 'placeholder',
forcePlaceholderSize: true,
opacity: 0.4,
stop: function(event, ui){
$(ui.item).find('h2').click();
}
})
$('.dragbox').each(function(){
$(this).hover(function(){
$(this).find('h2').addClass('collapse');
}, function(){
$(this).find('h2').removeClass('collapse');
})
.find('h2').hover(function(){
$(this).find('.configure').css('visibility', 'visible');
}, function(){
$(this).find('.configure').css('visibility', 'hidden');
})
.click(function(){
$(this).siblings('.dragbox-content').toggle();
})
.end()
.find('.configure').css('visibility', 'hidden');
});
$('.tipsy_tip').tipsy({gravity: 'w'});
});
</script>
{/literal}

View file

@ -1,4 +1,57 @@
<span class="page_title">Groups Manager</span>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('groupsearchdiv')" />
<div class="search_box" id="groupsearchdiv" {if $smarty.cookies.show_groupsearchdiv_search!='show'} style="display:none"{/if}> <form id="group_search" name="group_search" method="get" action="groups_manager.php" class="video_search">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right"><label for="title">Group title</label></td>
<td width="280"><input name="title" type="text" class="input" id="title" value="{'title'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="groupid">Group id</label></td>
<td><input name="group_id" type="text" class="input" id="groupid" value="{'group_id'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right"><label for="tags">Group tags</label></td>
<td><input name="tags" type="text" class="input" id="tags" value="{'tags'|get_form_val:true}" /></td>
</tr>
<tr>
<td align="right">Featured</td>
<td><label for="featured"></label>
<select name="featured" id="featured" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.featured=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right">Active</td>
<td><select name="active" id="active" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.active=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.active=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right">Userid</td>
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" /></td>
</tr>
<tr>
<td align="right" valign="top">Category</td>
<td>
{$formObj->createField($cat_array)}
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<form name="group_manage" method="post">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
@ -9,7 +62,7 @@
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="Confirm_Delete('')"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
</td>
</tr>
@ -20,8 +73,8 @@
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head_sep_left">GP-ID</td>
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
<td width="50" align="left" class="head">GP-ID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
@ -32,39 +85,41 @@
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=gp_list loop=$gps}
{assign var="username" value=$userquery->GetUserData($gps[gp_list].group_owner)}
{section name=gp_list loop=$groups}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_group[]" type="checkbox" id="check_group" value="{$gps[gp_list].group_id}" /></td>
<td width="50" align="center" valign="top" class="video_opt_td">{$gps[gp_list].group_id}</td>
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_group[]" type="checkbox" id="check_group" value="{$groups[gp_list].group_id}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
<td valign="top" class="video_opt_td"
onmouseover="$('#vid_opt-{$gps[gp_list].group_id}').show()"
onmouseout="$('#vid_opt-{$gps[gp_list].group_id}').hide()" >
<div style="float:left; width:45px; height:34px; margin-left:10px">
<img src="{$gp_thumbs_url}/{$cbgroup->get_gp_thumb($gps[gp_list].group_image)}" class="mid_user_thumb" />
onmouseover="$('#vid_opt-{$groups[gp_list].group_id}').show()"
onmouseout="$('#vid_opt-{$groups[gp_list].group_id}').hide()" >
<div style="float:left; width:45px; height:34px;" >
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" />
</div>
<a href="{$baseurl}/view_group.php?url={$gps[gp_list].group_url}" target="_blank" style="text-indent:10px">
{$gps[gp_list].group_name}
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank" style="text-indent:10px">
{$groups[gp_list].group_name}
</a> &#8212;
<span class="vdo_sets">
Group Owner:<strong> <a href="view_user.php?uid={$username.userid}" style="font-size:10px;">{$username.username}</a></strong> &#8226;
Group Type:<strong> {if $gps[gp_list].group_type=="0"}Public{elseif $gps[gp_list].group_type=="1"}Private{else}Invited{/if}</strong> &#8226;
Group Status:<strong>{if $gps[gp_list].active=="yes"} Active{else $gps[gp_list].active=="no"} Unactive{/if}</strong>
Group Owner:<strong> <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong> &#8226;
Group Type:<strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong> &#8226;
Group Status:<strong>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</strong> &#8226;
Group Members:<strong>{$groups[gp_list].total_members|number_format}</strong>
</span>
<br />
<div id="vid_opt-{$gps[gp_list].group_id}" style="display:none" class="vid_opts">
<div id="vid_opt-{$groups[gp_list].group_id}" style="display:none" class="vid_opts">
<a href="view_group.php?group_id={$gps[gp_list].group_id}">View</a> |
<a href="edit_group.php?group_id={$gps[gp_list].group_id}">Edit</a> {if $videos[list].featured == yes} |
<a href="javascript:Confirm_Delete('?delete_group={$gps[gp_list].group_id}')">Delete</a> |
<a href="?make_unfeature={$gps[gp_list].group_id}">Make Unfeatured</a> {/if}
{if $videos[list].featured == no} |
<a href="?make_feature={$gps[gp_list].group_id}">Make Featured</a> {/if}
{if $gps[gp_list].active == yes} |
<a href="?deactivate={$gps[gp_list].group_id}">Deactivate</a> {else} |
<a href="?activate={$gps[gp_list].group_id}">Activate</a> {/if} |
<a href="?delete_group={$gps[gp_list].group_id}">Delete</a>
<a href="{group_link details=$groups[gp_list]}" target="_blank">View</a> |
<a href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a>
{if $groups[gp_list].featured == yes}
| <a href="?unfeature={$groups[gp_list].group_id}">Make Unfeatured</a> {/if}
{if $groups[gp_list].featured == no} |
<a href="?feature={$groups[gp_list].group_id}">Make Featured</a> {/if}
{if $groups[gp_list].active == yes} |
<a href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else} |
<a href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} |
<a href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a> |
<a href="?delete_group={$groups[gp_list].group_id}">Delete</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
@ -87,7 +142,7 @@
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="Confirm_Delete('')"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
</td>
</tr>

View file

@ -1,38 +1,108 @@
<h2>Page Under Development</h2>
<div class="admin_heading">
Stats IN-A-Glance
</div>
<div class="admin_box">
<div class="stats">
<div class="stat">
TODAY - YESTERDAY - THIS WEEK - LAST WEEK - THIS MONTH - LAST MONTH
<table width="100%" border="0" class="index_table">
<tr>
<td valign="top" style="padding-right:13px">
<div class="widgets-wrap" id="column1">
<div class="dragbox" id="cbstats" >
<h2>{$title} Quick Stats</h2>
<div class="dragbox-content" >
<div class="item">
<div class="stats_subitem">Videos</div>
<div class="stats_subitem">Total : 44 | Active : 33 | Flagged : 2323 | Processing : 232</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="dragbox" id="cbnews" >
<h2>ClipBucket News</h2>
<div class="dragbox-content" >
{assign var=cbnews value=$Cbucket->get_cb_news()}
{if $cbnews}
{foreach from=$cbnews item=news}
<div class="item news">
<div class="news_title"><span class="title"><a href="{$news.link}">{$news.title}</a></span><span class="date">{$news.pubDate|date_format}</span></div><span class="clearfix"></span>
<div>
{$news.description}
</div>
</div>
{/foreach}
{else}
<div align="center"><em><strong>No News Found</strong></em></div>
{/if}
</div>
</div>
</div>
</td>
<td width="210" valign="top" style="padding-right:13px">
<div class="widgets-wrap" style="width:210px" id="column2">
<!-- Admin Todo List -->
<div class="dragbox" id="todo_list" >
<h2>Todo List</h2>
<div class="dragbox-content" >
<div class="item"><a href="video_manager.php?search=search&active=no">Approve Videos ({get_videos active='no' count_only=true})</a></div>
<div class="item"><a href="members.php?view=inactive">Approve Members ({get_users status='ToActivate' count_only=true})</a></div>
<div class="item"><a href="groups_manager.php?active=no&amp;search=yes">Approve Groups ({get_groups active='no' count_only=true})</a></div>
</div>
</div>
<!-- Admin Todo List -->
<!-- Admin Todo List -->
<div class="dragbox" id="quick_actions" >
<h2>Quick Action</h2>
<div class="dragbox-content" >
<div class="item">Add Videos</div>
<div class="item">Add Members</div>
<div class="item">Add Group</div>
<div class="item">Add Group</div>
</div>
</div>
<!-- Admin Todo List -->
<!-- Admin personal Note Widget -->
<div class="dragbox" id="private_notes" >
<h2>Personal Notes</h2>
<div class="dragbox-content" >
{assign var=notes value=$myquery->get_notes()}
<!-- Video Stats -->
<div class="stat">
<span>Videos</span>
<span>1212 Flagged - 2121 Pendings</span>
<div class="clearfix"></div>
<div id="the_notes">
{if $notes}
<div id="no_note"></div>
{foreach from=$notes item=note}
<div class="item" id="note-{$note.note_id}">
<img src="{$imageurl}/cross.png" class="delete_note" onclick="delete_note('{$note.note_id}');" />
{$note.note}
</div>
{/foreach}
{else}
<div id="no_note" align="center"><strong><em>Currently, you d not have any note</em></strong></div>
{/if}
</div>
<!-- Video Stats End-->
<!-- Group Stats -->
<div class="stat">
<span>Videos</span>
<span>1212 Flagged - 2121 Pendings</span>
<div class="clearfix"></div>
</div>
<!-- Group Stats End-->
<!-- Members Stats -->
<div class="stat">
<span>Videos</span>
<span>1212 Flagged - 2121 Pendings</span>
<div class="clearfix"></div>
</div>
<!-- Members Stats End-->
<div class="stat">
<span>You are currently using ClipBucket v2</span>
<span><span class="simple_button">Check For Update</span></span>
<div class="clearfix"></div>
</div>
</div>
</div>
<form method="post">
<textarea name="personal_note" id="personal_note" style="width:90%; height:50px; margin:5px; border:1px solid #999"></textarea>
<div align="right" style="padding-right:10px"><a href="javascript:void(0)"
onclick="add_note('#personal_note')">Add Note</a></div>
</form>
</div>
</div>
<!-- Admin personal Note Widget -->
</div>
</td>
</tr>
</table>

View file

@ -1,13 +1,28 @@
<script language="javascript">
{literal}
$(document).ready(function(){
var thehash = window.location.hash.substr(9,3);
$("#tabbed_div > div").hide();
if(thehash=='')
{
display_tab('#tab_1','div_1');
}else{
display_tab('#tab_'+thehash,'div_'+thehash);
}
});
{/literal}
</script>
<ul class="cbtab">
<li onClick='display_tab(this,"div_1",true)' id="first_tab">Website Settings</li>
<li onClick='display_tab(this,"div_2",true)' >Uploading and Conversion Settings</li>
<li onClick='display_tab(this,"div_3",true)' >Display and Listing Settings</li>
<li onClick='display_tab(this,"div_4",true)' >User &amp; Registeration</li>
<li onClick='display_tab(this,"div_1",true)' id="tab_1">Website Settings</li>
<li onClick='display_tab(this,"div_2",true)' id="tab_2">Uploading and Conversion Settings</li>
<li onClick='display_tab(this,"div_3",true)' id="tab_3">Display and Listing Settings</li>
<li onClick='display_tab(this,"div_4",true)' id="tab_4">User &amp; Registeration</li>
</ul>
<div class="clearfix"></div>
<form name="form1" method="post" action="">
<form name="form1" method="post" action="" id="main_form">
<input name="baseurl" value="{$row.baseurl}" type="hidden" />
<input name="basedir" value="{$row.baseurl}" type="hidden" />
<div id="tabbed_div">
@ -169,11 +184,31 @@
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">FFMPEG Binary Path</td>
<td valign="top"><input name="ffmpegpath" type="text" id="ffmpegpath" value="{$row.ffmpegpath}" size="45" /></td>
<td valign="top"><input name="ffmpegpath" type="text" id="ffmpegpath" value="{$row.ffmpegpath}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/ffmpeg" target="_blank">
<img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="FFMPEG Binary Paths - Click For More Details" /></a></td>
</tr>
<tr>
<td valign="top">PHP Binary Path</td>
<td valign="top"><input name="php_path" type="text" id="php_path" value="{$row.php_path}" size="45" /></td>
<td valign="top"><input name="php_path" type="text" id="php_path" value="{$row.php_path}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/php" target="_blank">
<img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="PHP Binary Paths - Click For More Details" /></a></td>
</tr>
<tr>
<td valign="top">Mp4 Binary Path</td>
<td valign="top"><input name="mp4boxpath" type="text" id="mp4boxpath" value="{$row.mp4boxpath}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/mp4box" target="_blank">
<img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="MP4Box Binary Paths - Click For More Details" /></a></td>
</tr>
<tr>
<td valign="top">Flvtool2 Binary Path</td>
<td valign="top"><input name="flvtool2path" type="text" id="flvtool2path" value="{$row.flvtool2path}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/flvtool2" target="_blank">
<img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="FLVTool2 Binary Paths - Click For More Details" /></a></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td valign="top">Allow video uploading</td>
@ -206,18 +241,50 @@
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">Converting video height and thumbs settings</td>
<td colspan="2" class="settings_inner_title">Video Upload Form Settings</td>
</tr>
<tr>
<td>Min - Max Video title</td>
<td><input name="min_video_title" type="text" id="min_video_title" value="{$row.min_video_title}" size="20" />
-
<input name="max_video_title" type="text" id="max_video_title" value="{$row.max_video_title}" size="20" /></td>
</tr>
<tr>
<td>Min - Max Video Description</td>
<td><input name="min_video_desc" type="text" id="min_video_desc" value="{$row.min_video_desc}" size="20" />
-
<input name="max_video_desc" type="text" id="php_path5" value="{$row.max_video_desc}" size="20" /></td>
</tr>
<tr>
<td>Min - Max Video Tags</td>
<td><input name="min_video_tags" type="text" id="php_path6" value="{$row.min_video_tags}" size="20" />
-
<input name="max_video_tags" type="text" id="php_path7" value="{$row.max_video_tags}" size="20" /></td>
</tr>
<tr>
<td>Allowed Categories</td>
<td><input name="video_categories" type="text" id="php_path8" value="{$row.video_categories}" size="45" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Video Width</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="settings_inner_title">Conversion Settings</td>
</tr>
<tr>
<td>Max Video Width</td>
<td><input name="r_width" type="text" id="r_width" value="{$row.r_width}" size="45" /></td>
</tr>
<tr>
<td>Video Height</td>
<td>Max Video Height</td>
<td><input name="r_height" type="text" id="r_height" value="{$row.r_height}" size="45" /></td>
</tr>
<tr>
@ -227,7 +294,8 @@
<option value="max" {if $row.resize ==max} selected="selected"{/if}>Max</option>
<option value="WxH" {if $row.resize ==WxH} selected="selected"{/if}>Stretch</option>
<option value="fit" {if $row.resize ==fit} selected="selected"{/if}>Aspect Ratio</option>
</select>&nbsp;</td>
</select> <a href="http://docs.clip-bucket.com/clipbucket-docs/resize-video-type" target="_blank">
<img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="Resize Type Of Video - Click For More Details" /></a></td>
</tr>
<tr>
<td>Thumb Width</td>
@ -254,11 +322,15 @@
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">Change only if you have good knowledge of video conversion</td>
<td colspan="2" class="settings_inner_title">Change only if you have good knowledge of video conversion <a href="http://docs.clip-bucket.com/clipbucket-docs/video-conversion-settings" target="_blank"><img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="Video Conversion Info - Click For More Details" /></a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>Video Codec</td>
<td><input name="video_codec" type="text" id="video_codec" value="{$row.video_codec}" size="45" /></td>
</tr>
<tr>
<td>Audio Codec</td>
<td><input name="audio_codec" type="text" id="audio_codec" value="{$row.audio_codec}" size="45" /></td>
</tr>
<tr>
<td>Video Rate</td>

View file

@ -0,0 +1,128 @@
<h2>Mass Email</h2>
<table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Send Email To All Users</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<form name="send_to_all" method="post">
<table width="800" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" align="right" valign="top"><span class="td_body">From</span></td>
<td valign="top"><input name="from" type="text" id="from" value="{'from'|post}" size="45"></td>
</tr>
<tr>
<td align="right" valign="top"><span class="td_body">Subject</span></td>
<td valign="top"><span class="td_body">
<input name="subj" type="text" id="subj" value="{'subj'|post}" size="45">
</span></td>
</tr>
<tr>
<td align="right" valign="top"><span class="td_body">Message </span></td>
<td valign="top"><textarea name="msg" cols="45" rows="6" id="msg">{'msg'|post}</textarea>
<span class="td_body">
<label><br>
Keywords<br>
[username] [email] [datejoined]</label>
</span></td>
</tr>
<tr>
<td align="right" valign="top">Active only</td>
<td align="left" valign="top"><select name="active" id="active" class="input">
<option value="" ></option>
<option value="Ok" {if $smarty.post.active=='Ok'} selected="selected"{/if}>Yes</option>
<option value="ToActivate" {if $smarty.post.active=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right" valign="top">User Level</td>
<td align="left" valign="top"><select name="level" id="level">
<option value="" ></option>
{assign var=levels value=$userquery->get_levels()}
{foreach from=$levels item=level}
{if $level.user_level_id !='4'}
<option value="{$level.user_level_id}" {if $smarty.post.level==$level.user_level_id} selected="selected"{/if}>{$level.user_level_name}</option>
{/if}
{/foreach}
</select></td>
</tr>
<tr>
<td align="right" valign="top">Banned</td>
<td align="left" valign="top"><select name="ban" id="ban" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.post.ban=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.post.ban=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right" valign="top">Category</td>
<td align="left" valign="top">{$formObj->createField($cat_array)}</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td align="right" valign="top"><input type="submit" name="send_to_all" value="Send Email" class="button" id="send_to_all" ></td>
</tr>
</table>
</form>
<div style="height:20px"></div>
<table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="center" valign="middle" class="left_head">&nbsp;</td>
<td class="head">Send Email To Specific Users</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<form name="send_to_selected" method="post">
<table width="800" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" align="right" valign="top"><span class="td_body">From</span></td>
<td valign="top"><input name="from" type="text" id="from" value="{'from'|get}" size="45"></td>
</tr>
<tr>
<td align="right" valign="top"><span class="td_body">Subject</span></td>
<td valign="top"><span class="td_body">
<input name="subj2" type="text" id="subj2" value="{'subj'|get}" size="45">
</span></td>
</tr>
<tr>
<td align="right" valign="top"><span class="td_body">Send To </span></td>
<td valign="top"><span class="td_body">
<input name="to" type="text" id="to" value="{'to'|get}" size="45">
<br>
Seperate Usernames or Emails by comma ie arslan, zohaib@thewebsite.com</span></td>
</tr>
<tr>
<td align="right" valign="top"><span class="td_body">Message </span></td>
<td valign="top"><textarea name="msg" cols="45" rows="6" id="msg">{'msg'|get}</textarea></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td align="left" valign="top"><span class="td_body">
<label>Keywords<br>
[username] [firstname] [lastname] [email] [datejoined]<br>
eg Hello [username] </label>
</span></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td align="right" valign="top"><input type="submit" name="send_mail" value="Send Email" class="button" ></td>
</tr>
</table>
</form>

View file

@ -1,29 +1,99 @@
<span class="page_title">Member Manager</span>
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('memsearchdiv')" />
<div class="search_box" id="memsearchdiv" {if $smarty.cookies.show_memsearchdiv_search!='show'} style="display:none"{/if}> <form id="user_search" name="user_search" method="get" action="members.php" class="video_search">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right">Userid</td>
<td width="280"><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right">Username</td>
<td><input name="username" type="text" class="input" id="username" value="{'username'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right">Email</td>
<td><input name="email" type="text" class="input" id="email" value="{'email'|get_form_val:true}" //></td>
</tr>
<tr>
<td align="right">Status</td>
<td><select name="status" id="status" class="input">
<option value="" ></option>
<option value="Ok" {if $smarty.get.status=='Ok'} selected="selected"{/if}>OK</option>
<option value="ToActivate" {if $smarty.get.status=='ToActivate'} selected="selected"{/if}>Inactive</option>
</select></td>
</tr>
<tr>
<td align="right">Banned</td>
<td>
<select name="ban" id="ban" class="input">
<option value="" ></option>
<option value="yes" {if $smarty.get.ban=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.ban=='no'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right">Featured</td>
<td><select name="featured" id="featured" class="input">
<option value="" ></option>
<option value="Yes" {if $smarty.get.featured=='Yes'} selected="selected"{/if}>Yes</option>
<option value="No" {if $smarty.get.featured=='No'} selected="selected"{/if}>No</option>
</select></td>
</tr>
<tr>
<td align="right" valign="top">Category</td>
<td>
{$formObj->createField($cat_array)}
</td>
</tr>
</table>
<br />
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
</form>
</div>
<!-- Displaying Members -->
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<form name="user_manage" method="post">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return.png" width="25" height="25"></td>
<td height="50" style="padding-left:15px">
<input type="submit" name="activate_selected" value="Activate" class="button"/>
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input type="submit" name="ban_selected2" value="Make Unfeatured" class="button" id="ban_selected2"/>
<input type="submit" name="ban_selected" value="Ban Selected" class="button" id="ban_selected"/>
<input type="submit" name="unban_selected" value="Unban Selected" class="button" id="unban_selected"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head_sep_left">UID</td>
<td class="head"><div class="head_sep_left" style="width:250px">User Details</div></td>
<td width="50" class="head">UID</td>
<td class="head">User Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
{if $users}
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<table width="99%" border="0" cellpadding="0" cellspacing="0">
{foreach from=$users item=u}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_user[]" type="checkbox" id="check_user" value="{$videos[list].videoid}" /></td>
<td width="50" align="center" valign="top" class="video_opt_td">{$u.userid}</td>
<td width="40" align="center" valign="top" class="video_opt_td"> <input name="check_user[]" type="checkbox" id="check_user" value="{$u.userid}" /></td>
<td width="50" align="left" valign="top" class="video_opt_td">{$u.userid}</td>
<td valign="top" class="video_opt_td"
onmouseover="$('#usr_opt-{$u.userid}').show()"
onmouseout="$('#usr_opt-{$u.userid}').hide()" >
<div style="float:left; width:35px; margin-left:10px"><img src="{$userquery->getUserThumb($u,'small')}" class="mid_user_thumb" /></div>
<div style="float:left; width:35px;"><img src="{$userquery->getUserThumb($u,'small')}" class="mid_user_thumb" /></div>
<a href="#" target="_blank" style="text-indent:10px">
{$u.username}
</a> &#8212;
@ -67,8 +137,39 @@
{/if}
{/foreach}
</table>
{else}
<div align="center"><strong><em>NO USER FOUND</em></strong></div>
{/if}
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return_invert.png" width="25" height="25"></td>
<td height="50" style="padding-left:15px">
<input type="submit" name="activate_selected" value="Activate" class="button"/>
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input type="submit" name="ban_selected2" value="Make Unfeatured" class="button" id="ban_selected2"/>
<input type="submit" name="ban_selected" value="Ban Selected" class="button" id="ban_selected"/>
<input type="submit" name="unban_selected" value="Unban Selected" class="button" id="unban_selected"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }

View file

@ -1,8 +1,8 @@
<span class="page_title">Video Manager</span>
<h2>Video Manager</h2>
<div class="search_box"> <form id="video_search" name="video_search" method="get" action="video_manager.php" class="video_search">
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('searchdiv')" />
<div class="search_box" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}> <form id="video_search" name="video_search" method="get" action="video_manager.php" class="video_search">
<table width="400" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="106" align="right"><label for="title">Video title</label></td>
@ -52,9 +52,9 @@
</tr>
<tr>
<td align="right" valign="top">Category</td>
<td>{$cat_array.hint_1}<br />
{ANCHOR place=$cat_array.anchor_before}{$formObj->createField($cat_array)}
{$cat_array.hint_2}</td>
<td>
{$formObj->createField($cat_array)}
</td>
</tr>
</table>
<br />
@ -85,8 +85,8 @@
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head_sep_left">VID</td>
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
<td width="50" class="head">VID</td>
<td class="head">Details</td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
@ -94,13 +94,13 @@
{if $videos}
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$videos}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_video[]" type="checkbox" id="check_video" value="{$videos[list].videoid}" /></td>
<td width="50" align="center" valign="top" class="video_opt_td">{$videos[list].videoid}</td>
<td width="50" align="left" valign="top" class="video_opt_td">{$videos[list].videoid}</td>
<td valign="top" class="video_opt_td"
onmouseover="$('#vid_opt-{$videos[list].videoid}').show()"
onmouseout="$('#vid_opt-{$videos[list].videoid}').hide()" >
@ -110,7 +110,9 @@
<span class="vdo_sets">
Featured:<strong>{$videos[list].featured} </strong> &#8226;
Active:<strong>{$videos[list].active}</strong> &#8226;
Status:<strong>{$videos[list].status}</strong>
Status:<strong>{$videos[list].status}</strong> &#8226;
Uploaded:<strong>{$videos[list].date_added|niceTime}</strong> &#8226;
User:<strong>{$videos[list].userid|username}</strong>
</span>
<br />
@ -142,7 +144,9 @@
{/section}
</table>
{else}
<div align="center"><strong><em>No Video Found</em></strong></div>
{/if}
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>

View file

@ -4,14 +4,14 @@
@import url("pagination.css");
@import url("cbtab.css");
body,html {background-color:#fff; margin:0px; padding:0px; font-family:Tahoma; color:#333; font-size:11px;}
body,html {background-color:#fff; margin:0px; padding:0px; font-family:Verdana; color:#333; font-size:11px;}
/* CLEARS */
.clearfix { }
.clearfix:after{ content: "."; display:block; height:0; font-size:0; clear:both; visibility:visible; }
/* GENERAL CSS */
a{ color:#0066cc; text-decoration:underline; outline:none; }
a{ color:#0099cc; text-decoration:underline; outline:none; }
a:hover,a:active { /*color:#464646; */ color:#d54e21; outline:none; }
a[rel=sponsors] { padding:5px; background:#0099cc; border:1px solid transparent; }
a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
@ -23,6 +23,8 @@ a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
.header_grey_bar .welcome{font-size:15px; padding-right:10px}
.header_grey_bar .logout_button{background-image:url(../images/icons.png); background-position:-50px 0px; height:25px; width:25px; float:right;margin:6px 5px 0px 5px; }
.sarch_button{width:109px; height:25px; cursor:pointer; background:transparent url(../images/icons.png) 0px -59px no-repeat;}
.header_menu{background:url(../images/gradients.png)0px -41px repeat-x; height:33px; border:1px solid #000; border-left:none; border-right:none}
.header_menu_after{background:url(../images/gradients.png)0px -74px repeat-x;height:13px;}
@ -38,8 +40,13 @@ a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
.toggle_menu_icon{background-image:url(../images/icons.png); background-position:0px -29px; height:30px; width:30px; float:left; margin-right:5px}
.admin_heading{border:1px solid #0099cc; padding:3px; font-size:15px; color:#fff; background-color:#0098ff}
.admin_box{border:1px solid #0099cc; border-top:0px;}
.admin_heading{ font-size:11px; font-weight:bold; color:#fff;background-image:url(../images/bgs/round_bg.png); background-position:right -52px; height:26px;line-height:26px; text-indent:10px;border-radius:5px 5px 0px 0px ;-webkit-border-radius:5px 5px 0px 0px ;-moz-border-radius: 5px 5px 0px 0px;}
.admin_box{border:1px solid #146194; border-top:0px; padding:5px; background-color:#fafafa; color:#666666; border-radius:0px 0px 5px 5px;-webkit-border-radius:0px 0px 5px 5px;-moz-border-radius:0px 0px 5px 5px; margin-bottom:15px}
.news .news_title{font-size:11px; color:#666}
.news .news_title a{font-size:13px; text-decoration:none; font-weight:bold}
.news .news_title .title{float:left; display:inline}
.news .news_title .date{float:right; display:inline; color:#a2a2a2; font-size:10px}
.stats .stat{border:0px; border-bottom:1px solid #ccc; padding:2px; background-color:#fafafa}
.stats .stat:last-child{border:none; background-color:#f3f3f3}
@ -52,8 +59,6 @@ a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
.page_title{font-size:20px; font-weight:bold; color:#333}
/**
* Page Table Tops
*/
@ -69,12 +74,12 @@ a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
.video_opt_td{height:45px; border-bottom:1px solid #ccc; padding-top:5px}
.video_opt_td a{font-size:13px; font-weight:bold; color:#0c4469; text-decoration:none}
.vid_opts{border:1px solid #ccc; padding:2px; display:inline;-moz-border-radius: 5px;
-webkit-border-radius: 5px; border:0px solid #EAEEFF;} .vdo_sets{font-size:11px; text-transform:uppercase; font-family: Consolas, Monaco, Courier, monospace;}
-webkit-border-radius: 5px; border:0px solid #EAEEFF;} .vdo_sets,.vdo_sets a{font-size:11px; text-transform:uppercase; font-family: Consolas, Monaco, Courier, monospace;}
h2,.page_title{font-size:18px; margin:5px 0px 5px 0px; display:inline; font-weight:normal}
h2,.page_title a{font-size:18px; }
.setting_title{font-size:18px; margin-bottom:5px 0px 5px 0px;}
.setting_title a{font-size:18px; }
/**
* Forms
*/
@ -134,7 +139,7 @@ padding-left:5px; font-size:16px; font-weight:bold; font-family:Arial, Helvetica
.search_box{margin:5px; padding:5px; border:1px solid #146194; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; background:#eff9ff}
.search_box{margin:5px; padding:5px; border:1px solid #e3e3e3; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; background:#f9f9f9}
.video_search .input{border:1px solid #666; width:200px}
@ -159,4 +164,63 @@ padding-left:5px; font-size:16px; font-weight:bold; font-family:Arial, Helvetica
.login_footer{ color:#333;font-size: 15px;font-family:"Century Gothic"; font-weight:bold}
.settings_inner_title{font-size:14px; font-weight:bold}
.settings_inner_title{font-size:14px; font-weight:bold}
/* ADMIN WIDGET */
.widgets-wrap
{
min-height:300px;
background:#fff;
}
.widgets-wrap .dragbox{
margin:0px 2px 20px;
background:#f8f8f8;
position:relative;
border:1px solid #146194;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
.widgets-wrap .dragbox h2{
margin:0;
font-size:12px;
padding:5px;
background-image:url(../images/bgs/round_bg.png); background-position:right -53px; height:15px;
color:#fff;
border-bottom:none;
font-family:Verdana;
cursor:move;
display:block; font-weight:bold;
}
.dragbox-content{
min-height:100px; margin:5px;
font-family:'Lucida Grande', Verdana; font-size:0.8em; line-height:1.5em;
}
.widgets-wrap .placeholder{
background: #f0f0f0;
border:1px dashed #ddd;
}
.dragbox h2.collapse{
background:#1488d5 url('../images/collapse.png') no-repeat top right;
}
.dragbox h2 .configure{
font-size:11px; font-weight:normal;
margin-right:30px; float:right;
}
.dragbox h2 .configure a{color:#fff; text-decoration:none}
.item img{ cursor:pointer;}
.item{background-image:url(../images/widget_item_border.gif); background-position:bottom; background-repeat:repeat-x; padding-bottom:10px; padding-top:10px; font-size:11px; font-family:Verdana}
.item:first-child{padding-top:0px}
.item:nth-child(2n){ background:#fff url(../images/widget_item_border.gif) repeat-x bottom }
.index_table:first-child{padding:0px 20px 0px 0px}
.index_table:last-child{padding:0px}
.delete_note{float:right}
.stats_subitem{width:20%;float:left;}
.stats_subitem:nth-child(2n){float:right; width:80%; text-align:right}

View file

@ -1,6 +1,6 @@
.left_menu
{
width: 230px;
width: 220px;
padding-left: 5px;
float:left;
}

View file

@ -23,15 +23,17 @@ if(isset($_GET['make_unfeature'])){
//Using Multple Action
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_video']);$id++){
$cbvid->action('feature',$_POST['check_video'][$id]);
}
$eh->flush();
e("Selected videos have been set as featured","m");
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_video']);$id++){
$cbvid->action('unfeature',$_POST['check_video'][$id]);
}
$eh->flush();
e("Selected videos have been removed from featured list","m");
}
@ -48,15 +50,17 @@ if(isset($_GET['deactivate'])){
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_video']);$id++){
$cbvid->action('activate',$_POST['check_video'][$id]);
}
$eh->flush();
e("Selected Videos Have Been Activated","m");
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
for($id=0;$id<=count($_POST['check_video']);$id++){
$cbvid->action('deactivate',$_POST['check_video'][$id]);
}
$eh->flush();
e("Selected Videos Have Been Dectivated","m");
}
@ -70,7 +74,7 @@ if(isset($_GET['delete_video'])){
//Deleting Multiple Videos
if(isset($_POST['delete_selected']))
{
for($id=0;$id<=RESULTS;$id++)
for($id=0;$id<=count($_POST['check_video']);$id++)
{
$cbvideo->delete_video($_POST['check_video'][$id]);
}
@ -79,13 +83,8 @@ if(isset($_POST['delete_selected']))
}
//Calling Video Manager Functions
call_functions($cbvid->video_manager_funcs);
//Jump To The page
if(isset($_POST['display_page'])){
redirect_to($_POST['page_number']);
}
//Calling Video Manager Functions
call_functions($cbvid->video_manager_funcs);
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,RESULTS);
@ -104,16 +103,16 @@ call_functions($cbvid->video_manager_funcs);
'featured' => $_GET['featured'],
'active' => $_GET['active'],
'status' => $_GET['status'],
);
);
}
$result_array = $array;
//Getting Video List
$result_array['limit'] = $get_limit;
$videos = get_videos($array);
if(!$array['order'])
$result_array['order'] = " date_added DESC ";
$videos = get_videos($result_array);
Assign('videos', $videos);
//Collecting Data for Pagination
@ -121,6 +120,7 @@ call_functions($cbvid->video_manager_funcs);
$vcount['count_only'] = true;
$total_rows = get_videos($vcount);
$total_pages = count_pages($total_rows,RESULTS);
$pages->paginate($total_pages,$page);
//Category Array

View file

@ -215,18 +215,18 @@ class ClipBucket
'Manage Categories'=>'category.php',
'List Flagged Videos'=>'flagged_videos.php',
'Upload Videos' =>'mass_uploader.php',
'List Inavtive Videos'=>'video_manager.php?view=search&&active=no'
'List Inactive Videos'=>'video_manager.php?search=search&active=no'
),
//Users
'Users' =>
array(
'Manage Members' => 'members.php?view=showall',
'Manage Members' => 'members.php',
'Add Member'=>'members.php?view=addmember',
'User Levels'=>'user_levels.php',
'Search Members'=>'members.php?view=search',
'Inactive Only'=>'members.php?view=inactive',
'Active Only'=>'members.php?view=active',
'Inactive Only'=>'members.php?search=yes&status=ToActivate',
'Active Only'=>'members.php?search=yes&status=Ok',
'Mass Email'=>'mass_email.php'
),
@ -235,7 +235,8 @@ class ClipBucket
array(
'Add Group'=>'add_group.php',
'Manage Groups'=>'groups_manager.php',
'Manage Categories'=>'group_category.php?view=show_category'
'Manage Categories'=>'group_category.php?view=show_category',
'View Inactive Groups' => 'groups_manager.php?active=no&search=yes',
),
//Advertisments
@ -449,6 +450,31 @@ class ClipBucket
{
ANCHOR(array('place'=>'the_footer'));
}
/**
* Function used to get News From ClipBucket Blog
*/
function get_cb_news()
{
$feeds = 3;
$text = 400;
//$url = 'http://blog.clip-bucket.com/feed/';
$url = 'http://localhost/clipbucket/2.x/2/upload/tester/feed.xml';
$news = xml2array($url);
if(!$news)
{
return false;
}else
{
$items = array();
$item = $news['rss']['channel']['item'];
for($i=0;$i<$feeds;$i++)
$items[] = $item[$i];
return $items;
}
}
}
?>

View file

@ -27,7 +27,7 @@ class CBEmail
function get_email_template($code)
{
global $db;
$result = $db->select($this->db_tpl,"*"," email_template_code='".$code."'");
$result = $db->select($this->db_tpl,"*"," email_template_code='".$code."' OR email_template_id='$code' ");
if($db->num_rows>0)
{
return $result[0];
@ -85,6 +85,45 @@ class CBEmail
}
return preg_replace($var_array,$val_array,$content);
}
/**
* Function used to get all templates
*/
function get_templates()
{
global $db;
$results = $db->select($this->db_tpl,"*",NULL,NULL," email_template_name DESC");
if($db->num_rows>0)
return $results;
else
return false;
}
/**
* Function used to update email template
*/
function update_template($params)
{
global $db;
$id = mysql_clean($params['id']);
$subj = mysql_clean($params['subj']);
$msg = mysql_real_escape_string($params['msg']);
if(!$this->template_exists($id))
e("Email template does not exist");
elseif(empty($subj))
e("Email subject was empty");
elseif(empty($msg))
e("Email msg was empty");
else
{
$db->update($this->db_tpl,array("email_template_subject","email_template"),array($subj,$msg),
" email_template_id='$id'");
e("Email Template has been updated","m");
}
}
}
?>

View file

@ -11,8 +11,9 @@
define("KEEP_MP4_AS_IS","no");
define("MP4Box_BINARY","/usr/local/bin/MP4Box");
define("FLVTool2_BINARY","/usr/local/bin/flvtool2");
define("MP4Box_BINARY",get_binaries('MP4Box')));
define("FLVTool2_BINARY",get_binaries('flvtool2'));
define('FFMPEG_BINARY', get_binaries('ffmpeg'));
class ffmpeg
{
@ -37,7 +38,9 @@ class ffmpeg
var $input_ext = '';
var $tmp_dir = '/';
var $flvtool2 = '';
var $thumb_dim = '120x90' //Thumbs Dimension
var $num_of_thumbs = '3' //Number of thumbs
var $big_thumb_dim = 'original' //Big thumb size , original will get orginal video window size thumb othersie the dimension
/**
* Initiating Class
@ -640,11 +643,15 @@ class ffmpeg
$this->log .= $this->total_time.' seconds'."\r\n\r\n";
//$this->update_data();
$th_dim = $this->thumb_dim;
$big_th_dim = $this->big_thumb_dim ;
//Generating Thumb
if($this->gen_thumbs)
$this->generate_thumbs($this->input_file,$this->input_details['duration']);
$this->generate_thumbs($this->input_file,$this->input_details['duration'],$th_dim,$this->num_of_thumbs);
if($this->gen_big_thumb)
$this->generate_thumbs($this->input_file,$this->input_details['duration'],'original','big');
$this->generate_thumbs($this->input_file,$this->input_details['duration'],$big_th_dim,'big');
if(!file_exists($this->output_file))
$this->log("conversion_status","failed");

View file

@ -16,6 +16,7 @@ class CBGroups extends CBCategory
var $gp_tbl = '';
var $custom_group_fields = array();
var $actions = '';
var $group_manager_funcs = array();
/**
* Constructor function to set values of tables
@ -457,6 +458,31 @@ class CBGroups extends CBCategory
}
}
if(has_access('admin_access',TRUE))
{
if(!empty($array['total_views']))
{
$query_field[] = 'total_views';
$query_val[] = $array['total_views'];
}
if(!empty($array['total_videos']))
{
$query_field[] = 'total_videos';
$query_val[] = $array['total_videos'];
}
if(!empty($array['total_members']))
{
$query_field[] = 'total_members';
$query_val[] = $array['total_members'];
}
if(!empty($array['total_topics']))
{
$query_field[] = 'total_topics';
$query_val[] = $array['total_topics'];
}
}
//Getting Group URL value
$gp_url = $this->get_gp_field_only($gid,"group_url");
//Checking Group URL
@ -1140,7 +1166,7 @@ class CBGroups extends CBCategory
e("Group does not exist");
elseif(!$this->is_group_video($vid,$gid))
e("Video does not exist");
elseif(userid()!=$group['userid'])
elseif(userid()!=$group['userid'] && !has_access("admin_access"))
e("You are not owner of this group");
else
switch($case)
@ -1342,39 +1368,58 @@ class CBGroups extends CBCategory
else
return false;
}
//Function Used To Feature Group
function MakeFeatured($group){
global $LANG;
mysql_query("UPDATE groups SET featured='yes' WHERE group_id='".$group."'");
return lang('grp_fr_msg');
/**
* Function used to perform gorups actions
*/
function grp_actions($type,$gid)
{
global $db;
$gdetails = $this->get_details($gid);
if(!$gdetails)
e("Group does not exist");
else
{
switch($type)
{
case "activate":
case "active":
{
$db->update($this->gp_tbl,array("active"),array("yes")," group_id='$gid' ");
e("Group has been activated","m");
}
break;
case "deactivate":
case "deactive":
{
$db->update($this->gp_tbl,array("active"),array("no")," group_id='$gid' ");
e("Group has been deactivated","m");
}
break;
case "featured":
case "feature":
{
$db->update($this->gp_tbl,array("featured"),array("yes")," group_id='$gid' ");
e("Group has been set as featured","m");
}
break;
case "unfeatured":
case "unfeature":
{
$db->update($this->gp_tbl,array("featured"),array("no")," group_id='$gid' ");
e("Group has been removed from featured list","m");
}
break;
case "delete":
{
$this->delete_group($gid);
e("Group has been deleted","m");
}
break;
}
}
}
//Function Used To UngFeatured Group
function MakeUnFeatured($group){
global $LANG;
mysql_query("UPDATE groups SET featured='no' WHERE group_id='".$group."'");
return lang('grp_fr_msg2');
}
//Function Used To Activate Group
function Activate($group){
global $LANG;
mysql_query("UPDATE groups SET active='yes' WHERE group_id='".$group."'");
return lang('grp_av_msg');
}
//Function Used To DeActivate Group
function DeActivate($group){
global $LANG;
mysql_query("UPDATE groups SET active='no' WHERE group_id='".$group."'");
return lang('grp_inv_msg1');
}
/**
* Function used to get all topic icons
@ -1651,18 +1696,27 @@ class CBGroups extends CBCategory
* order => {soring by}
* date_margin => {date span}
*/
function get_groups($params)
function get_groups($params=NULL)
{
global $db;
$limit = $params['limit'];
$order = $params['order'];
$cond = "";
if(!has_access('admin_access',TRUE))
$cond = " active='yes' ";
$cond .= " active='yes' ";
else
{
if($params['active'])
$cond .= " active='".$params['active']."'";
}
//Setting Category Condition
if($params['category'] && strtolower($params['category'])!='all')
if(!is_array($params['category']))
$is_all = strtolower($params['category']);
if($params['category'] && $is_all!='all')
{
if($cond!='')
$cond .= ' AND ';
@ -1736,7 +1790,7 @@ class CBGroups extends CBCategory
{
if($tag_n_title!='')
$tag_n_title .= ' OR ';
$tag_n_title .= " group_name LIKE '%".$params['tags']."%'";
$tag_n_title .= " group_name LIKE '%".$params['title']."%'";
}
if($tag_n_title)
@ -1751,7 +1805,15 @@ class CBGroups extends CBCategory
{
if($cond!='')
$cond .= ' AND ';
$featured .= " featured = 'yes' ";
$cond .= " featured = '".$params['featured']."' ";
}
//GROUP ID
if($params['group_id'])
{
if($cond!='')
$cond .= ' AND ';
$cond .= " group_id = '".$params['group_id']."' ";
}
//Exclude Vids
@ -1892,7 +1954,7 @@ class CBGroups extends CBCategory
'value'=>cleanForm($default['query'])
),
'category' => array(
'title' => lang('vdo_cat'),
'title' => lang('category'),
'type' => 'checkbox',
'name' => 'category[]',
'id' => 'category',
@ -1900,7 +1962,7 @@ class CBGroups extends CBCategory
'category_type'=>'group',
),
'date_margin' => array(
'title' => lang('Joined'),
'title' => lang('created'),
'type' => 'dropdown',
'name' => 'datemargin',
'id' => 'datemargin',

View file

@ -1073,5 +1073,30 @@ class myquery {
}
/**
* Function used to insert note in data base for admin referance
*/
function insert_note($note)
{
global $db;
$db->insert('cb_admin_notes',array('note,date_added,userid'),array($note,now(),userid()));
}
/**
* Function used to get notes
*/
function get_notes()
{
global $db;
return $db->select('cb_admin_notes','*'," userid='".userid()."'",NULL," date_added DESC ");
}
/**
* Function usde to delete note
*/
function delete_note($id)
{
global $db;
$db->delete("cb_admin_notes",array("note_id"),array($id));
}
}
?>

View file

@ -19,9 +19,9 @@
**************************************************************************************************
**/
define('ALLOWED_VDO_CATS',3);
class Upload{
class Upload{
var $custom_form_fields = array(); //Step 1 of Uploading
var $custom_upload_fields = array(); //Step 2 of Uploading
@ -482,8 +482,8 @@
'size'=>'45',
'db_field'=>'title',
'required'=>'yes',
'min_length' => 4,
'max_length'=>100
'min_length' => config("video_min_title"),
'max_length'=>config("video_max_title")
),
'desc' => array('title'=> $LANG['vdo_desc'],
@ -502,7 +502,7 @@
'name'=> 'category[]',
'id'=> 'category',
'value'=> array('category',$cat_array),
'hint_1'=> $LANG['vdo_cat_msg'],
'hint_1'=> sprintf($LANG['vdo_cat_msg'],ALLOWED_VDO_CATS),
'db_field'=>'category',
'required'=>'yes',
'validate_function'=>'validate_vid_category',

View file

@ -27,6 +27,7 @@ class userquery extends CBCategory{
var $signup_plugins = array(); //Signup Plugins
var $custom_signup_fields = array();
var $delete_user_functions = array();
var $user_manager_functions = array();
var $dbtbl = array(
'user_permission_type' => 'user_permission_types',
@ -160,7 +161,7 @@ class userquery extends CBCategory{
'num_visits','last_logged','ip'
),
array(
'|f|num_visits+1',NOW(),$_SERVER['HTTP_HOST']
'|f|num_visits+1',NOW(),$_SERVER['REMOTE_ADDR']
),
"userid='".$userid."'"
);
@ -191,8 +192,6 @@ class userquery extends CBCategory{
{
global $LANG,$Cbucket,$sess;
//First check weather userid is here or not
if(!userid())
{
@ -2903,7 +2902,7 @@ class userquery extends CBCategory{
$this->validate_form_fields($array);
//checking terms and policy agreement
if($_POST['agree']!='yes')
if($array['agree']!='yes' && !has_access('admin_access',true))
e($LANG['usr_ament_err']);
@ -2954,7 +2953,23 @@ class userquery extends CBCategory{
$usr_status = 'Ok';
$welcome_email = 'yes';
}
$query_field[] = " usr_status";
if(has_access('admin_access',true))
{
if($array['active']=='yes')
{
$usr_status = 'Ok';
$welcome_email = 'yes';
}else{
$usr_status = 'ToActivate';
$welcome_email = 'no';
}
$query_field[] = "level";
$query_val[] = $array['level'];
}
$query_field[] = "usr_status";
$query_val[] = $usr_status;
$query_field[] = " welcome_email_sent";
@ -3007,7 +3022,7 @@ class userquery extends CBCategory{
$insert_id = $db->insert_id();
$db->insert($userquery->dbtbl['user_profile'],array("userid"),array($insert_id));
if(!$userquery->perm_check('admin_add_user',true,false) && EMAIL_VERIFICATION)
if(!has_access('admin_access',true) && EMAIL_VERIFICATION)
{
global $cbemail;
$tpl = $cbemail->get_template('email_verify_template');
@ -3026,7 +3041,7 @@ class userquery extends CBCategory{
//Now Finally Sending Email
cbmail(array('to'=>post('email'),'from'=>WEBSITE_EMAIL,'subject'=>$subj,'content'=>$msg));
}
elseif(!$userquery->perm_check('admin_add_user',true,false))
elseif(!has_access('admin_access',true))
{
$this->send_welcome_email($insert_id);
}
@ -3034,6 +3049,8 @@ class userquery extends CBCategory{
return $insert_id;
}
return false;
}
@ -3164,9 +3181,26 @@ class userquery extends CBCategory{
$order = $params['order'];
$cond = "";
if(!has_access('admin_access',TRUE))
$cond .= " usr_status='Ok' AND ban_status ='no' ";
else
{
if($params['ban'])
$cond .= " ban_status ='".$params['ban']."'";
if($params['status'])
{
if($cond!='')
$cond .=" AND ";
$cond .= " usr_status='".$params['status']."'";
}
}
//Setting Category Condition
if($params['category'] && strtolower($params['category'])!='all')
if(!is_array($params['category']))
$is_all = strtolower($params['category']);
if($params['category'] && $is_all!='all')
{
if($cond!='')
$cond .= ' AND ';
@ -3255,10 +3289,18 @@ class userquery extends CBCategory{
{
if($cond!='')
$cond .= ' AND ';
$featured .= " featured = 'yes' ";
$cond .= " featured = '".$params['featured']."' ";
}
//Exclude Vids
//Email
if($params['email'])
{
if($cond!='')
$cond .= ' AND ';
$cond .= " email = '".$params['email']."' ";
}
//Exclude Users
if($params['exclude'])
{
if($cond!='')
@ -3266,6 +3308,30 @@ class userquery extends CBCategory{
$cond .= " userid <> '".$params['exclude']."' ";
}
//Getting specific User
if($params['userid'])
{
if($cond!='')
$cond .= ' AND ';
$cond .= " userid = '".$params['userid']."' ";
}
//Sex
if($params['gender'])
{
if($cond!='')
$cond .= ' AND ';
$cond .= " sex = '".$params['gender']."' ";
}
//Level
if($params['level'])
{
if($cond!='')
$cond .= ' AND ';
$cond .= " level = '".$params['level']."' ";
}
$result = $db->select('users','*',$cond,$limit,$order);
@ -3413,7 +3479,7 @@ class userquery extends CBCategory{
$uploaded = $default['datemargin'];
$sort = $default['sort'];
$this->search->search_type['users'] = array('title'=>'Users');
$this->search->search_type['users'] = array('title'=>lang('users'));
$fields = array(
'query' => array(
@ -3424,7 +3490,7 @@ class userquery extends CBCategory{
'value'=>cleanForm($default['query'])
),
'category' => array(
'title' => lang('vdo_cat'),
'title' => lang('category'),
'type' => 'checkbox',
'name' => 'category[]',
'id' => 'category',
@ -3432,7 +3498,7 @@ class userquery extends CBCategory{
'category_type'=>'user',
),
'date_margin' => array(
'title' => lang('Joined'),
'title' => lang('joined'),
'type' => 'dropdown',
'name' => 'datemargin',
'id' => 'datemargin',

View file

@ -375,15 +375,20 @@ class CBvideo extends CBCategory
$limit = $params['limit'];
$order = $params['order'];
$cond = "";
if(!has_access('admin_access',TRUE))
$cond = " status='Successful' AND active='yes' ";
$cond .= " status='Successful' AND active='yes' ";
else
{
if(!$params['active'])
$params['active'] = 'yes';
if(!$params['status'])
$params['status'] = 'Successful';
$cond = " status='".$params['status']."' AND active='".$params['active']."' ";
if($params['active'])
$cond .= " active='".$params['active']."'";
if($params['status'])
{
if($cond!='')
$cond .=" AND ";
$cond .= " status='".$params['status']."'";
}
}
//Setting Category Condition
@ -491,7 +496,6 @@ class CBvideo extends CBCategory
$cond .= ' AND ';
$cond .= " videoid <> '".$params['exclude']."' ";
}
$cond;
if(!$params['count_only'])
$result = $db->select('video','*',$cond,$limit,$order);
@ -676,7 +680,7 @@ class CBvideo extends CBCategory
$uploaded = $default['datemargin'];
$sort = $default['sort'];
$this->search->search_type['videos'] = array('title'=>'Videos');
$this->search->search_type['videos'] = array('title'=>lang('videos'));
$fields = array(
'query' => array(

View file

@ -162,7 +162,9 @@ else
define('RVLIST',$row['recently_viewed_limit']); //Search Results List Per page
//Video Options
define('ALLOWED_VDO_CATS',$row['video_categories']);
define('ALLOWED_CATEGORIES',3);
define('VIDEO_COMMENT',$row['video_comments']);
define('VIDEO_RATING',$row['video_rating']);
define('COMMENT_RATING',$row['comment_rating']);
@ -223,24 +225,12 @@ else
define('MAX_UPLOAD_SIZE', $row['max_upload_size']);
define('THUMB_HEIGHT', $row['thumb_height']);
define('THUMB_WIDTH', $row['thumb_width']);
define('FFMPEG_TYPE', $row['ffmpeg_type']);
if(FFMPEG_TYPE == 's'){
define('FFMPEG_BINARY', MODULEDIR.'/encoders/ffmpeg');
}else{
define('FFMPEG_BINARY', $row['ffmpegpath']);
}
define('FFMPEG_FLVTOOLS_BINARY', $row['flvpath']);
define('PHP_PATH', $row['php_path']);
define('FFMPEG_MENCODER_BINARY', $row['mencoderpath']);
define('FFMPEG_MPLAYER_BINARY', $row['mplayerpath']);
//Defining Plugin Directory
define('PLUG_DIR',BASEDIR.'/plugins');
define('PLUG_URL',BASEURL.'/plugins');
define('ALLOWED_CATEGORIES',3);
define('MAX_COMMENT_CHR',$Cbucket->configs['max_comment_chr']);
define('USER_COMMENT_OWN',$Cbucket->configs['user_comment_own']);
@ -362,6 +352,7 @@ $Smarty->assign_by_ref('cbplayer',$cbplayer);
$Smarty->assign_by_ref('cbsearch',$cbsearch);
$Smarty->assign_by_ref('cbpm',$cbpm);
$Smarty->assign_by_ref('cbpage',$cbpage);
$Smarty->assign_by_ref('cbemail',$cbemail);
/*
REGISERTING FUNCTION FOR SMARTY TEMPLATES
@ -392,6 +383,7 @@ $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('get_groups','get_groups');
$Smarty->register_function('private_message','private_message');
$Smarty->register_function('show_video_rating','show_video_rating');
$Smarty->register_function('load_captcha','load_captcha');

View file

@ -883,7 +883,7 @@
$count++;
preg_match('/\|no_mc\|/',$value,$matches);
pr($matches);
//pr($matches);
if($matches[0]!='')
$val = preg_replace('/\|no_mc\|/','',$value);
else
@ -1275,9 +1275,9 @@
{
e($LANG['vdo_cat_err3']);
return false;
}elseif(count($new_array)>ALLOWED_CATEGORIES)
}elseif(count($new_array)>ALLOWED_VDO_CATS)
{
e(sprintf($LANG['vdo_cat_err2'],ALLOWED_CATEGORIES));
e(sprintf($LANG['vdo_cat_err2'],ALLOWED_VDO_CATS));
return false;
}
@ -1547,9 +1547,31 @@
return "/usr/bin/php";
}
/**
* Functon used to get binary paths
*/
function get_binaries($path)
{
$path = strtolower($path);
switch($path)
{
case "php":
return php_path();
break;
case "mp4box":
return config("mp4boxpath");
break;
case "flvtool2":
return config("flvtool2path");
break;
case "ffmpeg":
return config("ffmpegpath");
break;
}
}
/**
@ -1861,7 +1883,7 @@
assign('template_files',$new_list);
Template('body.html');
if(count($ClipBucket->anchor_function_list['the_footer'])==0 ||!defined("footer_loaded"))
if(count($ClipBucket->anchor_function_list['the_footer'])==0 ||!defined("footer_loaded") && !BACK_END)
{
echo base64_decode("PGgyPklsbGVnYWwgT3BlcmF0aW9uIEZvdW5k");
echo "- Please VISIT ";
@ -2794,6 +2816,16 @@
return $userquery->get_users($param);
}
/**
* function used to get groups
*/
function get_groups($param)
{
global $cbgroup;
return $cbgroup->get_groups($param);
}
/**
* Function used to call functions
*/
@ -3194,5 +3226,169 @@
global $Cbucket;
return $Cbucket->foot_menu($params);
}
/**
* FUNCTION Used to convert XML to Array
* @Author : http://www.php.net/manual/en/function.xml-parse.php#87920
*/
function xml2array($url, $get_attributes = 1, $priority = 'tag')
{
$contents = "";
if (!function_exists('xml_parser_create'))
{
return false;
}
$parser = xml_parser_create('');
if (!($fp = @ fopen($url, 'rb')))
{
return false;
}
while (!feof($fp))
{
$contents .= fread($fp, 8192);
}
fclose($fp);
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8");
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($parser, trim($contents), $xml_values);
xml_parser_free($parser);
if (!$xml_values)
return; //Hmm...
$xml_array = array ();
$parents = array ();
$opened_tags = array ();
$arr = array ();
$current = & $xml_array;
$repeated_tag_index = array ();
foreach ($xml_values as $data)
{
unset ($attributes, $value);
extract($data);
$result = array ();
$attributes_data = array ();
if (isset ($value))
{
if ($priority == 'tag')
$result = $value;
else
$result['value'] = $value;
}
if (isset ($attributes) and $get_attributes)
{
foreach ($attributes as $attr => $val)
{
if ($priority == 'tag')
$attributes_data[$attr] = $val;
else
$result['attr'][$attr] = $val; //Set all the attributes in a array called 'attr'
}
}
if ($type == "open")
{
$parent[$level -1] = & $current;
if (!is_array($current) or (!in_array($tag, array_keys($current))))
{
$current[$tag] = $result;
if ($attributes_data)
$current[$tag . '_attr'] = $attributes_data;
$repeated_tag_index[$tag . '_' . $level] = 1;
$current = & $current[$tag];
}
else
{
if (isset ($current[$tag][0]))
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level]] = $result;
$repeated_tag_index[$tag . '_' . $level]++;
}
else
{
$current[$tag] = array (
$current[$tag],
$result
);
$repeated_tag_index[$tag . '_' . $level] = 2;
if (isset ($current[$tag . '_attr']))
{
$current[$tag]['0_attr'] = $current[$tag . '_attr'];
unset ($current[$tag . '_attr']);
}
}
$last_item_index = $repeated_tag_index[$tag . '_' . $level] - 1;
$current = & $current[$tag][$last_item_index];
}
}
elseif ($type == "complete")
{
if (!isset ($current[$tag]))
{
$current[$tag] = $result;
$repeated_tag_index[$tag . '_' . $level] = 1;
if ($priority == 'tag' and $attributes_data)
$current[$tag . '_attr'] = $attributes_data;
}
else
{
if (isset ($current[$tag][0]) and is_array($current[$tag]))
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level]] = $result;
if ($priority == 'tag' and $get_attributes and $attributes_data)
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level] . '_attr'] = $attributes_data;
}
$repeated_tag_index[$tag . '_' . $level]++;
}
else
{
$current[$tag] = array (
$current[$tag],
$result
);
$repeated_tag_index[$tag . '_' . $level] = 1;
if ($priority == 'tag' and $get_attributes)
{
if (isset ($current[$tag . '_attr']))
{
$current[$tag]['0_attr'] = $current[$tag . '_attr'];
unset ($current[$tag . '_attr']);
}
if ($attributes_data)
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level] . '_attr'] = $attributes_data;
}
}
$repeated_tag_index[$tag . '_' . $level]++; //0 and 1 index is already taken
}
}
}
elseif ($type == 'close')
{
$current = & $parent[$level -1];
}
}
return ($xml_array);
}
/**
* FUnction used to display widget
*/
function widget($params)
{
$name = $params['name'];
$content = $params['content'];
return
'<div class="widget-box">
<div class="widget-head">
'.$name.'
</div>
<div class="widget-cont">
'.$content.'
</div>
</div>';
}
?>

View file

@ -1,5 +1,50 @@
//include('popup_image.js');
var page = baseurl+'/actions/admin.php';
function ShowHint(text){
return fixedtooltip('<table bgcolor="#f1f1f1" width="400px" class="des_table"><tr><td>'+text+'</td></tr></table>', this, event, '0px');
}
function add_note(noteId)
{
var note = $(noteId).val();
if(!note)
alert("Please enter something");
else
{
$.post(page,
{
mode : 'add_note',
note : note,
},
function(data)
{
$("#no_note").css("display","none");
var the_note = '<div class="item" id="note-'+data.id+'"><img src="'+imageurl+'/cross.png" class="delete_note" onclick="delete_note(\''+data.id+'\');" />'+data.note+'</div>';
$("#the_notes").append(the_note);
$(noteId).val('');
},'json');
}
}
function delete_note(id)
{
$.post(page,
{
mode : 'delete_note',
id : id,
},
function(data)
{
$("#note-"+id).slideUp();
},'text');
}
function toggle_search(id)
{
$('#'+id).slideToggle();
if($.cookie("show_"+id+"_search")=="show")
$.cookie("show_"+id+"_search","hide")
else
$.cookie("show_"+id+"_search","show")
}

View file

@ -6,14 +6,8 @@
*
* ClipBucket License (CBLA)
*
*/$(document).ready(function(){
$("#tabbed_div > div").hide();
display_tab('#first_tab','div_1');
*/
});
var current_tab = '';
var current_div = '';
function display_tab(Li,divid)
@ -26,6 +20,9 @@ function display_tab(Li,divid)
$(Li).attr("class","selected");
$('#'+divid).show();
window.location.hash = 'current_'+divid.substr(4,3);
$("#main_form").attr("action",window.location.hash);
current_tab = Li;
current_div = divid;
}

View file

@ -0,0 +1,7 @@
.tipsy { padding: 5px; font-size: 10px; opacity: 0.8; filter: alpha(opacity=80); background-repeat: no-repeat; background-image: url(tipsy.gif); }
.tipsy-inner { padding: 5px 8px 4px 8px; background-color: black; color: white; max-width: 200px; text-align: center; }
.tipsy-inner { -moz-border-radius:3px; -webkit-border-radius:3px; }
.tipsy-north { background-position: top center; }
.tipsy-south { background-position: bottom center; }
.tipsy-east { background-position: right center; }
.tipsy-west { background-position: left center; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 B

View file

@ -0,0 +1,83 @@
(function($) {
$.fn.tipsy = function(opts) {
opts = $.extend({fade: false, gravity: 'n', title: 'title', fallback: '', html: false}, opts || {});
var tip = null;
this.hover(function() {
$.data(this, 'cancel.tipsy', true);
var tip = $.data(this, 'active.tipsy');
if (!tip) {
tip = $('<div class="tipsy"><div class="tipsy-inner"/></div>');
tip.css({position: 'absolute', zIndex: 100000});
$.data(this, 'active.tipsy', tip);
}
if ($(this).attr('title') || typeof($(this).attr('original-title')) != 'string') {
$(this).attr('original-title', $(this).attr('title') || '').removeAttr('title');
}
var title;
if (typeof opts.title == 'string') {
title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title);
} else if (typeof opts.title == 'function') {
title = opts.title.call(this);
}
tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback);
var pos = $.extend({}, $(this).offset(), {width: this.offsetWidth, height: this.offsetHeight});
tip.get(0).className = 'tipsy'; // reset classname in case of dynamic gravity
tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).appendTo(document.body);
var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight;
var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity;
switch (gravity.charAt(0)) {
case 'n':
tip.css({top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-north');
break;
case 's':
tip.css({top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-south');
break;
case 'e':
tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}).addClass('tipsy-east');
break;
case 'w':
tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}).addClass('tipsy-west');
break;
}
if (opts.fade) {
tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: 0.8});
} else {
tip.css({visibility: 'visible'});
}
}, function() {
$.data(this, 'cancel.tipsy', false);
var self = this;
setTimeout(function() {
if ($.data(this, 'cancel.tipsy')) return;
var tip = $.data(self, 'active.tipsy');
if (opts.fade) {
tip.stop().fadeOut(function() { $(this).remove(); });
} else {
tip.remove();
}
}, 100);
});
};
$.fn.tipsy.autoNS = function() {
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
};
$.fn.tipsy.autoWE = function() {
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
};
})(jQuery);

View file

@ -1,10 +1,10 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
****************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
****************************************************************
*/
define("THIS_PAGE",'manage_videos');
@ -21,6 +21,7 @@ $mode = $_GET['mode'];
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,VLISTPP);
switch($mode)
{
case 'manage':
@ -44,48 +45,53 @@ switch($mode)
$gid = mysql_clean($_GET['gid']);
$gdetails = $cbgroup->get_group_details($gid);
//Activating Member Members
if(isset($_POST['activate_pending']))
if(userid()!=$gdetails['userid'] && !has_access('admin_access',true))
e("You cannot moderate this group");
else
{
$total = count($_POST['users']);
for($i=0;$i<$total;$i++)
//Activating Member Members
if(isset($_POST['activate_pending']))
{
if($_POST['users'][$i]!='')
$cbgroup->member_actions($gid,$_POST['users'][$i],'activate');
$total = count($_POST['users']);
for($i=0;$i<$total;$i++)
{
if($_POST['users'][$i]!='')
$cbgroup->member_actions($gid,$_POST['users'][$i],'activate');
}
}
}
//Deactivation Members
if(isset($_POST['disapprove_members']))
{
$total = count($_POST['users']);
for($i=0;$i<$total;$i++)
//Deactivation Members
if(isset($_POST['disapprove_members']))
{
if($_POST['users'][$i]!='')
$cbgroup->member_actions($gid,$_POST['users'][$i],'deactivate');
}
}
//Deleting Members
if(isset($_POST['delete_members']))
{
$total = count($_POST['users']);
for($i=0;$i<$total;$i++)
{
if($_POST['users'][$i]!='')
$cbgroup->member_actions($gid,$_POST['users'][$i],'delete');
}
}
if($gdetails)
{
assign("group",$gdetails);
//Getting Group Members (Active Only)
$gp_mems = $cbgroup->get_members($gdetails['group_id'],"yes");
assign('gp_mems',$gp_mems);
$total = count($_POST['users']);
for($i=0;$i<$total;$i++)
{
if($_POST['users'][$i]!='')
$cbgroup->member_actions($gid,$_POST['users'][$i],'deactivate');
}
}else
e("Group does not exist");
}
//Deleting Members
if(isset($_POST['delete_members']))
{
$total = count($_POST['users']);
for($i=0;$i<$total;$i++)
{
if($_POST['users'][$i]!='')
$cbgroup->member_actions($gid,$_POST['users'][$i],'delete');
}
}
if($gdetails)
{
assign("group",$gdetails);
//Getting Group Members (Active Only)
$gp_mems = $cbgroup->get_members($gdetails['group_id'],"yes");
assign('gp_mems',$gp_mems);
}else
e("Group does not exist");
}
}
break;
case 'manage_videos':
@ -94,50 +100,54 @@ switch($mode)
$gid = mysql_clean($_GET['gid']);
$gdetails = $cbgroup->get_group_details($gid);
//Activating Member Members
if(isset($_POST['activate_videos']))
if(userid()!=$gdetails['userid'] && !has_access('admin_access',true))
e("You cannot moderate this group");
else
{
$total = count($_POST['check_vid']);
for($i=0;$i<$total;$i++)
//Activating Member Members
if(isset($_POST['activate_videos']))
{
if($_POST['check_vid'][$i]!='')
$cbgroup->video_actions($gid,$_POST['check_vid'][$i],'activate');
$total = count($_POST['check_vid']);
for($i=0;$i<$total;$i++)
{
if($_POST['check_vid'][$i]!='')
$cbgroup->video_actions($gid,$_POST['check_vid'][$i],'activate');
}
}
}
//Deactivation Members
if(isset($_POST['disapprove_videos']))
{
$total = count($_POST['check_vid']);
for($i=0;$i<$total;$i++)
//Deactivation Members
if(isset($_POST['disapprove_videos']))
{
if($_POST['check_vid'][$i]!='')
$cbgroup->video_actions($gid,$_POST['check_vid'][$i],'deactivate');
$total = count($_POST['check_vid']);
for($i=0;$i<$total;$i++)
{
if($_POST['check_vid'][$i]!='')
$cbgroup->video_actions($gid,$_POST['check_vid'][$i],'deactivate');
}
}
}
//Deleting Members
if(isset($_POST['delete_videos']))
{
$total = count($_POST['check_vid']);
for($i=0;$i<$total;$i++)
//Deleting Members
if(isset($_POST['delete_videos']))
{
if($_POST['check_vid'][$i]!='')
$cbgroup->video_actions($gid,$_POST['check_vid'][$i],'delete');
$total = count($_POST['check_vid']);
for($i=0;$i<$total;$i++)
{
if($_POST['check_vid'][$i]!='')
$cbgroup->video_actions($gid,$_POST['check_vid'][$i],'delete');
}
}
if($gdetails)
{
assign("group",$gdetails);
//Getting Group Videos (Active Only)
$grp_vids = $cbgroup->get_group_videos($gid,"yes");
assign('grp_vids',$grp_vids);
}else
e("Group does not exist");
}
if($gdetails)
{
assign("group",$gdetails);
//Getting Group Videos (Active Only)
$grp_vids = $cbgroup->get_group_videos($gid,"yes");
assign('grp_vids',$grp_vids);
}else
e("Group does not exist");
}
break;

View file

@ -24,9 +24,9 @@
<div class="search_footer clearfix">
<div class="foot_s_con">
<div class="advance" title="Advanced Search"></div>
<form action="" method="get" name="advance_search">
<input type="text" name="query" id="query" />
<input type="submit" value="Search" />
<form name="search-form" method="get" action="{link name='search_result'}">
<input type="text" name="query" value="{'query'|get_form_val:true}" />
<input type="submit" value="Search" name="cbsearch" />
</form>
</div> <!--FOOT_S_CON END-->
</div> <!--SEARCH_FOOTER END-->

View file

@ -4,7 +4,7 @@
<div class="quick_search">
<form name="search-form" method="get" action="">
<span class='title'>ClipBucket Search &#8211;</span>
<input type="text" name="keywords" value="{'query'|get_form_val:true}" id="keywords" />
<input type="text" name="query" value="{'query'|get_form_val:true}" id="query" />
type
<select name="type">
{foreach from=$Cbucket->search_types item=t key=stypes}

29
upload/view_page.php Normal file
View file

@ -0,0 +1,29 @@
<?php
/*
******************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
*******************************************************************
*/
define("THIS_PAGE",'view_page');
define("PARENT_PAGE",'home');
require 'includes/config.inc.php';
$pages->page_redir();
$pid = $_GET['pid'];
$page = $cbpage->get_page($pid);
if($page)
{
assign('page',$page);
subtitle($page['page_title']);
}else{
e("Page does not exist");
$Cbucket->show_page = false;
}
//Displaying The Template
template_files('view_page.html');
display_it();
?>