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