<?phprequire('ebay.php');require('typos.php');require('admin.php');/*if (isset($_POST['submit'])) { $terms = generateTypos($_POST['query']); $url = ebayMakeAffiliateLink($cjpid, $terms, $_POST['tld']); header ('Location: '.$url.'"');}*///require_once('header.php');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>eBayDig</title><link rel="stylesheet" type="text/css"href="layout.css" /><link rel="stylesheet" type="text/css"href="style.css" /><script type="text/javascript"> function openpopup(popurl){ var winpops=window.open(popurl,"","toolbar,location,status,scrollbars,menubar,resizable") }</script><LINK REV="made" href="mailto:contact@ebaydig.com"><META NAME="keywords" CONTENT="ebay, typos, tricks, cheats, hacks, auction, bloopers, misspelled, savings, shopping, discounts, save, free"><META NAME="description" CONTENT="Free tool to dig up deals by searching ebay for misspelled items that don't appear in traditional searches. Don't buy from ebay without it!"><META NAME="author" CONTENT="Icecraft Internet Services"><META NAME="ROBOTS" CONTENT="ALL"></head><body><?phpif (isset($_POST['submit'])) { // support for "-term" notation /* BROKEN! eBay urls are funny qqthings with poor documentation. play around with it if you like, but not a big problem really. */ // sorts queries to add support for "-term" notation. see sorting_flowchart.png $queries = explode(" ", $_POST['query']); foreach ($queries as $query) { if ($query{0} == "-") { $exceptions[] = $query; } else { $inclusions[] = generateTypos($query, $depth); } } // convert multi-dimension array into 1d array foreach ($inclusions as $inclusion) { foreach ($inclusion as $term) { $terms[] = $term; } }/* all this exception handling stuff needs to be executed conditionally (a -term must be used) // appends exceptions to list of search terms foreach ($exceptions as $exception) { // convert "-" to ascii code for urlization $terms[] = $exception; }*/ if (isset($_POST['includeCorrect'])) { $terms[] = $_POST['query']; } $url = ebayMakeAffiliateLink($cjpid, $terms, $_POST['tld']); if (isset($_POST['noAffiliate'])) { $url = ebayMakeLink($terms, $_POST['tld']); } // header ('Location: '.$url.'"'); echo (' <script type="text/javascript"> openpopup("'.$url.'") </script> ');}?><!-- header div --><div id="hdr"><br /><br /><a href="http://www.ebaydig.com/index.php"><img src="logo.png" alt="eBayDig"border=0></a></div><!-- center column --><div id="c-block"><div id="c-col"><br /><br /><form name="search" action="index.php" method="post"><input name="query" type="text" style="width:216px;" /><select name="tld" id="tld" style="height:24px;width:124px;"> <option selected="selected" value="com">eBay.com</option> <option value="co.uk">eBay.co.uk</option> <option value="com.au">eBay.com.au</option> <option value="ca">eBay.ca</option> <option value="fr">eBay.fr</option> <option value="de">eBay.de</option> <option value="nl">eBay.nl</option> <option value="be">eBay.be</option> <option value="it">eBay.it</option> <option value="es">eBay.es</option> <option value="in">eBay.in</option> <option value="ie">eBay.ie</option></select><input type="submit" name="submit" value="Search eBay" style="width:110px;" /><br /><?phpif ($a != 0) { /*$a is the show advanced options boolean */ echo ('<p><a href="index.php?a=0">[Hide Advanced Options]</a></p> <input type="checkbox" name="includeCorrect" /><label>Include correct spelling</label> <br /> <!-- <input type="checkbox" name="onlyBIN" /><label>Only search \'Buy It Now\' auctions</label> <br /> <input type="checkbox" name="onlyPaypal" /><label>Only search auctions that can be paid for with PayPal</label> <br /> --> <input type="checkbox" name="noAffiliate" /><label>Use non-affiliate links</label> <br /> <p>Remember, you can do optimizations after searching. Try eBays Advanced Search feature.</p> </br /> ');}else { echo ('<p><a href="index.php?a=1">[Show Advanced Options]</a></p>');}if (isset($_POST['submit'])) { echo ('Not seeing eBay popup? <a href="'.$url.'" >Click here to find misspellings of \''.$_POST['query'].'\' on eBay.'.$tld.'.</a>');}?></form><br /><div style="text-align: left;"> Every day hundreds of items are up forauction on eBay with typos and misspellings in their descriptions. These important misspelled keywords (jewlery for example) prevent the item from appearing when a user searches for the correct spelling, jewelry.This results in dramatically reduced visibility, which translates to savings for you when you use eBayDig for your online shopping. eBayDig saves you money by automatically generating common misspellings and adding them to your search query, helping you find those hidden iPods, laptops, and "Godfother" DVDs with no bids on them just waiting for your purchase! Give it a try.</div><br /><br /><?php include_once('affinfo.php'); /*advertisements*/ ?></div><!-- end of center column --></div><!-- end c-block --><div id="ftr" align="center"> <?php echo ("$copyright"); ?><br /><a href="http://getfirefox.com/"title="Get Firefox - The Browser, Reloaded."><imgsrc="http://www.mozilla.org/products/firefox/buttons/firefox_80x15.png"width="80" height="15" border="0" alt="Get Firefox"></a></div><!-- left column --><div id="lh-col"><br /><p align="center"></p><br /><br /></div><!-- end of left column --><!-- right column --><div id="rh-col"><br /><p align="center"></p></div><!-- end of right column --></body></html>