$judul = htmlspecialchars(BannedKeyword(hilangkan_karakter($item->title))); $konten = htmlspecialchars(BannedKeyword(hilangkan_karakter($item->description))); echo '<p>' . $judul . ' ' . $keywords . ' ' . $konten . '</p>'; } } else { } ?> <input type="hidden" name="IL_IN_TAG" value="1"/> <?php $keywords = get_search_query(); $source = 'http://www.bing.com/search?q=' . $keywords . '+filetype%3Apdf&count=5&format=rss'; $ch = curl_init($source); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); $doc = simplexml_load_file($data); $jadi = $doc->channel->item; if (!empty($jadi)) { foreach ($jadi as $item) { $judul = htmlspecialchars(BannedKeyword(hilangkan_karakter($item->title))); $konten = htmlspecialchars(BannedKeyword(hilangkan_karakter($item->description))); $link = $item->link; echo '<h3>' . $judul . '</h3>'; echo '<p>' . $judul . ' ' . $keywords . ' ' . $konten . '</p>'; echo '<div class="postmeta"><a title="Download this pdf file" href="' . $link . '">Download this pdf file</a></div>'; } } else { } ?> </div><!-- end of .post -->
include_once ABSPATH . WPINC . '/feed.php'; $termstring = $s; $dilarang = array("+-amazon"); $rss = fetch_feed('http://www.bing.com/search?q=' . urlencode($termstring) . '+"php"&go=&form=QBLH&filt=all&format=rss'); if (!is_wp_error($rss)) { // Checks that the object is created correctly $maxitems = $rss->get_item_quantity(3); $rss_items = $rss->get_items(0, $maxitems); } if ($maxitems == 0) { echo ''; } else { // Loop through each feed item and display each item as a hyperlink. foreach ($rss_items as $item) { $title = '' . htmlspecialchars(BannedKeyword(hilangkan_karakter($item->get_title()))) . ''; $title_arr = explode(" ", $title); $first_word = $title_arr[0]; $post_slug = create_slug($title); $permalinks = get_bloginfo("url") . "/" . strtolower($first_word) . "/" . $post_slug . ".pdf"; echo htmlspecialchars(BannedKeyword(hilangkan_karakter($item->get_title()))); ?> <?php echo strtolower(htmlspecialchars(BannedKeyword(hilangkan_karakter($item->get_content())))); ?> . <?php } } ?> </p> </div>
} if ($paged >= 2 || $page >= 2) { echo ' - ' . sprintf(__('Part %s', 'NiceDroid'), max($paged, $page)); } ?> </title> <?php wp_head(); if (is_404()) { $kata = urlencode(CleanFileNameTitle($title)); $kata .= ""; $googlerss = simplexml_load_file('http://www.bing.com/search?q=' . $kata . '&go=&form=QBLH&filt=all&format=rss&count=1'); foreach ($googlerss->channel->item as $itemrss) { $title = '' . htmlspecialchars(BannedKeyword(hilangkan_karakter($itemrss->title))) . ''; $title_arr = explode(" ", $title); echo '<meta name="description" content="' . CleanFileNameTitle($title) . ' ' . ucwords(strtolower(BannedKeyword(hilangkan_karakter($itemrss->title)))) . ' ' . strtolower(BannedKeyword(hilangkan_karakter($itemrss->description))) . ' ' . ucwords(strtolower(BannedKeyword(hilangkan_karakter($itemrss->title)))) . '">' . "\n"; } ?> <meta name="keywords" content="<?php echo CleanFileNameTitle($title); ?> "> <?php } if (is_home() || is_archive()) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?> /default.css" type="text/css" media="all" /> <?php
$kata .= "+filetype%3Apdf"; $googlerss = simplexml_load_file('http://www.bing.com/search?q=' . $kata . '+filetype:php&go=&form=QBLH&filt=all&format=rss'); foreach ($googlerss->channel->item as $itemrss) { $title = '' . htmlspecialchars(BannedKeyword(hilangkan_karakter($itemrss->title))) . ''; $title_arr = explode(" ", $title); $first_word = "ebook"; $post_slug = ubah_tanda($title); $permalinks = get_bloginfo("url") . "/" . $post_slug . ".pdf"; $coba = rand(1, 999); echo '<div id="title">' . ucwords(strtolower(BannedKeyword(hilangkan_karakter($itemrss->title)))) . '</div>' . "\n"; echo '<p>' . strtolower(BannedKeyword(hilangkan_karakter($itemrss->title))) . ' ' . strtolower(BannedKeyword(hilangkan_karakter($itemrss->description))) . ' ' . strtolower(BannedKeyword(hilangkan_karakter(get_search_query()))) . ' ' . ucwords(strtolower(BannedKeyword(hilangkan_karakter($itemrss->title)))) . '.</p><div class="clear"></div>' . "\n"; echo '<div class="GoogleView" id="gv' . $coba . '"></div>' . "\n"; echo '<div class="download"><a href="javascript:void(null);" onclick="if ($('#gv' . $coba . '').html()=='') $('#gv' . $coba . '').html('<iframe rel="nofollow" style="width:100%; height:480px;" src="http://docs.google.com/gview?url=' . $itemrss->link . '&embedded=true"></iframe>'); $('#gv' . $coba . '').slideToggle('fast'); return false;" title="Read ' . strtolower(ucwords(htmlspecialchars(BannedKeyword(hilangkan_karakter($itemrss->title))))) . '"><img src="http://www.cizwin.com/wp-content/uploads/2013/01/ok.jpg" title="title">Read ' . strtolower(ucwords(htmlspecialchars(BannedKeyword(hilangkan_karakter($itemrss->title))))) . '</a></div><div class="clear"></div>'; } if (empty($itemrss)) { echo '<p>Find <b>' . htmlspecialchars(BannedKeyword(hilangkan_karakter(get_search_query()))) . '.</b> from the list below. Read and download the <b><u>' . htmlspecialchars(BannedKeyword(hilangkan_karakter(get_search_query()))) . '</u></b> for free.</p>'; } ?> <br> <?php if (function_exists('stt_random_terms')) { echo stt_random_terms(20); } ?> , <?php if (function_exists('stt_recent_terms')) { echo stt_recent_terms(7); } ?> </div><!-- end #main --> <?php