{ global $siteEngineName; global $kUser_IP; global $kDB_host; global $kDB_user; global $kDB_name; global $kDB_pass; global $databaseConnection; try { if($databaseConnection) { $sqlInsert=$databaseConnection->prepare("INSERT INTO search_terms (term, engine, ip) VALUES (?, ? ,?)"); $sqlInsert->execute(array($searchTerm, $siteEngineName, $kUser_IP)); } } catch (Exception $ex) { echo $ex->getMessage(); } } // // Send email... Hopefully. :) // function mailSend($to, $subject, $message) { global $siteContact; $header = "From: Search All Contact Bot <$siteContact> \r\n"; $header .= "Reply-To: Search All Contact Bot <$siteContact> \r\n"; $header .= "X-Mailer: PHP " . phpversion() . " \r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; mail($to,$subject,$message,$header); } // // Send a Captcha ID to Google's reCaptcha v2 Server, Get a response, evaluate that response, then return the evaulated response... // function reCaptchaCheck($captcha) { global $reCaptchaSecretKey; $googleReCaptchaURL = 'https://www.google.com/recaptcha/api/siteverify?secret=' . urlencode($reCaptchaSecretKey) . '&response=' . urlencode($captcha); $googleReCaptchaResult = getRemoteFile($googleReCaptchaURL); $googleResponseKeys = json_decode($googleReCaptchaResult,true); if($googleResponseKeys["success"]) { $return = True; } else { $return = False; } return $return; } // // Count some database records... // function showStats($dateRange) { global $kDB_host; global $kDB_user; global $kDB_name; global $kDB_pass; global $databaseConnection; if ($dateRange == "Total") $sqlStatement = "SELECT COUNT(id) AS 'totalsearches' FROM search_terms"; if ($dateRange == "Yesterday") $sqlStatement = "SELECT COUNT(*) AS 'totalsearches' FROM search_terms WHERE (datestamp >= (CURDATE() - INTERVAL 1 DAY) AND datestamp < CURDATE())"; if ($dateRange == "Today") $sqlStatement = "SELECT COUNT(*) AS 'totalsearches' FROM search_terms WHERE (datestamp >= CURDATE() AND datestamp < CURDATE() + INTERVAL 1 DAY)"; try { if($databaseConnection) { $sqlSelect=$databaseConnection->prepare($sqlStatement); $sqlSelect->execute(); $result = $sqlSelect->fetchAll(); if($result) { return number_format($result[0]["totalsearches"]); } else { echo "No Result Found"; } } else { echo "Database connection can not be established..."; } } catch (Exception $ex) { echo $ex->getMessage(); } } ?> Search All Junk | Home | Searching For: Jim Waitkus

Search All Junk

Ever wanted to search multiple classifieds sites at once?

Now searching Craigslist, Recycler, Penny Saver, Oodle and Facebook Marketplace
 
 
 
 
Search Jim Waitkus on Amazon