scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 106  →  ?path2? @ 107
/graph.php
@@ -64,9 +64,7 @@
die('File not found.');
}
 
$CANON_URL = $config['URL_PATH'].$_GET['hash'];
$GRAPH_URL = $config['URL_PATH'].'og/'.$_GET['hash'];
$VIDEO_URL = $config['URL_PATH'].'file.php?hash='.$_GET['hash'];
$URL = $config['URL_PATH'].$_GET['hash'];
 
switch(strtoupper($fileExtension)) {
case 'GIF':
@@ -75,10 +73,10 @@
<html>
<head>
<meta property="og:site_name" content="Scratch Copy">
<meta property="og:url" content="$GRAPH_URL">
<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="$CANON_URL">
<meta property="og:image" content="$URL">
<meta property="og:image:width" content="$width">
<meta property="og:image:height" content="$height">
</head>
@@ -85,15 +83,15 @@
 
<body>
<p>
<img src="$CANON_URL">
<img src="$URL">
</p>
</body>
 
</html>
END;
break;
break;
case 'MP4':
echo <<<END
echo <<<END
<html>
<head>
<!-- These two aren't necessary for embedding. -->
@@ -118,7 +116,7 @@
 
</html>
END;
break;
break;
}