Changeset 1823311
- Timestamp:
- 02/16/2018 10:44:57 AM (8 years ago)
- Location:
- smiling-video/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
smiling_video.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smiling-video/trunk/readme.txt
r1822779 r1823311 5 5 Requires PHP: 5.6 6 6 Tested up to: 4.9 7 Stable tag: 1.1. 67 Stable tag: 1.1.7 8 8 License: GPL v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 99 99 == Changelog == 100 100 101 = 1.1.7 = 102 * plugin permission fix 103 101 104 = 1.1.5 = 102 105 * restored video-js lib -
smiling-video/trunk/smiling_video.php
r1822779 r1823311 8 8 Description: Smiling.Video offers a video player and gallery with a wide catalogue of premium videos proposed by leading Content Providers of all sectors: news, sport, movie and tv series, cinema, etc 9 9 Videos are continuously updated in many languages: italian, english, spanish, french 10 Version: 1.1. 610 Version: 1.1.7 11 11 Author: Smiling.video 12 12 Author URI: http://smiling.video/ … … 55 55 // See if the user has posted us some information 56 56 // If they did, this hidden field will be set to 'Y' 57 if ( ! empty( $_POST ) && check_admin_referer( 'smiling_video_usersettings', 'smiling_video_usersettings_nonce' )) {58 // process formdata59 if ( isset($_POST['smiling_video_hidden']) && sanitize_text_field($_POST[ 'smiling_video_hidden' ]) == 'Y') {57 if( ! empty( $_POST ) && isset($_POST[ 'smiling_video_hidden' ]) && sanitize_text_field($_POST[ 'smiling_video_hidden' ]) == 'Y' ) { 58 //if nonce is okay we can process user data 59 if ( check_admin_referer( 'smiling_video_usersettings', 'smiling_video_usersettings_nonce' ) ) { 60 60 // Read their posted value 61 61 $opt_user = sanitize_text_field($_POST[ 'smiling_video_user' ]); … … 114 114 if ( current_user_can( 'publish_posts' ) ) { 115 115 116 if ( ! empty( $_POST ) && check_admin_referer( 'smiling_video_usersettings', 'smiling_video_usersettings_nonce' ) ) { 117 if( isset($_POST[ 'smiling_video_hidden' ]) && sanitize_text_field($_POST[ 'smiling_video_hidden' ]) == 'Y' ) { 116 // See if the user has posted us some information on smiling_video form 117 // If they did, this hidden field will be set to 'Y' 118 if( ! empty( $_POST ) && isset($_POST[ 'smiling_video_hidden' ]) && sanitize_text_field($_POST[ 'smiling_video_hidden' ]) == 'Y' ) { 119 //if nonce is okay we can process user data 120 if ( check_admin_referer( 'smiling_video_usersettings', 'smiling_video_usersettings_nonce' ) ) { 118 121 $user = sanitize_text_field($_POST[ 'smiling_video_user' ]); 119 122 $pass = sanitize_text_field($_POST[ 'smiling_video_password' ]); … … 145 148 } 146 149 function smiling_video_add_css() { 147 wp_register_style( 'smiling_video_style', plugins_url('css/smiling_video.css?smver=1.1. 6', __FILE__));148 wp_register_style( 'smiling_video_csscore', plugins_url('css/video-js-5.19.2.css?smver=1.1. 6', __FILE__));150 wp_register_style( 'smiling_video_style', plugins_url('css/smiling_video.css?smver=1.1.7', __FILE__)); 151 wp_register_style( 'smiling_video_csscore', plugins_url('css/video-js-5.19.2.css?smver=1.1.7', __FILE__)); 149 152 wp_enqueue_style('smiling_video_style'); 150 153 wp_enqueue_style('smiling_video_csscore'); 151 154 } 152 155 function smiling_video_add_js() { 153 wp_register_script( 'smiling_video_script', plugins_url('js/smiling_video.js?smver=1.1. 6', __FILE__), array( 'jquery' ) );154 wp_register_script( 'smiling_video_script_4hls', plugins_url('js/video-js-5.19.2.js?smver=1.1. 6', __FILE__));156 wp_register_script( 'smiling_video_script', plugins_url('js/smiling_video.js?smver=1.1.7', __FILE__), array( 'jquery' ) ); 157 wp_register_script( 'smiling_video_script_4hls', plugins_url('js/video-js-5.19.2.js?smver=1.1.7', __FILE__)); 155 158 wp_register_script( 'smiling_video_script_hls_min', plugins_url('js/videojs-contrib-hls.min.js', __FILE__)); 156 159 wp_enqueue_script('smiling_video_script'); … … 536 539 537 540 function smiling_video_enqueue_style() { 538 wp_enqueue_style( 'smiling_video_csscore', plugins_url('css/video-js-5.19.2.css?smver=1.1. 6', __FILE__), false );539 wp_enqueue_style( 'smiling_video_cssima', plugins_url('css/videojs.ima.css?smver=1.1. 6', __FILE__), false );540 wp_enqueue_style( 'smiling_video_cssskin', plugins_url('css/skin-smiling-player-multicp-2.0.css?smver=1.1. 6', __FILE__), false );541 wp_enqueue_style( 'smiling_video_csscore', plugins_url('css/video-js-5.19.2.css?smver=1.1.7', __FILE__), false ); 542 wp_enqueue_style( 'smiling_video_cssima', plugins_url('css/videojs.ima.css?smver=1.1.7', __FILE__), false ); 543 wp_enqueue_style( 'smiling_video_cssskin', plugins_url('css/skin-smiling-player-multicp-2.0.css?smver=1.1.7', __FILE__), false ); 541 544 wp_enqueue_style( 'smiling_video_cssgoogleapisfont', plugins_url('css/Quicksand.css', __FILE__), false ); 542 545 } 543 546 544 547 function smiling_video_enqueue_script() { 545 wp_enqueue_script( 'smiling_video_jscommon', plugins_url('js/sm-common-func.js?smver=1.1. 6', __FILE__), false );548 wp_enqueue_script( 'smiling_video_jscommon', plugins_url('js/sm-common-func.js?smver=1.1.7', __FILE__), false ); 546 549 } 547 550
Note: See TracChangeset
for help on using the changeset viewer.