Commit 2334c801 authored by Romain Loth's avatar Romain Loth

ssl: change absolute urls to avoid mixed content

parent 0a7a330b
...@@ -44,7 +44,11 @@ foreach ($scholars as $scholar) { ...@@ -44,7 +44,11 @@ foreach ($scholars as $scholar) {
<div class="span9" align="justify">'; <div class="span9" align="justify">';
$content .= '<div>'; $content .= '<div>';
if ($scholar['photo_url'] != null) { if ($scholar['photo_url'] != null) {
$content .= '<img style="margin: 7px 10px 10px 0px" src="'. $scholar['photo_url'] . '" width="' . $imsize . 'px" align="left">'; $photo_url = $scholar['photo_url'] ;
if ($_SERVER['REQUEST_SCHEME'] == 'https') {
$photo_url = preg_replace('/^http:/i', 'https:', $photo_url) ;
}
$content .= '<img style="margin: 7px 10px 10px 0px" src="'. $photo_url . '" width="' . $imsize . 'px" align="left">';
} }
// raw binary picture // raw binary picture
elseif ($scholar['pic_file'] != null) { elseif ($scholar['pic_file'] != null) {
......
...@@ -14,8 +14,8 @@ $meta = '<!DOCTYPE html> ...@@ -14,8 +14,8 @@ $meta = '<!DOCTYPE html>
<meta name="author" content=""> <meta name="author" content="">
<!-- Le styles --> <!-- Le styles -->
<link type="text/css" href="http://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet">
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="static/css/whoswho.css" rel="stylesheet"> <link type="text/css" href="static/css/whoswho.css" rel="stylesheet">
<link type="text/css" href="static/css/comex.css" rel="stylesheet"> <link type="text/css" href="static/css/comex.css" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet"> <link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet">
......
...@@ -14,8 +14,8 @@ $meta = '<!DOCTYPE html> ...@@ -14,8 +14,8 @@ $meta = '<!DOCTYPE html>
<meta name="author" content=""> <meta name="author" content="">
<!-- Le styles --> <!-- Le styles -->
<link type="text/css" href="http://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet">
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="static/css/whoswho.css" rel="stylesheet"> <link type="text/css" href="static/css/whoswho.css" rel="stylesheet">
<link type="text/css" href="static/css/comex.css" rel="stylesheet"> <link type="text/css" href="static/css/comex.css" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet"> <link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet">
......
...@@ -12,8 +12,8 @@ $meta = '<!DOCTYPE html> ...@@ -12,8 +12,8 @@ $meta = '<!DOCTYPE html>
<meta name="author" content=""> <meta name="author" content="">
<!-- Le styles --> <!-- Le styles -->
<link type="text/css" href="http://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet">
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="static/css/whoswho.css" rel="stylesheet"> <link type="text/css" href="static/css/whoswho.css" rel="stylesheet">
<link type="text/css" href="static/css/comex.css" rel="stylesheet"> <link type="text/css" href="static/css/comex.css" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet"> <link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet">
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
</div> </div>
<br/> <br/>
<center> <center>
<iframe src="http://player.vimeo.com/video/38383946" width="300" height="170" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <iframe src="https://player.vimeo.com/video/38383946" width="300" height="170" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</center> </center>
<br/><br/> <br/><br/>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<!-- for topbar search/refine --> <!-- for topbar search/refine -->
<!-- ## fonts ## --> <!-- ## fonts ## -->
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="http://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet">
<!-- <link type=text/css rel=stylesheet href="{{ url_for('static', filename='css/bootstrap_index.css') }}"> --> <!-- <link type=text/css rel=stylesheet href="{{ url_for('static', filename='css/bootstrap_index.css') }}"> -->
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="description" content=""> <meta name="description" content="">
<meta name="author" content=""> <meta name="author" content="">
<!-- Les styles --> <!-- Les styles -->
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap.css" rel="stylesheet"> <link type="text/css" href="static/css/bootstrap.css" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap_index.css" rel="stylesheet"> <link type="text/css" href="static/css/bootstrap_index.css" rel="stylesheet">
<link type="text/css" href="static/css/brownian-motion/jquery-ui-1.8.16.custom.css" rel="stylesheet"> <link type="text/css" href="static/css/brownian-motion/jquery-ui-1.8.16.custom.css" rel="stylesheet">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment