<?php require_once "config.php"; header('Content-type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html> <head> <?php require_once "css.php"; ?> </head> <body> <?php require_once "GPlaceAPI.php"; $place = new GPlaceAPI(); $lat = $_POST['lat']; $lng = $_POST['lng']; $userId = $_POST['user_id']; if ($lat == "") { die("Your device does not support GPS, or you did not allow application using location information"); } if (!array_key_exists('search_key', $_POST)) { $searchResult = $place->searchBusiness("", $lat, $lng); } else { $searchResult = $place->searchBusiness($_POST['search_key'], $lat, $lng); } $listResult = $searchResult["results"]; ?> <form action="search_result.php" method="post"> <input type="hidden" name="lat" id="lat" value="<?php
<?php require_once "config.php"; require_once "GPlaceAPI.php"; $place = new GPlaceAPI(); if (isset($_COOKIE['fbs_222936987739560'])) { $authCode = $_COOKIE['fbs_222936987739560']; $pieces = explode("&", $authCode); $access_token = ""; //access_token=222936987739560|2.AQAFPph1x4YEMHGJ.3600.1309590000.1-703078927|7mHGzDUlGA-laxGJCCivYLRz5O8& if (isset($pieces[0])) { $tmp = explode("=", $pieces[0]); if (isset($tmp[1])) { $access_token = $tmp[1]; } } } if (isset($_COOKIE['access_token'])) { $access_token = $_COOKIE['access_token']; } header('Content-type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html> <head> <?php require_once "css.php"; ?> <!-- Included online JQuery library and to avoid local copy, to use its AJAX functionality --> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript">