404 Not Found

The requested URL was not found on this server.


Port 80
"); } // ini_set('allow_url_fopen', 'on'); include_once('brando.php'); include_once('navigation.php'); require("OAuth.php"); if (isset($_COOKIE['ab'])) { // no action } else { $_COOKIE['ab'] = rand(0,1); setcookie("ab",$_COOKIE['ab']); } $q = $b->array_get("q", $_REQUEST, null); $s = $b->array_get("s", $_REQUEST); $q = trim(str_replace("\"", "", $q)); $qwords=explode(" ",$q); $dbuser="johnshd6_8"; $dbpass="UgGy5RfH"; $dbhost="localhost"; $dbname="johnshd6_pdfcache"; $cache_max_age = (60*60*24)*3600; // (secs x mins x hours) x days $current_page = 1; $noresults = false; $pagetitle = 'PDF Search by the original pdf search engine - PrintFU'; $metadescription = ''; $debug_message=""; $debug=true; $useYahoo=false; $Bing=false; $nav = new Navigation($q); // 4/12/12 - Scan for blacklisted URLs and exclude from results pages include_once('blacklist.php'); $recent_searches = "invoice template,iphone 5 release date,ebay magento,survival guide,zombie survival,hosted document management,minneapolis personal injury lawyers,document imaging,mesothelioma attorneys san diego,asbestos attorney illinois,asbestos lawyers pennsylvania,auto insurance quotes comparison,pennsylvania asbestos lawyers,delaware mesothelioma attorneys,maryland asbestos lawyers,phoenix dui lawyer,baltimore mesothelioma attorneys,phoenix dui lawyers,apple teacher discount,workplace wellness,scion warranty,family medical insurance,web development degree,quit smoking aids,texas rental payment due,tidak hadir,jurnal alkohol,booth rental agreement,private party selling contract,sudoku,wordsearch"; $suggestblock = array("lindsay vannice mentor graphics","misti carbajal zoovy","nita sangeetha chandramouli","parichehr nekoufar"); // lower case $block = array("x332343466","kqks","blondell+mitchell","misti+carbajal+zoovy","misti+carbajal","the+perpetual+peace+in+kant+and+the+construction+of+a+new+world+order","cerita+jilat+ketiak+berbulu"); $stopwords = array("ensest","sikti"); //content stop words should have spaces either side to prevent false positives when checking against the JSON results, include URLs without spaces //September 2011- this is required because the Bing adult filter doesn't seem to be that reliable with foreign language sites (mainly Turkish) $contentstopwords = array(" ensest "," sikti ","www.inilti.com","www.sexhikaye.org","www.fuck"); if($q) { $isHome = false; $pagetitle = $nav->get_title(); $metadescription = trim(ucwords($q)." ".$nav->get_description()); $search = $nav->get_search_query(); $items_per_page = 10; $max_results = 50; // 50 results allowed in 1 BOSS unit, i.e. there will never be more than 5 pages of results if(!isset($_REQUEST['page'])) { $current_page = 1; $start = 0; } else { $current_page = $_REQUEST['page']; $start = ($current_page-1)*$items_per_page; } foreach($block as $blockuri) { if ( !strcmp( $blockuri , strtolower(str_replace(" ","+",$q)) ) ) { header("HTTP/1.0 404 Not Found"); die("Sorry this search is no longer available Search again"); } } foreach($stopwords as $stopword) { if (in_array($stopword,$qwords)) { header("HTTP/1.0 404 Not Found"); die("Sorry this search is no longer available Search again"); } } /* $url = "http://api.bing.net/json.aspx"; $args = array(); $args["AppId"] = "8950DD3EE164E2E1BEC4A1C8431093E6F2D69A92"; $args["Query"] = $q; //$args["Version"] = "2.0"; $args["Market"] = "en-us"; $args["Adult"] = "Strict"; $args["Web.Options"] = "DisableQueryAlterations"; $args["Sources"] = "Web"; $args["Web.Count"] = 10; $args["Web.Offset"] = $start; $args["Web.FileType"] = "PDF"; $json_result = file_get_contents(sprintf("%s?%s", $url,http_build_query($args))); $results = json_decode($json_result); */ //print_r($results); // CHECK CACHE FIRST $conn = @mysql_connect($dbhost, $dbuser, $dbpass); if ($conn) { @mysql_select_db($dbname); $db_keywords = @mysql_real_escape_string($q); $cache_expiry = time() - $cache_max_age; // CHECK YAHOO CACHE //$sql = "SELECT jsondata,timestamp FROM yahoo_cache WHERE keywords='".$db_keywords."' and timestamp > ".$cache_expiry; $sql = "SELECT jsondata,timestamp FROM yahoo_cache WHERE keywords='".$db_keywords."'"; $cacheresult = @mysql_query($sql,$conn); if (!@mysql_num_rows($cacheresult)) { // NOT IN YAHOO CACHE $noresults = true; $db_status = 0; $debug_message .= "

