224 lines
No EOL
5.6 KiB
HTML
224 lines
No EOL
5.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<!-- ClipBucket v2 -->
|
|
<meta name="copyright" content="ClipBucket - PHPBucket ClipBucket 2007 - {$smarty.now|date_format:"%Y"}" />
|
|
<meta name="author" content="Arslan Hassan - http://clip-bucket.com/arslan-hassan" />
|
|
<link rel="shortcut icon" href="{$baseurl}/favicon.ico">
|
|
<link rel="icon" type="image/ico" href="{$baseurl}/favicon.ico" />
|
|
|
|
<!-- RSS FEEDS -->
|
|
{rss_feeds link_tag=true}
|
|
|
|
<meta name="keywords" content="{$Cbucket->configs.keywords}" />
|
|
<meta name="description" content="{$Cbucket->configs.description}" />
|
|
<meta name="distribution" content="global" />
|
|
|
|
|
|
<title>{cbtitle}</title>
|
|
|
|
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- Setting Template Variables -->
|
|
{php}
|
|
if(!$_COOKIE['current_style'])
|
|
$_COOKIE['current_style'] = 'grid_view';
|
|
{/php}
|
|
<!-- Setting Template Variables -->
|
|
|
|
|
|
<script type="text/javascript">
|
|
var baseurl = '{$baseurl}';
|
|
var imageurl = '{$imageurl}';
|
|
{if $upload_form_name !=''}
|
|
var upload_form_name = '{$upload_form_name}';
|
|
function submit_upload_form()
|
|
{literal}
|
|
{
|
|
{/literal}
|
|
document.{$upload_form_name}.submit();
|
|
{literal}
|
|
}
|
|
{/literal}
|
|
{/if}
|
|
</script>
|
|
|
|
<!-- Including JS Files-->
|
|
{foreach from=$Cbucket->JSArray item=type}
|
|
{foreach from=$type item=scope key=file}
|
|
{include_js type=$scope file=$file}
|
|
{/foreach}
|
|
{/foreach}
|
|
<!-- Including JS Files-->
|
|
|
|
|
|
<!-- Including Headers -->
|
|
{foreach from=$Cbucket->header_files key=file item=type}
|
|
{if $curActive == $type || $type=='global' }
|
|
{include file="$file"}
|
|
{/if}
|
|
{/foreach}
|
|
<!-- Ending Headers -->
|
|
|
|
|
|
|
|
{if $smarty.const.THIS_PAGE == 'upload' && $step =="2"}
|
|
|
|
<script src="{$js}/swfupload/swfupload.js" type="text/javascript"></script>
|
|
<script src="{$js}/swfupload/plugins/all_in_one.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
var swfu;
|
|
var file_name = '{$file_name}';
|
|
{literal}
|
|
window.onload = function() {
|
|
var settings = {
|
|
{/literal}
|
|
flash_url : "{$js}/swfupload/swfupload.swf",
|
|
upload_url: "{$baseurl}/actions/file_uploader.php",
|
|
button_image_url: "{$imageurl}/cb_button.png",
|
|
post_params:
|
|
{literal}
|
|
{
|
|
{/literal}
|
|
"file_name" : file_name,
|
|
{literal}
|
|
}
|
|
{/literal},
|
|
|
|
|
|
file_size_limit : "{$Cbucket->configs.max_upload_size} MB",
|
|
file_types : "{$Cbucket->list_extensions()}",
|
|
file_types_description : "Video Files",
|
|
file_upload_limit : 1,
|
|
file_queue_limit : 0,
|
|
|
|
{literal}
|
|
custom_settings : {
|
|
progressTarget : "fsUploadProgress",
|
|
cancelButtonId : "btnCancel"
|
|
},
|
|
debug: false,
|
|
|
|
// Button settings
|
|
|
|
button_placeholder_id: "spanButtonPlaceHolder",
|
|
button_width: 77,
|
|
button_height: 22,
|
|
button_text_style: ".cb_button_font { font-weight:bold; font-family:Arial, Helvetica, sans-serif;font-size:12;color:#333}",
|
|
button_text_left_padding: 18,
|
|
button_text_top_padding: 2,
|
|
|
|
button_text: '<span class="cb_button_font">Upload</span>',
|
|
|
|
// The event handler functions are defined in handlers.js
|
|
file_queued_handler : fileQueued,
|
|
file_queue_error_handler : fileQueueError,
|
|
file_dialog_complete_handler : fileDialogComplete,
|
|
upload_start_handler : uploadStart,
|
|
upload_progress_handler : uploadProgress,
|
|
upload_error_handler : uploadError,
|
|
upload_success_handler : uploadSuccess,
|
|
upload_complete_handler : uploadComplete,
|
|
queue_complete_handler : queueComplete // Queue plugin event
|
|
|
|
|
|
}
|
|
|
|
swfu = new SWFUpload(settings);
|
|
|
|
load_quicklist_box();
|
|
ini_cookies();
|
|
};
|
|
{/literal}
|
|
</script>
|
|
|
|
{else}
|
|
<script type="text/javascript">
|
|
{literal}
|
|
window.onload = function() {
|
|
load_quicklist_box();
|
|
ini_cookies();
|
|
}
|
|
{/literal}
|
|
</script>
|
|
{/if}
|
|
|
|
<!-- Including Plugin Headers -->
|
|
{foreach key=file item=pages from=$Cbucket->header_files}
|
|
{if is_includeable($pages)}
|
|
{include file=$file}
|
|
{/if}
|
|
{/foreach}
|
|
<!-- Including Plugin Headers -->
|
|
|
|
{if $smarty.const.THIS_PAGE =='private_message' && $smarty.get.mid}
|
|
<script type="text/javascript">
|
|
var mid = {$smarty.get.mid};
|
|
{literal}
|
|
window.onload = function() {
|
|
$('#messages_container').scrollTo( '#message-'+mid, 800 );
|
|
}
|
|
{/literal}
|
|
</script>
|
|
{/if}
|
|
|
|
{literal}
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('.user_login').hide();
|
|
|
|
$('#user_login').toggle(
|
|
function() {
|
|
$('.user_login').slideDown('normal');
|
|
},
|
|
function() {
|
|
$('.user_login').slideUp('normal');
|
|
}
|
|
|
|
);
|
|
|
|
$('#grid').click(
|
|
function() {
|
|
$('.grid_view').removeClass('list_view');
|
|
$.cookie("current_style","grid_view")
|
|
$('.vid_sp').hide();
|
|
}
|
|
);
|
|
|
|
$('#list').click(
|
|
function() {
|
|
$('.grid_view').addClass('list_view');
|
|
$.cookie("current_style","list_view")
|
|
$('.vid_sp').show();
|
|
}
|
|
);
|
|
|
|
$('.tabs li').click(
|
|
function() {
|
|
$('.tabs li').removeClass('selected')
|
|
$(this).addClass('selected');
|
|
}
|
|
);
|
|
$('#lang_selector').click(function(){
|
|
//do redirection
|
|
});
|
|
|
|
$('#lang_selector').change(function(){
|
|
var optionSelectedValue = $('#lang_selector option:selected').val();
|
|
if(optionSelectedValue)
|
|
window.location = "?set_site_lang="+optionSelectedValue;
|
|
});
|
|
|
|
get_video('recently_added','#index_vid_container');
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
{/literal}
|
|
|
|
</head>
|
|
|
|
<!-- Global Header Ends Here --> |