scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 89  →  ?path2? @ 90
/graph.php
@@ -64,18 +64,19 @@
die('File not found.');
}
 
list($width, $height) = getimagesize($userPath);
$URL = $config['URL_PATH'].$_GET['hash'];
 
$imagePath = $config['URL_PATH'].$_GET['hash'];
 
echo <<<END
switch(strtoupper($fileExtension)) {
case 'GIF':
list($width, $height) = getimagesize($userPath);
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;
}