2009-08-25 12:16:42 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-12-29 18:15:35 +00:00
|
|
|
***************************************************************
|
|
|
|
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
|
|
|
| @ Author : ArslanHassan
|
|
|
|
| @ Software : ClipBucket , © PHPBucket.com
|
|
|
|
***************************************************************
|
2009-08-25 12:16:42 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
require_once '../includes/admin_config.php';
|
2010-01-20 07:03:11 +00:00
|
|
|
$userquery->admin_login_check();
|
2010-01-15 15:38:47 +00:00
|
|
|
$userquery->login_check('web_config_access');
|
|
|
|
|
2009-08-25 12:16:42 +00:00
|
|
|
$pages->page_redir();
|
|
|
|
|
|
|
|
if(@$_GET['msg']){
|
|
|
|
$msg = mysql_clean($_GET['msg']);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($_POST['update'])){
|
|
|
|
$configs = $Cbucket->configs;
|
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
$rows = array(
|
2010-01-19 08:05:09 +00:00
|
|
|
'allowed_types',
|
|
|
|
'allow_language_change',
|
2010-03-16 17:06:30 +00:00
|
|
|
'allow_registration',
|
2010-01-19 08:05:09 +00:00
|
|
|
'allow_template_change',
|
|
|
|
'allow_upload',
|
2010-02-08 18:04:07 +00:00
|
|
|
'anonymous_id',
|
2010-03-01 14:33:21 +00:00
|
|
|
'approve_video_notification',
|
2010-01-19 08:05:09 +00:00
|
|
|
'audio_codec',
|
|
|
|
'activation',
|
|
|
|
|
2010-03-01 14:33:21 +00:00
|
|
|
'background_color',
|
|
|
|
'background_upload',
|
|
|
|
'background_url',
|
2010-01-19 08:05:09 +00:00
|
|
|
'big_thumb_width',
|
|
|
|
'big_thumb_height',
|
|
|
|
|
|
|
|
'closed' ,
|
|
|
|
'closed_msg',
|
2010-02-28 12:59:03 +00:00
|
|
|
'channel_comments',
|
2010-03-16 16:47:05 +00:00
|
|
|
'anonym_comments',
|
2010-01-19 08:05:09 +00:00
|
|
|
'channels_list_per_page',
|
|
|
|
'channels_list_per_tab',
|
|
|
|
'captcha_type',
|
|
|
|
'con_modules_type',
|
|
|
|
'comment_rating' ,
|
|
|
|
|
2010-02-12 16:17:17 +00:00
|
|
|
'date_format',
|
2009-12-29 18:15:35 +00:00
|
|
|
'description',
|
2010-01-19 08:05:09 +00:00
|
|
|
'debug_level',
|
2010-02-12 16:17:17 +00:00
|
|
|
'default_country_iso2',
|
|
|
|
'default_time_zone',
|
2010-01-19 08:05:09 +00:00
|
|
|
'disallowed_usernames',
|
|
|
|
|
|
|
|
'embedUpload',
|
|
|
|
'email_verification',
|
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'ffmpegpath' ,
|
2010-01-05 09:47:10 +00:00
|
|
|
'flvtool2path',
|
2010-01-19 08:05:09 +00:00
|
|
|
'ffmpeg_type',
|
|
|
|
|
2010-03-01 14:33:21 +00:00
|
|
|
'gravatars',
|
2010-03-03 08:51:43 +00:00
|
|
|
'grp_categories',
|
2010-03-03 12:54:56 +00:00
|
|
|
'groups_list_per_page',
|
|
|
|
'grps_items_search_page',
|
2010-03-03 13:24:54 +00:00
|
|
|
'grp_thumb_height',
|
|
|
|
'grp_thumb_width',
|
|
|
|
'grp_max_title',
|
|
|
|
'grp_max_desc',
|
|
|
|
|
2010-03-03 08:51:43 +00:00
|
|
|
'hq_output',
|
2010-03-01 14:33:21 +00:00
|
|
|
|
2010-01-19 08:05:09 +00:00
|
|
|
'keywords' ,
|
|
|
|
'keep_original',
|
2010-03-03 08:51:43 +00:00
|
|
|
'keep_mp4_as_is',
|
2010-01-19 08:05:09 +00:00
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'r_height',
|
|
|
|
'r_width',
|
2010-01-19 08:05:09 +00:00
|
|
|
|
2010-03-01 14:33:21 +00:00
|
|
|
'max_bg_width',
|
2010-03-16 16:47:05 +00:00
|
|
|
'max_bg_size',
|
2010-03-01 14:33:21 +00:00
|
|
|
'max_profile_pic_height',
|
|
|
|
'max_profile_pic_size',
|
|
|
|
'max_profile_pic_width',
|
2010-01-19 08:05:09 +00:00
|
|
|
'max_video_title',
|
|
|
|
'max_video_desc',
|
|
|
|
'max_video_tags',
|
|
|
|
'min_video_title',
|
|
|
|
'min_video_tags',
|
|
|
|
'min_video_desc',
|
|
|
|
'mp4boxpath',
|
2009-12-29 18:15:35 +00:00
|
|
|
'mplayerpath',
|
2010-01-19 08:05:09 +00:00
|
|
|
'min_age_reg',
|
|
|
|
'max_comment_chr',
|
|
|
|
'max_upload_size',
|
|
|
|
|
|
|
|
'num_thumbs',
|
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'php_path',
|
2010-03-01 14:33:21 +00:00
|
|
|
'picture_url',
|
|
|
|
'picture_upload',
|
2010-01-19 08:05:09 +00:00
|
|
|
|
|
|
|
'resize',
|
|
|
|
'remoteUpload',
|
2009-12-29 18:15:35 +00:00
|
|
|
'recently_viewed_limit',
|
2010-01-19 08:05:09 +00:00
|
|
|
|
2010-03-01 14:33:21 +00:00
|
|
|
'send_comment_notification',
|
2010-01-19 08:05:09 +00:00
|
|
|
'site_title' ,
|
|
|
|
'sys_os' ,
|
2009-12-29 18:15:35 +00:00
|
|
|
'sbrate' ,
|
2010-01-19 08:05:09 +00:00
|
|
|
'srate',
|
|
|
|
'site_slogan',
|
|
|
|
'seo',
|
|
|
|
'search_list_per_page',
|
|
|
|
'support_email',
|
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'thumb_width',
|
|
|
|
'thumb_height',
|
2010-01-19 08:05:09 +00:00
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'user_comment_own',
|
|
|
|
'user_rate_opt1' ,
|
2010-01-19 08:05:09 +00:00
|
|
|
'users_items_subscriptions',
|
|
|
|
'users_items_subscibers',
|
|
|
|
'users_items_contacts_channel',
|
|
|
|
'users_items_search_page',
|
|
|
|
'users_items_group_page',
|
2009-12-29 18:15:35 +00:00
|
|
|
'user_max_chr',
|
2010-01-19 08:05:09 +00:00
|
|
|
|
2010-03-03 08:51:43 +00:00
|
|
|
'vid_categories',
|
2009-12-29 18:15:35 +00:00
|
|
|
'videos_items_grp_page',
|
|
|
|
'videos_items_hme_page',
|
|
|
|
'videos_items_columns',
|
|
|
|
'videos_items_ufav_page',
|
|
|
|
'videos_items_uvid_page',
|
|
|
|
'videos_items_search_page',
|
|
|
|
'videos_item_channel_page',
|
2010-01-19 08:05:09 +00:00
|
|
|
'videos_list_per_page',
|
|
|
|
'videos_list_per_tab',
|
|
|
|
'video_download' ,
|
|
|
|
'video_embed',
|
|
|
|
'video_comments',
|
|
|
|
'video_rating',
|
2010-03-16 16:47:05 +00:00
|
|
|
'video_comments3',
|
2010-01-05 09:47:10 +00:00
|
|
|
'video_categories',
|
|
|
|
'video_codec',
|
|
|
|
'vrate',
|
2010-01-19 08:05:09 +00:00
|
|
|
'vbrate',
|
|
|
|
'video_require_login',
|
|
|
|
|
|
|
|
'website_email',
|
|
|
|
'welcome_email',
|
|
|
|
|
2009-08-25 12:16:42 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
//Numeric Array
|
2009-12-29 18:15:35 +00:00
|
|
|
$num_array = array(
|
2010-02-08 18:04:07 +00:00
|
|
|
'anonymous_id',
|
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'channels_list_per_page',
|
|
|
|
'channels_list_per_tab',
|
2010-02-08 18:04:07 +00:00
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'max_upload_size',
|
2010-02-08 18:04:07 +00:00
|
|
|
'max_video_title',
|
|
|
|
'max_video_desc',
|
|
|
|
'max_video_tags',
|
|
|
|
'min_video_title',
|
|
|
|
'min_video_tags',
|
|
|
|
'min_video_desc',
|
|
|
|
|
|
|
|
'recently_viewed_limit',
|
|
|
|
|
|
|
|
'search_list_per_page',
|
|
|
|
|
|
|
|
'users_items_subscriptions',
|
|
|
|
'users_items_subscibers',
|
|
|
|
'users_items_contacts_channel',
|
|
|
|
'users_items_search_page',
|
|
|
|
'users_items_group_page',
|
|
|
|
|
2009-12-29 18:15:35 +00:00
|
|
|
'videos_items_grp_page',
|
|
|
|
'videos_items_hme_page',
|
|
|
|
'videos_items_columns',
|
|
|
|
'videos_items_ufav_page',
|
|
|
|
'videos_items_uvid_page',
|
|
|
|
'videos_items_search_page',
|
|
|
|
'videos_item_channel_page',
|
2010-02-08 18:04:07 +00:00
|
|
|
'videos_list_per_page',
|
|
|
|
'videos_list_per_tab',
|
2010-01-05 09:47:10 +00:00
|
|
|
'video_categories',
|
2009-12-29 18:15:35 +00:00
|
|
|
);
|
2009-08-25 12:16:42 +00:00
|
|
|
foreach($rows as $field)
|
|
|
|
{
|
|
|
|
$value = mysql_clean($_POST[$field]);
|
|
|
|
if(in_array($field,$num_array))
|
|
|
|
{
|
|
|
|
if($value <= 0 || !is_numeric($value))
|
|
|
|
$value = 1;
|
|
|
|
}
|
|
|
|
$myquery->Set_Website_Details($field,$value);
|
|
|
|
}
|
|
|
|
e("Website Settings Have Been Updated",m);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$row = $myquery->Get_Website_Details();
|
|
|
|
Assign('row',$row);
|
2010-01-13 09:53:21 +00:00
|
|
|
subtitle("Website Configurations");
|
2009-08-25 12:16:42 +00:00
|
|
|
template_files('main.html');
|
|
|
|
display_it();
|
|
|
|
?>
|