projects
/
web.Reddit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be23738
)
Reddit/Embedly.php
author
Alan Knowles
<alan@roojs.com>
Tue, 9 Dec 2014 07:50:59 +0000
(15:50 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 9 Dec 2014 07:50:59 +0000
(15:50 +0800)
Reddit/Embedly.php
patch
|
blob
|
history
diff --git
a/Reddit/Embedly.php
b/Reddit/Embedly.php
index
e69de29
..
394937c
100644
(file)
--- a/
Reddit/Embedly.php
+++ b/
Reddit/Embedly.php
@@
-0,0
+1,19
@@
+<?php
+
+class Reddit_Embedly {
+
+ function getAuth()
+ {
+ return true;
+ }
+ function get()
+ {
+ echo '<a class="embedly-card" href="'. htmlspecialchars($_REQUEST['url']) . '">'.htmlspecialchars($_REQUEST['url']) . '</a>
+ <script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>';
+
+ exit;
+
+
+ }
+
+}