echo "da: {$da}<br/>"; } $ends = getLocations2($da); if ($debug) { echo $ends[0]->printInfo(); } $end_location = $ends[0]; $end_stations = findNearestStations2($end_location); $start_marker = getMarker($sid); if ($debug) { echo $start_marker->printInfo(); } $path = findS2APath($start_marker, $end_stations, $end_location); } else { if ($type == "a2s") { $sa = fixSearchString($sa); $sa = validateSearchString($sa, $city, $state); $starts = getLocations2($sa); $start_location = $starts[0]; $start_stations = findNearestStations2($start_location); if ($debug) { echo $end_location->printInfo(); } $end_marker = getMarker($did); if ($debug) { echo $end_marker->printInfo(); } $path = findA2SPath($start_location, $start_stations, $end_marker); } else { if ($type == "dir_alt") { /*
echo "Alpha Version (Unreleased) " . $head_title . $slogan; ?> </title> </head> <body> <?php // set the type $type = $_GET['type']; if ($debug) { echo "type = " . $type . "<br/>"; } // this file does the search functions include $oop . '/search.php'; if (count($locations) == 1) { if ($locations[0]->name == null && $_GET['n'] != null) { $locations[0]->name = fixSearchString($_GET['n']); } } //$affiliateDiv = new Div(null, "noselect", "font-size:7pt;color:#CCCCCC;", "(not affiliated with Google)"); //$poweredByDiv->addDataElement($affiliateDiv); echo $linksDiv->toString(); ?> <table id="header"> <tr> <?php $logoDiv = new Div(null, "logo", new Link($link, new Image("logo", "images/{$logo}", "Go To {$link}", "55", "150"))); $headerLogoTD = new Cell("header_logo", null, null, $logoDiv); $sloganDiv = new Div("slogan", null, $slogan); $headerLogoTD->addData($sloganDiv); echo $headerLogoTD->toString(); ?>
if ($logging) { logS2SQuery($_GET['start'], $_GET['end']); } // find the path $path = findS2SPath($start_marker, $end_marker); } } } if ($type == 'location') { $loc = $_GET['l']; if ($location_string != null || $location_string != "") { $loc = $location_string; } // log if ($logging) { logLocationQuery($loc); } if ($debug) { echo "location={$loc}<br/>"; } $loc = fixSearchString($loc); // check for new york and ny $fix_loc = checkString($loc, $city); $fix_loc = checkString($fix_loc, $state); $locations = getLocations2($fix_loc); if (count($locations) == 1) { // grab stations $stations = findNearestStations2($locations[0]); } } echo "<!-- type is /" . $type . "/ -->\n";