Plugin Directory

Changeset 1718187


Ignore:
Timestamp:
08/23/2017 02:08:45 PM (8 years ago)
Author:
vibhavsinha
Message:

updating to version 1.15

Location:
vdocipher
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • vdocipher/tags/1.15/include/options.php

    r1713932 r1718187  
    4343        <!-- Version Number -->
    4444         <?php
    45             if (empty(get_option('vdo_embed_version'))) {
     45            if ((get_option('vdo_embed_version')) == false) {
    4646            update_option('vdo_embed_version', '0.5');
    4747            }
     
    5050        <th scope="row">Player Version</th>
    5151        <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'); ?>
    5353            <select name="vdo_embed_version" id="vdo_embed_version">
    5454                <?php
     
    7676        <!-- Player Theme Options -->
    7777        <?php
    78             if (empty(get_option('vdo_player_theme'))) {
     78            if ((get_option('vdo_player_theme')) == false) {
    7979            update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a');
    8080            }
  • vdocipher/tags/1.15/readme.txt

    r1713932 r1718187  
    44Requires at least: 3.5.1
    55Tested up to: 4.8.1
    6 Stable tag: 1.14
     6Stable tag: 1.15
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51
     52= 1.15 =
     53* fixed bugs for older php versions
    5154
    5255= 1.14 =
  • vdocipher/tags/1.15/vdocipher.php

    r1713932 r1718187  
    44 * Plugin URI: http://www.vdocipher.com
    55 * Description: Secured video hosting for wordpress
    6  * Version: 1.14
     6 * Version: 1.15
    77 * Author: VdoCipher
    88 * Author URI: http://www.vdocipher.com
     
    115115        $version = $atts['version'];
    116116    }
    117     if (empty(get_option('vdo_embed_version'))) {
     117    if ((get_option('vdo_embed_version')) == false) {
    118118        update_option('vdo_embed_version', '0.5');
    119119    }
    120     if (empty(get_option('vdo_player_theme'))) {
     120    if ((get_option('vdo_player_theme')) == false) {
    121121        update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a');
    122122    }
     
    126126    // Old Embed Code
    127127    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 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;
     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;
    158158}
    159159
     
    228228function vdo_activate()
    229229{
    230     if (!get_option('vdo_default_height')) {
     230    if ((get_option('vdo_default_height')) == false) {
    231231        update_option('vdo_default_height', '360');
    232232    }
    233     if (!get_option('vdo_default_width')) {
     233    if ((get_option('vdo_default_width')) == false) {
    234234        update_option('vdo_default_width', '640');
    235235    }
    236     if (empty(get_option('vdo_embed_version'))) {
     236    //https://stackoverflow.com/a/2173318/5022684
     237    if ((get_option('vdo_embed_version')) == false) {
    237238        update_option('vdo_embed_version', '0.5');
    238239    }
    239     if (empty(get_option('vdo_player_theme'))) {
     240    if ((get_option('vdo_player_theme')) == false) {
    240241        update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a');
    241242    }
  • vdocipher/trunk/include/options.php

    r1713932 r1718187  
    4343        <!-- Version Number -->
    4444         <?php
    45             if (empty(get_option('vdo_embed_version'))) {
     45            if ((get_option('vdo_embed_version')) == false) {
    4646            update_option('vdo_embed_version', '0.5');
    4747            }
     
    5050        <th scope="row">Player Version</th>
    5151        <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'); ?>
    5353            <select name="vdo_embed_version" id="vdo_embed_version">
    5454                <?php
     
    7676        <!-- Player Theme Options -->
    7777        <?php
    78             if (empty(get_option('vdo_player_theme'))) {
     78            if ((get_option('vdo_player_theme')) == false) {
    7979            update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a');
    8080            }
  • vdocipher/trunk/readme.txt

    r1713932 r1718187  
    44Requires at least: 3.5.1
    55Tested up to: 4.8.1
    6 Stable tag: 1.14
     6Stable tag: 1.15
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51
     52= 1.15 =
     53* fixed bugs for older php versions
    5154
    5255= 1.14 =
  • vdocipher/trunk/vdocipher.php

    r1713932 r1718187  
    44 * Plugin URI: http://www.vdocipher.com
    55 * Description: Secured video hosting for wordpress
    6  * Version: 1.14
     6 * Version: 1.15
    77 * Author: VdoCipher
    88 * Author URI: http://www.vdocipher.com
     
    115115        $version = $atts['version'];
    116116    }
    117     if (empty(get_option('vdo_embed_version'))) {
     117    if ((get_option('vdo_embed_version')) == false) {
    118118        update_option('vdo_embed_version', '0.5');
    119119    }
    120     if (empty(get_option('vdo_player_theme'))) {
     120    if ((get_option('vdo_player_theme')) == false) {
    121121        update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a');
    122122    }
     
    126126    // Old Embed Code
    127127    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 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;
     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;
    158158}
    159159
     
    228228function vdo_activate()
    229229{
    230     if (!get_option('vdo_default_height')) {
     230    if ((get_option('vdo_default_height')) == false) {
    231231        update_option('vdo_default_height', '360');
    232232    }
    233     if (!get_option('vdo_default_width')) {
     233    if ((get_option('vdo_default_width')) == false) {
    234234        update_option('vdo_default_width', '640');
    235235    }
    236     if (empty(get_option('vdo_embed_version'))) {
     236    //https://stackoverflow.com/a/2173318/5022684
     237    if ((get_option('vdo_embed_version')) == false) {
    237238        update_option('vdo_embed_version', '0.5');
    238239    }
    239     if (empty(get_option('vdo_player_theme'))) {
     240    if ((get_option('vdo_player_theme')) == false) {
    240241        update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a');
    241242    }
Note: See TracChangeset for help on using the changeset viewer.