try again
This commit is contained in:
parent
6c0a3f31bb
commit
66600ed2f8
@ -1195,7 +1195,7 @@ function prepare_body(&$item,$attach = false) {
|
||||
$s .= format_filer($item);
|
||||
|
||||
|
||||
// $s = sslify($s);
|
||||
$s = sslify($s);
|
||||
|
||||
|
||||
// Look for spoiler
|
||||
|
@ -1,6 +1,21 @@
|
||||
<?php
|
||||
|
||||
function sslify_init(&$a) {
|
||||
$x = z_fetch_url($_REQUEST['url']);
|
||||
if($x['success']) {
|
||||
$h = explode("\n",$x['headers']);
|
||||
foreach ($h as $l) {
|
||||
list($k,$v) = array_map("trim", explode(":", trim($l), 2));
|
||||
$hdrs[$k] = $v;
|
||||
}
|
||||
if (array_key_exists('Content-Type', $hdrs))
|
||||
$type = $hdrs['Content-Type'];
|
||||
|
||||
header('Content-Type: ' . $type);
|
||||
echo $x['body'];
|
||||
killme();
|
||||
}
|
||||
|
||||
goaway($_REQUEST['url']);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<a href='{{$embedurl}}' onclick='this.innerHTML=Base64.decode("{{$escapedhtml}}"); return false;' style='float:left; margin: 1em; position: relative;'>
|
||||
<img width='{{$tw}}' height='{{$th}}' src='{{$turl}}' >
|
||||
<div style='position: absolute; top: 0px; left: 0px; width: {{$twpx}}; height: {{$thpx}}; background: url({{$baseurl}}/images/icons/48/play.png) no-repeat center center;'></div>
|
||||
<a href="{{$embedurl}}" onclick="this.innerHTML=Base64.decode('{{$escapedhtml}}'); return false;" style="float:left; margin: 1em; position: relative;">
|
||||
<img width="{{$tw}}" height="{{$th}}" src="{{$turl}}" />
|
||||
<div style="position: absolute; top: 0px; left: 0px; width: {{$twpx}}; height: {{$thpx}}; background: url({{$baseurl}}/images/icons/48/play.png) no-repeat center center;"></div>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user