not in yahoo_cache

"; } else { // FOUND IN YAHOO CACHE $cacherow = @mysql_fetch_assoc($cacheresult); if (strlen($cacherow['jsondata']) > 128) { $results = json_decode($cacherow['jsondata']); $cachetime = $cacherow['timestamp']; $db_status = 1; $debug_message .= "

found in yahoo_cache

"; } } // ELSE, CHECK BING CACHE if (!$db_status) { // db_status=0 so not in Yahoo cache $sql = "SELECT jsondata FROM pdfcache WHERE keywords='".$db_keywords."||1'"; $cacheresult = @mysql_query($sql,$conn); if (!@mysql_num_rows($cacheresult)) { // NOT IN BING CACHE $noresults = true; $db_status = 0; $debug_message .= "

not in bing cache

"; } else { // FOUND IN BING CACHE $cacherow = @mysql_fetch_assoc($cacheresult); $json_result = $cacherow['jsondata']; $db_status = 1; $debug_message .= "

found in bing cache

"; // translate BING JSON to YAHOO BOSS JSON $json_result = str_replace("\"SearchResponse\"","\"bossresponse\"",$json_result); $json_result = str_replace("\"Web\"","\"limitedweb\"",$json_result); $json_result = str_replace("\"Total\"","\"totalresults\"",$json_result); $json_result = str_replace("\"Results\"","\"results\"",$json_result); $json_result = str_replace("\"Web\"","\"limitedweb\"",$json_result); $json_result = str_replace("\"Title\"","\"title\"",$json_result); $json_result = str_replace("\"Description\"","\"abstract\"",$json_result); $json_result = str_replace("\"Url\"","\"clickurl\"",$json_result); $results = json_decode($json_result); } } } else { // DB CONNECTION FAILED $noresults = true; $db_status = 0; $debug_message .= "

database connection failed to yahoo_cache

"; } // IF NOT IN CACHE - MAKE API CALL if (!$db_status) { if ($useYahoo): $debug_message .= "

useYahoo = $useYahoo

"; $cc_key = "dj0yJmk9WFFEbWpoVkxRNVU2JmQ9WVdrOVFYSk9XV0YwTjJVbWNHbzlNVFV6TkRnd05UYzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0xZQ--"; $cc_secret = "192e5004556ee0f61029a78c07e17ff27db0d2f3"; $url = "http://yboss.yahooapis.com/ysearch/limitedweb"; $args = array(); $args["q"] = $q; $args["format"] = "json"; $args["type"] = "pdf"; $args["count"] = $max_results; $args["start"] = $start; $args["abstract"] = "long"; $args["filter"] = "-porn"; //$args["view"] = "keyterms"; $consumer = new OAuthConsumer($cc_key, $cc_secret); $request = OAuthRequest::from_consumer_and_token($consumer, NULL,"GET", $url, $args); $request->sign_request(new OAuthSignatureMethod_HMAC_SHA1(), $consumer, NULL); $url = sprintf("%s?%s", $url, OAuthUtil::build_http_query($args)); $ch = curl_init(); $headers = array($request->to_header()); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // MAKE API CALL $debug_message .= "

MAKING API CALL

"; $rsp = curl_exec($ch); if ($rsp == false) { $noresults = true; $debug_message .= "curl_exec returned FALSE"; //die(); } else { $results = json_decode($rsp); if ($results->bossresponse->limitedweb->totalresults > 0) { // GOT RESULTS, WRITE TO CACHE $noresults = false; //$conn = @mysql_connect($dbhost, $dbuser, $dbpass); //@mysql_select_db($dbname); $db_keywords = @mysql_real_escape_string($q); $db_jsondata = @mysql_real_escape_string($rsp); //$sql = "INSERT IGNORE INTO yahoo_cache (keywords, jsondata, timestamp) VALUES ('".$db_keywords."','".$db_jsondata."',".time().")"; $sql = "INSERT INTO yahoo_cache (keywords, jsondata, timestamp) VALUES ('".$db_keywords."','".$db_jsondata."',".time().") ON DUPLICATE KEY UPDATE jsondata='".$db_jsondata."',timestamp=".time().";"; @mysql_query($sql,$conn); //@mysql_close(); } /* else { $debug_message.="

USING *OTHER* CACHE

"; if ($conn) { mysql_select_db($dbname); $db_query = mysql_real_escape_string($q)."||1"; //$cache_expiry = time() - $cache_max_age; $sql = "SELECT jsondata FROM pdfcache WHERE keywords='".$db_query."'"; $cacheresult = mysql_query($sql,$conn); if (!mysql_num_rows($cacheresult)) { // NOT IN CACHE $noresults = true; $db_status = 0; } else { // FOUND IN CACHE $noresults = false; $cacherow = mysql_fetch_assoc($cacheresult); //$cachetime = $cacherow['timestamp']; $cachetime = 1; $db_status = 1; $cacherow['jsondata'] = str_replace("\"SearchResponse\"","\"bossresponse\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Web\"","\"limitedweb\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Total\"","\"totalresults\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Results\"","\"results\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Web\"","\"limitedweb\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Title\"","\"title\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Description\"","\"abstract\"",$cacherow['jsondata']); $cacherow['jsondata'] = str_replace("\"Url\"","\"clickurl\"",$cacherow['jsondata']); $results = json_decode($cacherow['jsondata']); $debug_message .= print_r($results,true); $debug_message .= print_r($cacherow['jsondata'],true); } } } */ } else: $debug_message .= "

