/*** EVERYBODY FUNCTIONS ***/ // Curl helper function function curl_get($url) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 30); $return = curl_exec($curl); curl_close($curl); return $return; } /*** FLICKR ***/ // The Flickr gallery is handled through an open-source, free JavaScript called Galleria. For more information on the license, etc., check out the docs folder in this package. if (isset($accounts['flickr']['username']) && isset($accounts['flickr']['apikey']) && $accounts['flickr']['apikey'] != '' && $accounts['flickr']['username'] != '') { $flickr_on = true; } /*** VIMEO ***/ if (isset($accounts['vimeo']['username']) && $accounts['vimeo']['username'] != '') { $video_bubble = true; $vimeo_on = true; $api_endpoint = 'http://www.vimeo.com/api/v2/'.$accounts['vimeo']['username']; $vimeo_user = simplexml_load_string(curl_get($api_endpoint.'/info.xml')); $vimeo_videos = simplexml_load_string(curl_get($api_endpoint.'/videos.xml')); } /*** YOUTUBE ***/ if (isset($accounts['youtube']['username']) && $accounts['youtube']['username'] != '') { $video_bubble = true; $youtube_on = true; $youtube_rss_feed = 'http://gdata.youtube.com/feeds/api/users/'.$accounts['youtube']['username'].'/uploads?v=2'; $youtube_simple_xml = simplexml_load_file($youtube_rss_feed); /*echo '
'; print_r($youtube_simple_xml); echo '';*/ } /*** TWITTER ***/ if (isset($accounts['twitter']['username']) && $accounts['twitter']['username'] != '') { $twitter_on = true; $twitter_xml_feed = 'http://api.twitter.com/1/statuses/user_timeline.xml?screen_name='.$accounts['twitter']['username']; $twitter_simple_xml = simplexml_load_file($twitter_xml_feed); $twitter_status_feed = $twitter_simple_xml->status; } /*** FACEBOOK ***/ ?>
This is my little piece of heave- uh, the Internet. Well, same thing. I have a my own Moodle, Forum,Wordpress, and Mediawiki. Click on the names to see them. There might not be much to see.
'.$general['about_videos'].'
'; } ?>if ($vimeo_on == true) { ?>
'.$tweet->text.'
'.$tweet->created_at.'