scratch
/graph.php |
@@ -64,18 +64,19 @@ |
die('File not found.'); |
} |
|
$URL = $config['URL_PATH'].$_GET['hash']; |
|
switch(strtoupper($fileExtension)) { |
case 'GIF': |
list($width, $height) = getimagesize($userPath); |
|
$imagePath = $config['URL_PATH'].$_GET['hash']; |
|
echo <<<END |
<html> |
<head> |
<meta property="og:site_name" content="Scratch Copy"> |
<meta property="og:url" content="$imagePath"> |
<meta property="og:url" content="$URL"> |
<meta property="og:title" content="Scratch Copy"> |
<meta property="og:type" content="video.other"> |
<meta property="og:image" content="$imagePath"> |
<meta property="og:image" content="$URL"> |
<meta property="og:image:width" content="$width"> |
<meta property="og:image:height" content="$height"> |
</head> |
@@ -82,9 +83,14 @@ |
|
<body> |
<p> |
<img src="$imagePath"> |
<img src="$URL"> |
</p> |
</body> |
|
</html> |
END; |
break; |
} |
|
|
|