Skip to content

Commit

Permalink
Release 5.3
Browse files Browse the repository at this point in the history
Refactor and upgrade default player :
- Upgrade VideoJS to 7.8.1
- Massive cleanup
- Add new options : Thumbnails, controls bar logo, context menu disabling
- Add translations
- Refactor Player options admin
  • Loading branch information
MacWarrior committed May 5, 2020
1 parent 7819d13 commit 474978e
Show file tree
Hide file tree
Showing 47 changed files with 16,911 additions and 18,991 deletions.
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Product: ClipBucket - https://clipbucket.com
Version: 5.2.0 - STABLE
Last Updated: 01-11-2018
Version: 5.3.0 - STABLE
Last Updated: 2020-05-05
Copyright: ClipBucket
License: Attribution Assurance License
http://www.opensource.org/licenses/attribution.php
68 changes: 35 additions & 33 deletions upload/admin_area/manage_players.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<?php
/**
* CLipBucket v2 Player Manage
* Author : Arslan
*
* Licensed Under CBLA
* ClipBucket 2007-2009
*/

require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
Expand All @@ -15,56 +7,66 @@
/* Generating breadcrumb */
global $breadcrumb;
$breadcrumb[0] = array('title' => 'Templates And Players', 'url' => '');
if($_GET['mode'] == 'show_settings')
$breadcrumb[1] = array('title' => 'Player Settings', 'url' => '/admin_area/manage_players.php?mode=show_settings');
else
if($_GET['mode'] == 'show_settings'){
$breadcrumb[1] = array('title' => lang('player_settings'), 'url' => '/admin_area/manage_players.php?mode=show_settings');
} else {
$breadcrumb[1] = array('title' => 'Players Manager', 'url' => '/admin_area/manage_players.php');
}

//Set Mode
assign('mode',$_GET['mode']);

if(isset($_POST['update']))
{
$configs = $Cbucket->configs;

if(isset($_POST['update'])) {
$rows = array(
'autoplay_video',
'buffer_time',
'logo_placement',
'use_playlist',
'youtube_enabled',
'enlarge_button',
'embed_player_height',
'embed_player_width',
'autoplay_embed',
'pseudostreaming',
'pak_license',
'pakplayer_contextmsg',
'chromecast'
'chromecast',
'control_bar_logo',
'contextual_menu_disabled',
'control_bar_logo_url',
'player_logo_url',
'player_thumbnails'
);

//Checking for logo
if(isset($_FILES['logo_file']['name']))
{
if(isset($_FILES['logo_file']['name'])) {
$logo_file = $Upload->upload_website_logo($_FILES['logo_file']);
if($logo_file)
if($logo_file){
$myquery->Set_Website_Details('player_logo_file',$logo_file);
}
}

if($_POST['pak_license'] && !file_exists(BASEDIR.'/player/pak_player/pakplayer.unlimited.swf'))
$_POST['pak_license'] = "";
foreach($rows as $field) {
if($field == 'control_bar_logo_url' ){
if( is_null($_FILES[$field]) || empty($_FILES[$field]['tmp_name']) ){
continue;
}
if( file_exists(LOGOS_DIR.'/player-logo.png') ){
unlink(LOGOS_DIR.'/player-logo.png');
}
$_POST['control_bar_logo_url'] = LOGOS_URL.'/player-logo.png';
move_uploaded_file($_FILES[$field]['tmp_name'], LOGOS_DIR.'/player-logo.png');
}

foreach($rows as $field)
{
$value = mysql_clean($_POST[$field]);
$myquery->Set_Website_Details($field,$value);
}
e("Player Settings Have Been Updated",'m');

e(lang('player_settings_updated'),'m');
}

if($_GET['set'])
{
if(isset( $_POST['reset_control_bar_logo_url']) ){
if( file_exists(LOGOS_DIR.'/player-logo.png') ){
unlink(LOGOS_DIR.'/player-logo.png');
}
$myquery->Set_Website_Details('control_bar_logo_url','/images/icons/player-logo.png');
e(lang('player_logo_reset'),'m');
}

if($_GET['set']) {
$cbplayer->set_player($_GET);
}

Expand Down
4 changes: 2 additions & 2 deletions upload/admin_area/styles/cb_2014/layout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h5>Recent Comments</h5>
</div>

<div class="well" style="margin-top: 14px;border:1px solid rgba(128, 213, 255, 1);" >
<h3>5.2.0 Changelogs <small><i>(Non-official version)</i></small></h3>
<h3>5.3.0 Changelogs <small><i>(Non-official version)</i></small></h3>
<ul>
<li><b>PHP 7.3 compatibility</b></li>
<li><b>Refactor data storage<small>*</small></b></li>
Expand Down Expand Up @@ -224,7 +224,7 @@ <h3>5.2.0 Changelogs <small><i>(Non-official version)</i></small></h3>
<li><b>Easy installation scripts</b></li>
<i>Don't search anymore for Debian 9 & 10, Ubuntu 17.10 & 16.04, CentOS 7 installation, there's a script for that now</i>
<li><b>Update VideoJS Player</b></li>
<i>VideoJS Player has been updated to latest revision</i>
<i>VideoJS Player has been updated to 7.8.1</i>
<li><b>Fixs</b></li>
<i>Fix HTML/CSS/JS error/warnings/notices, many broken configurations, installation process, infinite loops, email tester, back office and front office pagination, many thumbs display, ...</i>
<li><b>Others</b></li>
Expand Down
Loading

1 comment on commit 474978e

@MacWarrior
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to apply SQL !
You might need to regenerate thumbs of your videos if you want to enable player thumbnails and have a correct timeline ! :)

Please sign in to comment.