felt quirky, might commit later

This commit is contained in:
lolcat 2023-07-26 19:03:06 -04:00
parent bca265aea6
commit 16ee0b368f
7 changed files with 1039 additions and 456 deletions

View file

@ -143,7 +143,7 @@ class frontend{
$payload .=
'">' .
'<img class="thumb" src="/proxy?i=' . urlencode($site["thumb"]["url"]) . '&s=' . $size . '" alt="thumb">';
'<img class="thumb" src="' . $this->htmlimage($site["thumb"]["url"], $size) . '" alt="thumb">';
if($duration !== null){
@ -1273,6 +1273,21 @@ class frontend{
return http_build_query($out);
}
public function htmlimage($image, $format){
if(
preg_match(
'/^data:/',
$image
)
){
return htmlspecialchars($image);
}
return "/proxy.php?i=" . urlencode($image) . "&s=" . $format;
}
public function htmlnextpage($gets, $npt, $page){
$query = $this->buildquery($gets);