* You may obtain a copy of the License at * * http://www.gnu.org/licenses/gpl-3.0.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ defined('INDEX_CALL') or die('You cannot access this page directly.'); $td = new TripThru(); //Check if user already logged in if (!$td->Account_checkLogin()) { header('Location:' . $td->getHomeUrl()); exit; } ?> <style> #trip-info { margin-top: 10px; margin-bottom: 10px; text-indent: 15px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
break; case 'getLocation': $td = new TDispatch(); $location = isset($_POST['location']) ? $_POST['location'] : ''; $limit = (int) (isset($_POST['limit']) ? $_POST['limit'] : 10); $pickup = isset($_POST['pickup']) && $_POST['pickup'] === 'pickup' ? $_POST['pickup'] : null; $out = $td->Location_search($location, $limit, $pickup); if ($out) { header('Content-type: application/json'); echo json_encode($out); exit; } break; case 'getTrack': $td = new TripThru(); if ($td->Account_checkLogin()) { $bookingPk = isset($_POST['bookingPk']) ? $_POST['bookingPk'] : ''; $partnerId = isset($_POST['partnerId']) ? $_POST['partnerId'] : ''; $out = $td->Get_trip_status($bookingPk, $partnerId); if ($out) { header('Content-type: application/json'); echo json_encode($out); exit; } } break; case 'getBooking': if ($td->Account_checkLogin()) { $bookingPk = isset($_POST['bookingPk']) ? $_POST['bookingPk'] : ''; //$bookingPk = '51c0e268c8bf070517a11874'; $out = $td->Bookings_get($bookingPk);