Empty commit

This commit is contained in:
Git 2014-04-25 08:00:52 +00:00
parent 58e172e2e2
commit b1757b6ef4
2 changed files with 5 additions and 12 deletions

View File

@ -1,11 +1,8 @@
<? <?
// Main image proxy page
// The image proxy does not use script_start.php. Its code, instead, resides entirely in image.php in the document root
// Bear this in mind when you try to use script_start functions.
if (!check_perms('site_proxy_images')) { if (!check_perms('site_proxy_images')) {
img_error('forbidden'); img_error('forbidden');
} }
$URL = isset($_GET['i']) ? htmlspecialchars_decode($_GET['i']) : null; $URL = isset($_GET['i']) ? htmlspecialchars_decode($_GET['i']) : null;
if (!extension_loaded('openssl') && strtoupper($URL[4]) == 'S') { if (!extension_loaded('openssl') && strtoupper($URL[4]) == 'S') {
@ -129,14 +126,9 @@ function reset_image($UserID, $Type, $AdminComment, $PrivMessage) {
} }
} }
/*
TODO: solve this properly for photoshop output images which prepend shit to the image file. skip it or strip it
if (!isset($FileType)) { if (!isset($FileType)) {
img_error('timeout'); img_error('timeout');
} }
*/
if (isset($FileType)) { header("Content-type: image/$FileType");
header("Content-type: image/$FileType");
}
echo $Data; echo $Data;
?>

View File

@ -60,7 +60,8 @@
$FullName = "$Request[Title] [$Request[Year]]"; $FullName = "$Request[Title] [$Request[Year]]";
$DisplayLink = "<span dir=\"ltr\">$Request[Title]</span> [$Request[Year]]"; $DisplayLink = "<span dir=\"ltr\">$Request[Title]</span> [$Request[Year]]";
} else { } else {
$FullName = $DisplayLink = "<span dir=\"ltr\">$Request[Title]</span>"; $FullName = $Request['Title'];
$DisplayLink = "<span dir=\"ltr\">$Request[Title]</span>";
} }
//Votes time //Votes time