forked from jmwong/VisualFeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisual.php
67 lines (48 loc) · 1.74 KB
/
visual.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
require_once 'lib/display.php';
Display::setTitle("somethin");
echo Display::top();
?>
<h1 class="span-24 last" id="logo"><img src="img/logo.png" /></h1>
<h4 class="span-24 last">Sit back and enjoy as we take a visual view of you and your friend's facebook lives!</h4>
<div id="wall" class="span-20"></div>
<a href="index.php">vsual</a>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<?php
$cleanUrl = 'http://'.$_SERVER['HTTP_HOST'].'/visualfeed/lib/getFeed.php?session='.$_GET['session'];
$fullUrl = urlencode($cleanUrl);
$fullUrl = getFullurl('/visualfeed/lib/getFeed.php');
$script =
var flashvars = {
showDescription: "true",
feed: "$fullUrl",
//feed: "api://www.flickr.com/"
//feed: "http://api.flickr.com%2Fservices%2Ffeeds%2Fphotos_public.gne%3Ftags%3Dhackathon%26lang%3Den-us%26format%3Drss_200"
};
var params = {
allowFullScreen: "true",
allowscriptaccess: "always"
};
$(document).ready(function(){
$('#wall').flash({
swf:'cooliris.swf',
flashvars: flashvars,
params: params,
width: '100%',
height: '100%',
});
});
/*
var cooliris = {
onEmbedInitialized : function() {
alert("cooliris.embed is now available");
}
};*/
//swfobject.embedSWF("http://apps.cooliris.com/embed/cooliris.swf",
/*
swfobject.embedSWF("cooliris.swf",
"wall", "100%", "100%", "9.0.0", "",
flashvars, params);
*/
EOQ;
echo Display::bottom($script);?>