Comic Shop Locator Service

]*?class="Result">(.*?)#s',$file,$matches, PREG_SET_ORDER); print '

You searched for stores near '.$city.', '.$country.'...

'; print ''; #} elseif ($letter = $_POST['cityletter']) { # $CountryName = $_POST['PassedCountryName']; # $CountryID = $_POST['PassedCountryID']; # $StateID = $_POST['PassedStateID']; # $file = file_post('/csls_global.asp','PassedCountryName='.urlencode($CountryName).'&PassedCountryID='.urlencode($CountryID).'&ShowCountrySelector=NO&state='.urlencode($StateID)); # preg_match('##',$file,$matches); # $StateName = $matches[1]; # preg_match_all('##',$file,$matches,PREG_SET_ORDER); # $select = array(); # foreach ($matches as $match) { # if (substr($match[1],0,1)==$letter) { # $select[] = $match[0]; # } # } # sort($select); /* $select = ''; ?>
Country
Region
City
#',$file,$matches); $StateName = $matches[1]; preg_match_all('#()#',$file,$matches,PREG_SET_ORDER); $select = array(); foreach ($matches as $match) { $select[] = $match[1]; } sort($select); if (sizeof($select)>100) { $letts = array(); foreach ($select as $opt) { $sss = substr($opt,15,1); if (!isset($letts[$sss])) $letts[$sss] = 1; } $select = array(); foreach ($letts as $lett => $dummy) { $select[] = ''; } $select = ''; ?>
Country
Region
City
'.join('',$select).''; ?>
Country
Region
City
(.*?)#',$file,$matches,PREG_SET_ORDER); $select = ''; ?>
Country
Region

Search for comic book or specialty shop retailers in a few non-American countries round the world.

\n"; return ''; } else { if ($post) { $type = 'POST'; $body = $post; $header = "Content-Type: application/x-www-form-urlencoded\r\nContent-Length: ".strlen($body)."\r\n\r\n".$body; } else { $type = 'GET'; $header = "\r\n"; } $header = "$type $uri HTTP/1.0\r\nHost: www.comicshoplocator.com\r\n".$header; fputs ($fp, $header); $out = ''; while (!feof($fp)) { $out .= fgets ($fp,128); } fclose ($fp); } preg_match('/^(.*?)\r\n\r\n/s',$out,$matches); $headers = $matches[1]; if (preg_match('/Location: (.*)/',$headers,$matches)) { $out = file_post(trim($matches[1])); } else { $out = preg_replace('/^(.*?)\r\n\r\n/s','',$out); } return $out; } ?>