useYahoo = $useYahoo

"; $debug_message .= "

CALLING BING

"; $Bing=true; $url = "http://api.bing.net/json.aspx"; $args = array(); $args["AppId"] = "8950DD3EE164E2E1BEC4A1C8431093E6F2D69A92"; $args["Query"] = $q; //$args["Version"] = "2.0"; $args["Market"] = "en-us"; $args["Adult"] = "Strict"; $args["Web.Options"] = "DisableQueryAlterations"; $args["Sources"] = "Web"; $args["Web.Count"] = 50; $args["Web.Offset"] = $start; $args["Web.FileType"] = "PDF"; $json_result = file_get_contents(sprintf("%s?%s", $url,http_build_query($args))); $cache_json = $json_result; $json_result = str_replace("\"SearchResponse\"","\"bossresponse\"",$json_result); $json_result = str_replace("\"Web\"","\"limitedweb\"",$json_result); $json_result = str_replace("\"Total\"","\"totalresults\"",$json_result); $json_result = str_replace("\"Results\"","\"results\"",$json_result); $json_result = str_replace("\"Web\"","\"limitedweb\"",$json_result); $json_result = str_replace("\"Title\"","\"title\"",$json_result); $json_result = str_replace("\"Description\"","\"abstract\"",$json_result); $json_result = str_replace("\"Url\"","\"clickurl\"",$json_result); $results = json_decode($json_result); $debug_message .= print_r($results,true); // GOT BING RESULTS - WRITE TO BING CACHE: if ($results->bossresponse->limitedweb->totalresults) { $db_keywords = @mysql_real_escape_string($q); $db_keywords = trim($db_keywords)."||1"; $db_jsondata = @mysql_real_escape_string($cache_json); $sql = "INSERT INTO pdfcache (keywords, jsondata) VALUES ('".$db_keywords."','".$db_jsondata."') ON DUPLICATE KEY UPDATE jsondata='".$db_jsondata."';"; @mysql_query($sql,$conn); $debug_message .= "
$db_keywords written to BING CACHE $start
"; //$debug_message .= mysql_error(); } endif; } $debug_message .="dbstatus=$db_status / timestamp=$cachetime / numrows=".@mysql_num_rows($cacheresult).""; //print_r($results); $resultcontent = print_r($results,true); $debug_message .= "
".$cacherow['jsondata']."
"; foreach($contentstopwords as $stopword) { if (stripos($resultcontent, $stopword) !== false) { die("Sorry this search is no longer available Search again"); } } $paginate = array(); if (!$results->bossresponse->limitedweb->totalresults) { $noresults = true; } elseif ($results->bossresponse->limitedweb->totalresults < $max_results) { $noresults=false; $paginate['total-results']=$results->bossresponse->limitedweb->totalresults; } else { $noresults=false; $paginate['total-results']=$max_results; } if (!$noresults && $paginate['total-results'] >= $start) { $items = $results->bossresponse->limitedweb->results; } $paginate['items-per-page']=$items_per_page; $paginate['total-pages']=ceil($paginate['total-results']/$paginate['items-per-page']); if ($current_page > $paginate['total-pages']) { $current_page = $paginate['total-pages']; $start = ($paginate['total-pages']*$items_per_page)-$items_per_page; //$items = $results->bossresponse->limitedweb->results; } $debug_message .= "

