|
@@ -162,7 +162,8 @@ else {
|
|
|
$credentials="false";
|
|
|
}
|
|
|
|
|
|
-$pixlr_url = 'http://pixlr.com/editor/?title='.$title.'&image='.$image.'&loc='.$loc.'&referrer='.$referrer.'&target='.$target.'&exit='.$exit_path.'&locktarget='.$locktarget.'&locktitle='.$locktitle.'&credentials='.$credentials;
|
|
|
+$pixlr_protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
|
|
|
+$pixlr_url = $pixlr_protocol.'://pixlr.com/editor/?title='.$title.'&image='.$image.'&loc='.$loc.'&referrer='.$referrer.'&target='.$target.'&exit='.$exit_path.'&locktarget='.$locktarget.'&locktitle='.$locktitle.'&credentials='.$credentials;
|
|
|
|
|
|
|
|
|
?>
|
|
@@ -189,4 +190,4 @@ echo '<noscript>';
|
|
|
echo '<iframe style="height: 600px; width: 100%;" scrolling="no" frameborder="0" src="'.$pixlr_url.'"><noframes><p>Sorry, your browser does not handle frames</p></noframes></iframe>';
|
|
|
echo '</noscript>';
|
|
|
|
|
|
-Display::display_footer();
|
|
|
+Display::display_footer();
|