Changeset 1718187
- Timestamp:
- 08/23/2017 02:08:45 PM (8 years ago)
- Location:
- vdocipher
- Files:
-
- 3 edited
- 4 copied
-
tags/1.15 (copied) (copied from vdocipher/trunk)
-
tags/1.15/include/options.php (copied) (copied from vdocipher/trunk/include/options.php) (3 diffs)
-
tags/1.15/readme.txt (copied) (copied from vdocipher/trunk/readme.txt) (2 diffs)
-
tags/1.15/vdocipher.php (copied) (copied from vdocipher/trunk/vdocipher.php) (4 diffs)
-
trunk/include/options.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vdocipher.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vdocipher/tags/1.15/include/options.php
r1713932 r1718187 43 43 <!-- Version Number --> 44 44 <?php 45 if ( empty(get_option('vdo_embed_version'))) {45 if ((get_option('vdo_embed_version')) == false) { 46 46 update_option('vdo_embed_version', '0.5'); 47 47 } … … 50 50 <th scope="row">Player Version</th> 51 51 <td> 52 <?php $vdo_embed_version_vars = array('0.5', '1.0.0', '1.1.0' ); ?>52 <?php $vdo_embed_version_vars = array('0.5', '1.0.0', '1.1.0', '1.1.3'); ?> 53 53 <select name="vdo_embed_version" id="vdo_embed_version"> 54 54 <?php … … 76 76 <!-- Player Theme Options --> 77 77 <?php 78 if ( empty(get_option('vdo_player_theme'))) {78 if ((get_option('vdo_player_theme')) == false) { 79 79 update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); 80 80 } -
vdocipher/tags/1.15/readme.txt
r1713932 r1718187 4 4 Requires at least: 3.5.1 5 5 Tested up to: 4.8.1 6 Stable tag: 1.1 46 Stable tag: 1.15 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 == Changelog == 51 52 = 1.15 = 53 * fixed bugs for older php versions 51 54 52 55 = 1.14 = -
vdocipher/tags/1.15/vdocipher.php
r1713932 r1718187 4 4 * Plugin URI: http://www.vdocipher.com 5 5 * Description: Secured video hosting for wordpress 6 * Version: 1.1 46 * Version: 1.15 7 7 * Author: VdoCipher 8 8 * Author URI: http://www.vdocipher.com … … 115 115 $version = $atts['version']; 116 116 } 117 if ( empty(get_option('vdo_embed_version'))) {117 if ((get_option('vdo_embed_version')) == false) { 118 118 update_option('vdo_embed_version', '0.5'); 119 119 } 120 if ( empty(get_option('vdo_player_theme'))) {120 if ((get_option('vdo_player_theme')) == false) { 121 121 update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); 122 122 } … … 126 126 // Old Embed Code 127 127 if($vdo_embed_version_str === '0.5') { 128 $output = "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>";129 $output .= "<script> (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){".130 " (v[o].d=v[o].d||[]).push(a);};";131 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; a.async=1; ".132 "a.src=e; m.parentNode.insertBefore(a,m);}";133 $output .= " })(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo'); vdo.add({ ";134 $output .= "o: '$OTP', ";135 if ($version == 32) {136 $output .= "version: '$version' ";137 }138 $output .= "}); </script>";139 }140 //New embed code141 else {142 $output .= "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>";143 $output .= "<script>(function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);};";144 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0];";145 $output .= "a.async=1; a.src=e; m.parentNode.insertBefore(a,m);}";146 $output .= "})(window,document,'script','https://d1z78r8i505acl.cloudfront.net/playerAssets/";147 $output .= "$vdo_embed_version_str";148 $output .= "/vdo.js','vdo');";149 $output .= "vdo.add({";150 $output .= "otp: '$OTP',";151 $output .= "playbackInfo: btoa(JSON.stringify({";152 $output .= "videoId: '$video'})),";153 $output .= "theme: '$vdo_player_theme',";154 $output .= "container: document.querySelector('#vdo$OTP'),});";155 $output .= "</script>";156 }157 return $output;128 $output = "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>"; 129 $output .= "<script> (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){". 130 " (v[o].d=v[o].d||[]).push(a);};"; 131 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; a.async=1; ". 132 "a.src=e; m.parentNode.insertBefore(a,m);}"; 133 $output .= " })(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo'); vdo.add({ "; 134 $output .= "o: '$OTP', "; 135 if ($version == 32) { 136 $output .= "version: '$version' "; 137 } 138 $output .= "}); </script>"; 139 } 140 //New embed code 141 else { 142 $output .= "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>"; 143 $output .= "<script>(function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);};"; 144 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0];"; 145 $output .= "a.async=1; a.src=e; m.parentNode.insertBefore(a,m);}"; 146 $output .= "})(window,document,'script','https://d1z78r8i505acl.cloudfront.net/playerAssets/"; 147 $output .= "$vdo_embed_version_str"; 148 $output .= "/vdo.js','vdo');"; 149 $output .= "vdo.add({"; 150 $output .= "otp: '$OTP',"; 151 $output .= "playbackInfo: btoa(JSON.stringify({"; 152 $output .= "videoId: '$video'})),"; 153 $output .= "theme: '$vdo_player_theme',"; 154 $output .= "container: document.querySelector('#vdo$OTP'),});"; 155 $output .= "</script>"; 156 } 157 return $output; 158 158 } 159 159 … … 228 228 function vdo_activate() 229 229 { 230 if ( !get_option('vdo_default_height')) {230 if ((get_option('vdo_default_height')) == false) { 231 231 update_option('vdo_default_height', '360'); 232 232 } 233 if ( !get_option('vdo_default_width')) {233 if ((get_option('vdo_default_width')) == false) { 234 234 update_option('vdo_default_width', '640'); 235 235 } 236 if (empty(get_option('vdo_embed_version'))) { 236 //https://stackoverflow.com/a/2173318/5022684 237 if ((get_option('vdo_embed_version')) == false) { 237 238 update_option('vdo_embed_version', '0.5'); 238 239 } 239 if ( empty(get_option('vdo_player_theme'))) {240 if ((get_option('vdo_player_theme')) == false) { 240 241 update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); 241 242 } -
vdocipher/trunk/include/options.php
r1713932 r1718187 43 43 <!-- Version Number --> 44 44 <?php 45 if ( empty(get_option('vdo_embed_version'))) {45 if ((get_option('vdo_embed_version')) == false) { 46 46 update_option('vdo_embed_version', '0.5'); 47 47 } … … 50 50 <th scope="row">Player Version</th> 51 51 <td> 52 <?php $vdo_embed_version_vars = array('0.5', '1.0.0', '1.1.0' ); ?>52 <?php $vdo_embed_version_vars = array('0.5', '1.0.0', '1.1.0', '1.1.3'); ?> 53 53 <select name="vdo_embed_version" id="vdo_embed_version"> 54 54 <?php … … 76 76 <!-- Player Theme Options --> 77 77 <?php 78 if ( empty(get_option('vdo_player_theme'))) {78 if ((get_option('vdo_player_theme')) == false) { 79 79 update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); 80 80 } -
vdocipher/trunk/readme.txt
r1713932 r1718187 4 4 Requires at least: 3.5.1 5 5 Tested up to: 4.8.1 6 Stable tag: 1.1 46 Stable tag: 1.15 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 == Changelog == 51 52 = 1.15 = 53 * fixed bugs for older php versions 51 54 52 55 = 1.14 = -
vdocipher/trunk/vdocipher.php
r1713932 r1718187 4 4 * Plugin URI: http://www.vdocipher.com 5 5 * Description: Secured video hosting for wordpress 6 * Version: 1.1 46 * Version: 1.15 7 7 * Author: VdoCipher 8 8 * Author URI: http://www.vdocipher.com … … 115 115 $version = $atts['version']; 116 116 } 117 if ( empty(get_option('vdo_embed_version'))) {117 if ((get_option('vdo_embed_version')) == false) { 118 118 update_option('vdo_embed_version', '0.5'); 119 119 } 120 if ( empty(get_option('vdo_player_theme'))) {120 if ((get_option('vdo_player_theme')) == false) { 121 121 update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); 122 122 } … … 126 126 // Old Embed Code 127 127 if($vdo_embed_version_str === '0.5') { 128 $output = "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>";129 $output .= "<script> (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){".130 " (v[o].d=v[o].d||[]).push(a);};";131 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; a.async=1; ".132 "a.src=e; m.parentNode.insertBefore(a,m);}";133 $output .= " })(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo'); vdo.add({ ";134 $output .= "o: '$OTP', ";135 if ($version == 32) {136 $output .= "version: '$version' ";137 }138 $output .= "}); </script>";139 }140 //New embed code141 else {142 $output .= "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>";143 $output .= "<script>(function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);};";144 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0];";145 $output .= "a.async=1; a.src=e; m.parentNode.insertBefore(a,m);}";146 $output .= "})(window,document,'script','https://d1z78r8i505acl.cloudfront.net/playerAssets/";147 $output .= "$vdo_embed_version_str";148 $output .= "/vdo.js','vdo');";149 $output .= "vdo.add({";150 $output .= "otp: '$OTP',";151 $output .= "playbackInfo: btoa(JSON.stringify({";152 $output .= "videoId: '$video'})),";153 $output .= "theme: '$vdo_player_theme',";154 $output .= "container: document.querySelector('#vdo$OTP'),});";155 $output .= "</script>";156 }157 return $output;128 $output = "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>"; 129 $output .= "<script> (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){". 130 " (v[o].d=v[o].d||[]).push(a);};"; 131 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; a.async=1; ". 132 "a.src=e; m.parentNode.insertBefore(a,m);}"; 133 $output .= " })(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo'); vdo.add({ "; 134 $output .= "o: '$OTP', "; 135 if ($version == 32) { 136 $output .= "version: '$version' "; 137 } 138 $output .= "}); </script>"; 139 } 140 //New embed code 141 else { 142 $output .= "<div id='vdo$OTP' style='height:$height;width:$width;max-width:100%' ></div>"; 143 $output .= "<script>(function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);};"; 144 $output .= "if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0];"; 145 $output .= "a.async=1; a.src=e; m.parentNode.insertBefore(a,m);}"; 146 $output .= "})(window,document,'script','https://d1z78r8i505acl.cloudfront.net/playerAssets/"; 147 $output .= "$vdo_embed_version_str"; 148 $output .= "/vdo.js','vdo');"; 149 $output .= "vdo.add({"; 150 $output .= "otp: '$OTP',"; 151 $output .= "playbackInfo: btoa(JSON.stringify({"; 152 $output .= "videoId: '$video'})),"; 153 $output .= "theme: '$vdo_player_theme',"; 154 $output .= "container: document.querySelector('#vdo$OTP'),});"; 155 $output .= "</script>"; 156 } 157 return $output; 158 158 } 159 159 … … 228 228 function vdo_activate() 229 229 { 230 if ( !get_option('vdo_default_height')) {230 if ((get_option('vdo_default_height')) == false) { 231 231 update_option('vdo_default_height', '360'); 232 232 } 233 if ( !get_option('vdo_default_width')) {233 if ((get_option('vdo_default_width')) == false) { 234 234 update_option('vdo_default_width', '640'); 235 235 } 236 if (empty(get_option('vdo_embed_version'))) { 236 //https://stackoverflow.com/a/2173318/5022684 237 if ((get_option('vdo_embed_version')) == false) { 237 238 update_option('vdo_embed_version', '0.5'); 238 239 } 239 if ( empty(get_option('vdo_player_theme'))) {240 if ((get_option('vdo_player_theme')) == false) { 240 241 update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); 241 242 }
Note: See TracChangeset
for help on using the changeset viewer.