Plugin Directory

Changeset 1335330


Ignore:
Timestamp:
01/25/2016 07:47:06 AM (10 years ago)
Author:
infomaniak-dev
Message:

rajout support https

Location:
vod-infomaniak/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vod-infomaniak/trunk/readme.txt

    r1273766 r1335330  
    66Requires at least: 2.8.6
    77Tested up to: 4.3.1
    8 Stable tag: 1.3.4
     8Stable tag: 1.3.5
    99
    1010
     
    7272
    7373== Changelog ==
     74
     75= 1.3.5 (25/01/2016) =
     76* Prise en compte HTTPS si besoin
    7477
    7578= 1.3.4 (27/09/2015) =
  • vod-infomaniak/trunk/vod.class.php

    r1273766 r1335330  
    66     * @author Destrem Kevin + Davide Rubini + Arnaud Toullieux
    77     * @link http://statslive.infomaniak.ch/vod/api/
    8      * @version 1.3.4
     8     * @version 1.3.5
    99     * @copyright infomaniak.ch
    1010     */
     
    1616
    1717    class EasyVod {
    18         public $version = "1.3.3";
     18        public $version = "1.3.5";
    1919        private $local_version;
    2020        private $plugin_url;
     
    328328            //Recuperation des differents parametres
    329329            $iVod = $this->options['vod_api_icodeservice'];
    330             $sUrl = "http://vod.infomaniak.com/iframe.php";
     330            if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
     331                $sProtocol = "https";
     332            }else{
     333                $sProtocol = "http";
     334            }
     335           
     336            $sUrl = $sProtocol."://vod.infomaniak.com/iframe.php";
     337
    331338            $sAccountBase = $this->options['vod_api_id'];
    332339            $sKey = "";
  • vod-infomaniak/trunk/vod.template.php

    r1211783 r1335330  
    333333            <h2><?php _e('Administration du plugin VOD', 'vod_infomaniak'); ?></h2>
    334334
    335             <iframe frameborder="0" width="512" height="384" src="http://vod.infomaniak.com/iframe.php?url=https://vod.infomaniak.com/redirect/faq_vod/racine-1594/mp4-319/1539_72_1397483621_2934.mp4&duration=&player=299&vod=86&preloadImage=https://vod.infomaniak.com/redirect/faq_vod/racine-1594/mp4-319/1539_72_1397483621_2934.jpg?1438234073197&lg=fr&wmode=direct"></iframe>
     335            <iframe frameborder="0" width="512" height="384" src="https://vod.infomaniak.com/iframe.php?url=https://vod.infomaniak.com/redirect/faq_vod/racine-1594/mp4-319/1539_72_1397483621_2934.mp4&duration=&player=299&vod=86&preloadImage=https://vod.infomaniak.com/redirect/faq_vod/racine-1594/mp4-319/1539_72_1397483621_2934.jpg?1438234073197&lg=fr&wmode=direct"></iframe>
    336336
    337337            <form name="adminForm" action="<?php echo $action_url; ?>" method="post">
     
    10801080                        jQuery("#dialog-modal-admin").attr("href", "https://statslive.infomaniak.com/vod/videoDetail.php/g<?php echo $aOptions['vod_api_group'];?>s7i<?php echo $aOptions['vod_api_icodeservice'];?>?iFileCode=" + iVideo);
    10811081                        jQuery("#dialog-modal-admin2").attr("href", "https://statslive.infomaniak.com/vod/videoDetail.php/g<?php echo $aOptions['vod_api_group'];?>s7i<?php echo $aOptions['vod_api_icodeservice'];?>?iFileCode=" + iVideo + "&tab=2");
    1082                         jQuery("#dialog-modal-video").attr("src", "http://vod.infomaniak.com/iframe.php?url=" + urlComplete + "." + sExtension + sParam + "&player=576&vod=214&preloadImage=" + urlComplete + ".jpg");
     1082                        jQuery("#dialog-modal-video").attr("src", "https://vod.infomaniak.com/iframe.php?url=" + urlComplete + "." + sExtension + sParam + "&player=576&vod=214&preloadImage=" + urlComplete + ".jpg");
    10831083
    10841084                        textAccess = "";
     
    12841284                    console.log(value);
    12851285                    jQuery('#player-info-' + value).show();
    1286                     jQuery("#player-demo-video").attr("src", "http://vod.infomaniak.com/iframe.php?url=infomaniak_11_vod/demo-2362/mp4-226/big_buck_bunny_720p_h264.mp4&player=" + value + "&vod=<?php echo $aOptions['vod_api_icodeservice'];?>&preloadImage=infomaniak_11_vod/demo-2362/mp4-226/big_buck_bunny_720p_h264.jpg");
     1286                    jQuery("#player-demo-video").attr("src", "https://vod.infomaniak.com/iframe.php?url=infomaniak_11_vod/demo-2362/mp4-226/big_buck_bunny_720p_h264.mp4&player=" + value + "&vod=<?php echo $aOptions['vod_api_icodeservice'];?>&preloadImage=infomaniak_11_vod/demo-2362/mp4-226/big_buck_bunny_720p_h264.jpg");
    12871287                }
    12881288                PlayerInfo();
Note: See TracChangeset for help on using the changeset viewer.