SF.net SVN: phpwiki:[10913] trunk/lib/plugin

vargenau--- via phpwiki-checkins <[email protected]> Thu, 20 Jan 2022 15:09:53 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10913
          http://sourceforge.net/p/phpwiki/code/10913
Author:   vargenau
Date:     2022-01-20 15:09:53 +0000 (Thu, 20 Jan 2022)
Log Message:
-----------
Use https

Modified Paths:
--------------
    trunk/lib/plugin/FacebookLike.php
    trunk/lib/plugin/GoogleMaps.php
    trunk/lib/plugin/YouTube.php

Modified: trunk/lib/plugin/FacebookLike.php
===================================================================
--- trunk/lib/plugin/FacebookLike.php	2022-01-20 11:19:14 UTC (rev 10912)
+++ trunk/lib/plugin/FacebookLike.php	2022-01-20 15:09:53 UTC (rev 10913)
@@ -62,7 +62,7 @@
         $args = $this->getArgs($argstr, $request);
         extract($args);
 
-        //$iframe = "<iframe src=\"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;\" allowTransparency=\"true\"></iframe>";
+        //$iframe = "<iframe src=\"https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;\" allowTransparency=\"true\"></iframe>";
         $urlargs = array(
             "layout" => $layout,
             "show_faces" => $show_faces,
@@ -72,7 +72,7 @@
             "height" => $height
         );
         $pagename = $request->getArg('pagename');
-        $url = "http://www.facebook.com/plugins/like.php?"
+        $url = "https://www.facebook.com/plugins/like.php?"
             . "href=" . urlencode(WikiURL($pagename, $urlargs, true));
         $url = str_replace("%3D", "=", $url);
         $params = array("src" => $url,

Modified: trunk/lib/plugin/GoogleMaps.php
===================================================================
--- trunk/lib/plugin/GoogleMaps.php	2022-01-20 11:19:14 UTC (rev 10912)
+++ trunk/lib/plugin/GoogleMaps.php	2022-01-20 15:09:53 UTC (rev 10913)
@@ -27,7 +27,7 @@
  *
  * This plugin displays a marker with further infos (when clicking) on given coordinates.
  * Hint: You need to sign up for a Google Maps API key!
- *         http://www.google.com/apis/maps/signup.html
+ *         https://www.google.com/apis/maps/signup.html
  *       Then enter the key in config/config.ini under GOOGLE_LICENSE_KEY=
  *
  * Usage:
@@ -46,8 +46,7 @@
  * @author Reini Urban
  *
  * @see plugin/GooglePlugin
- *      http://www.giswiki.de/index.php/Google_Maps_Extensions
- *      http://www.google.com/apis/maps/, http://maps.google.com/
+ *      https://www.google.com/apis/maps/, https://maps.google.com/
  *      http://libgmail.sourceforge.net/googlemaps.html
  *
  * NOT YET SUPPORTED:
@@ -107,7 +106,7 @@
             return $this->error(_('Latitude must be a number.'));
         }
 
-        $maps = JavaScript('', array('src' => "http://maps.google.com/maps?file=api&v=1&key=" . GOOGLE_LICENSE_KEY));
+        $maps = JavaScript('', array('src' => "https://maps.google.com/maps?file=api&v=1&key=" . GOOGLE_LICENSE_KEY));
         $id = GenerateId("googlemap");
         switch ($MapType) {
             case "Satellite":

Modified: trunk/lib/plugin/YouTube.php
===================================================================
--- trunk/lib/plugin/YouTube.php	2022-01-20 11:19:14 UTC (rev 10912)
+++ trunk/lib/plugin/YouTube.php	2022-01-20 15:09:53 UTC (rev 10913)
@@ -131,7 +131,7 @@
                 $t = $time ? $this->_time[$time] : 't';
                 $c = $category ? $this->_category[$category] : '0';
                 $l = $language ? $this->_language[$language] : '';
-                $url = "http://www.youtube.com/browse?s=$s&t=$t&c=$c&l=$l";
+                $url = "https://www.youtube.com/browse?s=$s&t=$t&c=$c&l=$l";
                 $m = array('', '');
                 if ($xml = url_get_contents($url)) {
                     if ($index) {
@@ -149,7 +149,7 @@
             return $this->error(fmt("Invalid argument %s", "v"));
         if (strcspn($v, "-_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"))
             return $this->error(fmt("Invalid argument %s", "v"));
-        $url = "http://www.youtube.com/v/" . $v;
+        $url = "https://www.youtube.com/v/" . $v;
         if ($autoplay)
             $url .= "?autoplay=1";
         if ($size != 'medium') {
@@ -176,9 +176,9 @@
                 $width = 90;
                 $height = 60;
             }
-            // img: http://img.youtube.com/vi/KKTDRqQtPO8/2.jpg or 0.jpg
+            // img: https://img.youtube.com/vi/KKTDRqQtPO8/2.jpg or 0.jpg
             return HTML::a(array('href' => $url),
-                HTML::img(array('src' => "http://img.youtube.com/vi/" .
+                HTML::img(array('src' => "https://img.youtube.com/vi/" .
                     $v . "/" . (($size == 'large') ? "0" : "2") . ".jpg",
                     'width' => $width,
                     'height' => $height,
@@ -200,7 +200,7 @@
 
     private function Daily_pick()
     {
-        if ($xml = url_get_contents("http://www.youtube.com/categories")) {
+        if ($xml = url_get_contents("https://www.youtube.com/categories")) {
             if (preg_match('/<div class="heading"><b>Pick of The Day<\/b><\/div>.*?<a href="\/watch\?v=(\w+)">/s', $xml, $m))
                 return $m[1];
         }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.