// S2S // get starting point //$start_marker = getMarker($sid); // get ending point //$end_marker = getMarker($did); // log if ($logging) { logS2SQuery($sid, $did); } // testing new function echo "***testing new algorithm<br/>\n"; //$start_station = retrieveStation($start_marker->id); //$end_station = retrieveStation($end_marker->id); $start_station = retrieveStation($sid); $end_station = retrieveStation($did); $pathArray = algorithm($start_station, $end_station); $path = $pathArray[0]; echo "*** end testing new algorithm<br/>\n"; // find the path //$path = findS2SPath($start_marker, $end_marker); } else { if ($type == "location") { // location if ($sa != "") { $loc = $sa; } else { $loc = $da; } // log if ($logging) { logLocationQuery($loc);
die("Invalid username or password"); } break; case 'get_user': $User_num = $_REQUEST['u_num']; $write = get_user($User_num); $result = true; break; case 'get_schedule': $user_num = $_REQUEST['u_num']; $start = $_REQUEST['start']; $end = $_REQUEST['end']; $write = fill_out_sch($user_num, $start, $end); $result = true; break; case 'update_sch': $user_num = $_REQUEST['u_num']; algorithm($user_num); $result = true; break; case 'sign_out': $user_num = $_REQUEST['u_num']; sign_out($user_num); $result = true; break; } if ($result) { echo $write; } else { die("error"); }