print '<div class="ui-state-highlight ui-corner-top pgdown" style="float: right;width: 4em;margin-right:2px">PgDn</div>'; if (isset($_SESSION['auth'])) { print '<div id="omnitoolbutton" class="ui-state-highlight ui-corner-top" style="float:right;margin-right:2px">' . ' <i class="fa fa-wrench"></i> Omnitool </div>'; } print '</td></tr></table>'; show_search_results($result, $_GET['select'], $display, $shelf_files, $desktop_projects, $tempdbHandle); print '<table cellspacing="0" class="top" style="margin:1px 0px 2px 0px"><tr><td style="width: 50%">'; print '<div class="ui-state-highlight ui-corner-bottom' . ($from == 0 ? ' ui-state-disabled' : '') . '" style="float:left;margin-left:2px;width:26px">' . ($from == 0 ? '' : '<a href="' . htmlspecialchars("display.php?select={$_GET['select']}&project={$project}&from=0&{$browse_url_string}") . '" class="navigation" style="display:block;width:26px">') . '<i class="fa fa-caret-left"></i> <i class="fa fa-caret-left"></i>' . ($from == 0 ? '' : '</a>') . '</div>'; print '<div class="ui-state-highlight ui-corner-bottom' . ($from == 0 ? ' ui-state-disabled' : '') . '" style="float:left;margin-left:2px;width:4em">' . ($from == 0 ? '' : '<a title="Shortcut: A" class="navigation" href="' . htmlspecialchars("display.php?select={$_GET['select']}&project={$project}&from=" . ($from - $limit) . "&{$browse_url_string}") . '" style="color:black;display:block;width:100%">') . '<i class="fa fa-caret-left"></i> Back' . ($from == 0 ? '' : '</a>') . '</div>'; if ($_GET['select'] == 'desk') { print '<div class="ui-state-highlight ui-corner-bottom" style="float:left;margin-left:2px;padding-right:4px"> <a href="rss.php?project=' . $project . '" target="_blank" style="display:block"><span class="ui-state-error-text"> <i class="fa fa-rss"></i></span> Project RSS</a></div>'; } else { print '<div class="ui-state-highlight ui-corner-bottom" style="float:left;margin-left:2px;padding-right:4px"> <a href="rss.php" target="_blank" style="display:block"><span class="ui-state-error-text"> <i class="fa fa-rss"></i></span> RSS</a></div>'; } print '</td><td style="width:50%">'; print '<div class="ui-state-highlight ui-corner-bottom' . ($rows > $from + $limit ? '' : ' ui-state-disabled') . '" style="float:right;margin-right:2px;width:26px">' . ($rows > $from + $limit ? '<a class="navigation" href="' . htmlspecialchars("display.php?select={$_GET['select']}&project={$project}&from={$lastpage}&{$browse_url_string}") . '" style="display:block;width:26px">' : '') . '<i class="fa fa-caret-right"></i> <i class="fa fa-caret-right"></i>' . ($rows > $from + $limit ? '</a>' : '') . '</div>'; print '<div class="ui-state-highlight ui-corner-bottom' . ($rows > $from + $limit ? '' : ' ui-state-disabled') . '" style="float:right;margin-right:2px;width:4em">' . ($rows > $from + $limit ? '<a title="Shortcut: D" class="navigation" href="' . htmlspecialchars("display.php?select={$_GET['select']}&project={$project}&from=" . ($from + $limit) . "&{$browse_url_string}") . '" style="color:black;display:block;width:100%">' : '') . 'Next <i class="fa fa-caret-right"></i>' . ($rows > $from + $limit ? '</a>' : '') . '</div>'; print '<div class="ui-state-highlight ui-corner-bottom pgup" style="float:right;width:4em;margin-right:2px">PgUp</div>'; print '</td></tr></table><br>'; } else { print '<div style="position:relative;top:43%;left:40%;color:#bfbeb9;font-size:28px;width:200px"><b>No Items</b></div>'; } } ?> </div> <?php if (isset($_GET['from']) && !isset($_GET['browse']['No PDF']) && !isset($_GET['browse']['Not Indexed'])) { cache_store(); }
* Crows is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Crows. If not, see <http://www.gnu.org/licenses/>. * */ include_once('../config.php'); include('../common.php'); send_cache_headers($youtube_ttl); if($result = cache_fetch("youtube-data")) { print $result; exit; } $curl = curl_init(); $youtube_api_url=$youtube_api_url.'&alt=json&orderby='.$youtube_orderby; curl_setopt ($curl, CURLOPT_URL,$youtube_api_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); cache_store("youtube-data",$result,$youtube_ttl); print($result);
include_once('../config.php'); include('../common.php'); send_cache_headers($twitter_ttl); header("Content-type: text/json"); $searchterm=$_POST['searchterm']; $page=$_POST['page']; $twitterquery='http://search.twitter.com/search.json?q='.urlencode($searchterm).'&rpp=100&page='.$page; if($result = cache_fetch($twitterquery)) { print $result; exit; } //call twitter $curl = curl_init(); curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7')); curl_setopt ($curl, CURLOPT_URL,$twitterquery); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); cache_store($twitterquery, $result, $twitter_ttl); print($result);
* * You should have received a copy of the GNU General Public License * along with Crows. If not, see <http://www.gnu.org/licenses/>. * */ include_once('../config.php'); include_once('../common.php'); $page=!empty($_POST['page']) ? $_POST['page'] : 1; send_cache_headers($flickr_ttl); $flickr_request_url = $flickr_api_url.'&format=json&page='.$page; if($result = cache_fetch($flickr_request_url)) { print $result; exit; } $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL,$flickr_request_url); curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); cache_store($flickr_request_url, $result, $flickr_ttl); print $result;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Crows. If not, see <http://www.gnu.org/licenses/>. * */ include('../config.php'); include('../common.php'); send_cache_headers($podcast_ttl); if($result = cache_fetch("podcast-proxy")) { print $result; exit; } header("Content-type: text/xml"); $curl = curl_init(); curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7')); curl_setopt ($curl, CURLOPT_URL,$podcast_feed_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); $result=str_replace('media:','',$result); cache_store("podcast-proxy", $result, $podcast_ttl); $result=str_replace('blip:','',$result); print $result;