website rev 1332

Fix mail archives page
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 15:00:50 2019 +0200 (2019-08-14)
parents aa2e7007aa2b
children 826917ed1fb1
files lib/archives.php
line diff
     1.1 --- a/lib/archives.php	Wed Aug 14 13:14:01 2019 +0200
     1.2 +++ b/lib/archives.php	Wed Aug 14 15:00:50 2019 +0200
     1.3 @@ -129,17 +129,17 @@
     1.4  
     1.5  echo '<h4>'.translate("Archives").' 2007-'.date('Y')."</h4>\n";
     1.6  
     1.7 -$url = "http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/";
     1.8 +$url = "://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/";
     1.9  
    1.10  $script  = "-e '/<table/,/<\/table>/!d' ";
    1.11  $script .= "-e 's|html\"|html\" target=\"_blank\"|g' ";
    1.12 -$script .= "-e 's|href=\"|href=\"$url|g' ";
    1.13 +$script .= "-e 's|https*$url||g' -e 's|href=\"|href=\"https$url|g' ";
    1.14  foreach (array("Archive","View by","Number","Total size",
    1.15  	       "Messages count", "Month/Year",
    1.16  	       "Thread"," or ","Date") as $word) {
    1.17  	$script .= "-e 's|".$word."|".translate($word)."|' ";
    1.18  }
    1.19 -system("wget -q -O - $url | sed $script");
    1.20 +system("wget -q --no-check-certificate -O - https$url | sed $script");
    1.21  ?>
    1.22  </body>
    1.23  </html>