|
@@ -1188,6 +1188,7 @@ blockquote{border-left:2px solid black;}
|
|
|
if($ext!='jpg'){
|
|
|
$img2->setImageFormat('jpeg');
|
|
|
$img2->setImageCompressionQuality($quality);
|
|
|
+ $img2->setInterlaceScheme(Imagick::INTERLACE_PLANE);
|
|
|
$img2->writeImage($destination);
|
|
|
}else{
|
|
|
rename($source,$destination);
|
|
@@ -1646,7 +1647,7 @@ blockquote{border-left:2px solid black;}
|
|
|
if($mo=='m'&&$this_m!=$last_m){ if(isset($ch[0])){$chunks[]=$ch;$ch=[];} $n['restart']=$this_y.'/'.$this_m; }
|
|
|
if($mo=='d'&&$this_d!=$last_d){ if(isset($ch[0])){$chunks[]=$ch;$ch=[];} $n['restart']=$this_y.'/'.$this_m.'/'.$this_d; }
|
|
|
if($mo=='p'){ if(isset($ch[0])){$chunks[]=$ch;$ch=[];} }
|
|
|
- $ch[]=$n; $last_id=$this_id; $last_y=$this_y; $last_m=$this_m; $last_d=$this_d;
|
|
|
+ $ch[]=&$n; $last_id=$this_id; $last_y=$this_y; $last_m=$this_m; $last_d=$this_d;
|
|
|
}if(isset($ch[0])){$chunks[]=$ch;} if(isset($chunks[0])){$use_chunks=array_reverse($chunks);}
|
|
|
$final[]=&$first_post;
|
|
|
foreach($use_chunks as &$ch){ foreach($ch as &$p){ $final[]=&$p;} }
|
|
@@ -2766,7 +2767,7 @@ blockquote{border-left:2px solid black;}
|
|
|
"$1$2$4 target='_blank'$5$6<sup>↗</sup>$7",$html);
|
|
|
$html = preg_replace("/<p>\s*\@.*?<\/p>/mu","",$html);
|
|
|
$html = preg_replace("/\{\s*(REVERSED|INTERESTING|HEADER|FOOTER)\s+(.*?)\}/imu","",$html);
|
|
|
- $html = preg_replace("/\{\s*(NO_TIME|NO_TITLE)\s*\}/imu","",$html);
|
|
|
+ $html = preg_replace("/\{\s*(REVERSED|NO_TIME|NO_TITLE)\s*\}/imu","",$html);
|
|
|
$html = preg_replace("/\{\s*WIDE\s*\}/imu","",$html,-1,$rep_count); if($rep_count){$print_wide=true;}
|
|
|
$images = []; $images_noclick = []; $images_orig_src_list = [];
|
|
|
$html = preg_replace_callback(
|
|
@@ -4863,7 +4864,7 @@ blockquote{border-left:2px solid black;}
|
|
|
dmastodon.style.display=(dmastodon.style.display=='block')?'none':'block';
|
|
|
dmark.style.display=drename.style.display='none';
|
|
|
}
|
|
|
- <?php } ?>
|
|
|
+ <?php } if(isset($_GET['post'])){ ?> ScrollToPost("<?=$_GET['post']?>"); <?php } ?>
|
|
|
function ShowPostMenu(post){
|
|
|
menu = document.getElementById('post_menu');
|
|
|
menu.style.display='block';
|