scratch – Diff between revs 87 and 88

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 87 Rev 88
Line 64... Line 64...
64 die('File not found.'); 64 die('File not found.');
65 } 65 }
Line 66... Line 66...
66   66  
Line 67... Line 67...
67 list($width, $height) = getimagesize($userPath); 67 list($width, $height) = getimagesize($userPath);
68   -  
Line 69... Line 68...
69 # Create an OpenGraph object with validation. 68  
-   69 $imagePath = $config['URL_PATH'].$_GET['hash'];
-   70  
70 $og = new OpenGraph(); 71 echo <<<END
71   72 <html>
72 $og->title('Scratch Copy') 73 <head>
73 ->description('Asset Sharing') 74 <meta property="og:site_name" content="Scratch Copy">
74 ->url($config['URL_PATH'].$_GET['hash']) 75 <meta property="og:url" content="$imagePath">
75 ->type('movie') 76 <meta property="og:title" content="Scratch Copy">
76 ->image($config['URL_PATH'].$_GET['hash'], [ 77 <meta property="og:type" content="video.other">
77 type => 'image/png', 78 <meta property="og:image" content="$imagePath">
Line -... Line 79...
-   79 <meta property="og:image:width" content="$width">
78 width => $width, 80 <meta property="og:image:height" content="$height">
79 height => $height 81 </head>
-   82  
-   83 <body>
Line -... Line 84...
-   84 <p>
-   85 <img src="$imagePath">