scratch – Diff between revs 107 and 108

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 107 Rev 108
Line 62... Line 62...
62 if (!file_exists($userPath)) { 62 if (!file_exists($userPath)) {
63 http_response_code(404); 63 http_response_code(404);
64 die('File not found.'); 64 die('File not found.');
65 } 65 }
Line -... Line 66...
-   66  
-   67 $GRAPH_URL = $config['URL_PATH'].'og/'.$_GET['hash'];
66   68 $CANON_URL = $config['URL_PATH'].'file.php?hash='.$_GET['hash'];
Line 67... Line 69...
67 $URL = $config['URL_PATH'].$_GET['hash']; 69 $URL = $config['URL_PATH'].$_GET['hash'];
68   70  
69 switch(strtoupper($fileExtension)) { 71 switch(strtoupper($fileExtension)) {
Line 92... Line 94...
92 break; 94 break;
93 case 'MP4': 95 case 'MP4':
94 echo <<<END 96 echo <<<END
95 <html> 97 <html>
96 <head> 98 <head>
97 <!-- These two aren't necessary for embedding. --> -  
98 <meta property="og:site_name" content="Scratch Copy"> -  
99 <meta property="og:title" content="Scratch Copy"> -  
100 <meta property="og:type" content="video.other"> 99 <meta property="og:type" content="video.other">
101 <meta property="og:description" content="Scratch Copy"> 100 <meta property="og:title" content="Scratch Copy">
-   101 <meta property="og:site_name" content="Scratch Copy">
-   102
102 <meta property="og:url" content="$GRAPH_URL"> 103 <meta property="og:url" content="$GRAPH_URL">
-   104
103 <meta property="og:image" content="https://scratch.grimore.org/img/blueprint.png"> 105 <meta property="og:image" content="https://cpy.ro/img/blueprint.png">
104 <meta property="og:video" content='https://scratch.grimore.org/flowplayer/flowplayer.swf?config={"clip":{"url":"$CANON_URL"}}'> 106 <meta property="og:video" content='http://cpy.ro/flowplayer/flowplayer.swf?config={"clip":"$URL"}'>
105 <meta property="og:video:secure_url" content='https://scratch.grimore.org/flowplayer/flowplayer.swf?config={"clip":{"url":"$CANON_URL"}}'> 107 <meta property="og:video:secure_url" content='https://cpy.ro/flowplayer/flowplayer.swf?config={"clip":"$URL"}'>
106 <meta property="og:video:type" content="application/x-shockwave-flash"> 108 <meta property="og:video:type" content="application/x-shockwave-flash">
107 <meta property="og:video:height" content="254"> 109 <meta property="og:video:width" content="425">
108 <meta property="og:video:width" content="650"> 110 <meta property="og:video:height" content="300">
109 </head> 111 </head>
Line 110... Line 112...
110   112  
111 <body> 113 <body>
112 <p> 114 <p>
113 <object width="425" height="300" id="Scratch Copy" name="Scratch Copy" data="https://scratch.grimore.org/flowplayer/flowplayer.swf" type="application/x-shockwave-flash"><param name="movie" value="https://scratch.grimore.org/flowplayer/flowplayer.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"clip":{"url":"$CANON_URL"}}' /></object> 115 <object width="425" height="300" id="Scratch Copy" name="Scratch Copy" data="https://cpy.ro/flowplayer/flowplayer.swf" type="application/x-shockwave-flash"><param name="movie" value="https://cpy.ro/flowplayer/flowplayer.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"clip":"$URL"}' /></object>
114 </p> 116 </p>
Line 115... Line 117...
115 </body> 117 </body>
116   118