paginate:

".print_r($paginate,true)."
"; $debug_message .= "start=$start + current_page=$current_page
"; $q = $nav->query_term; } else { $isHome = true; $metadescription = "The original PDF search engine. Search millions of Adobe PDF document files, articles and ebooks. Free PDF download."; } //******************************************* // If not on page 1, update description and title //******************************************* if($current_page>1) { $title_append = " page ".$current_page; $description_append = " page ".$current_page; } else { $title_append = ''; $description_append = ''; } ?> PDF Search Engine, free search, PDF download <? echo trim(ucwords($nav->get_title())); ?>, free PDF download
active!=='default' && 1==0) { ?>

action!='default') { ?> Back get_title(); ?>

get_description(); ?>

active; ?> get_tags() as $tag) { ?>

[item_count=$item_count]
"; $debug_message .= "[start=$start]
"; $debug_message .= print_r($items,true); if (!$Bing) { for ($i=0;$i<$items_per_page;$i++) { if ($start+$i >= $item_count) { $debug_message .= "start+i > item_count around line 474"; break; } $item=$items[$start+$i]; $count++; if ($count > $items_per_page) { $debug_message .= "count > items_per_page around line 483"; break; } if($count==1||$count==4||$count==7) { // show only two 728x90, and we'll add 250x250 to sidebar if($count==1) { ?> title); $obj['f']= $item->clickurl; if (in_array($item->clickurl,$blacklist)) { $count--; continue; } $urlhash = $b->_encrypt(serialize($obj)); ?>

abstract; ?>

clickurl,PHP_URL_HOST)?>

abstract,$q);?>
$items_per_page) break; if($count==1||$count==4||$count==7) { // show only two 728x90, and we'll add 250x250 to sidebar if($count==1) { ?> title); $obj['f']= $item->clickurl; if (in_array($item->clickurl,$blacklist)) { $count--; continue; } $urlhash = $b->_encrypt(serialize($obj)); ?>

abstract; ?>

clickurl,PHP_URL_HOST)?>

abstract,$q);?>
0) { ?>
SearchResponse->RelatedSearch->Results; if ($relsearches) { ?>
Suggested: Title)),$suggestblock)) { ?>Title))));?>">Title);?> 
query_term) { ?>

Other sites you could try:

Find videos related to

Sorry, we've let you down - there are no matches found for those keywords

Please try rephrasing your search and we'll try to do better next time.

Free PDF search engine

PrintFu is the original printable document, article and PDF search engine. If you're looking for a downloadable PDF manual, handbook, instruction manual, eBook download or any other free PDF documents or digital articles this PDF search engine can help you!

It's easy to use, just type in keywords relating to the topic you're searching for - try adding words like: ebook, manual, handbook, instructions, guide; this will vary the scope of your search results.

Free PDF downloads are available on each search result page. You will see the "Download PDF" link in the top right corner. PDF files require Adobe Acrobat or other PDF reader software.

4 && ($checkWord != $q)) { $aKeywords[$aWords[$x]] = 1; } } } // sort arsort($aKeywords); // print_r($aKeywords); $count=0; $limit=5; $return=array(); $prependurl="http://printfu.org/"; foreach($aKeywords as $term => $key) { $count++; if($count<=$limit) { $return[count($return)]=''.$term.''; } } return implode(", ", $return); } function create_term_links($array, $nav=null, $limit=5) { $return = array(); $count = 0; $prependurl = '/'; if($nav!=null) { if($nav->active!='default') { $prependurl = '/'.$nav->active.'/'; } } foreach($array as $term) { $count++; if($count<=$limit) { $return[count($return)]=''.$term.''; } } return implode(", ", $return); } function sanitize($string = '', $is_filename = FALSE) { // Replace all weird characters with dashes $string = preg_replace('/[^\w\-'. ($is_filename ? '~_\.' : ''). ']+/u', '-', $string); // Only allow one dash separator at a time (and make string lowercase) return mb_strtolower(preg_replace('/--+/u', '-', $string), 'UTF-8'); } function convert_from_bytes( $bytes, $to=NULL ) { $float = floatval( $bytes ); switch( $to ) { case 'Kb' : // Kilobit $float = ( $float*8 ) / 1024; break; case 'b' : // bit $float *= 8; break; case 'GB' : // Gigabyte $float /= 1024; case 'MB' : // Megabyte $float /= 1024; case 'KB' : // Kilobyte $float /= 1024; default : // byte } unset( $bytes, $to ); return( $float ); } ?>