function draw($points) { $xy = getXY($points); $map = getMap($xy['x'], $xy['y']); $set = getSet($points, $xy['x']); create($map, $set, $xy['x']); }
function Run($_c) { $objectClass = getMap($_c); if (!$objectClass) { echo '{"statusCode":404,"message":"您的请求错误","result":null}'; exit; } return new $objectClass(); }
public function render($latitude, $longitude, $zoom, $size, $type) { $mapUrl = getMap()->staticMap($latitude, $longitude, $zoom, $size, $type, false); header('Content-type: image/png'); header(sprintf('Last-Modified: %s GMT', gmdate('D, d M Y H:i:s', strtotime('-1 year')))); header(sprintf('Etag: %s', md5($mapUrl))); $ch = curl_init($mapUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // don't complain about SSL curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); echo curl_exec($ch); curl_close($ch); }
} else { $buffer = str_replace('{shopexdump_create_specification}', '', $buffer); } if (!mysql_query($buffer, $link)) { echo mysql_error($link) . "<br>"; } usleep(5); $i++; } } fclose($fp); rptout("导入数据文件" . $bakfile . "成功!\n"); $fileid++; } rptout("同步订单中的商品id....\n<hr>"); $aMap = getMap(); if ($syncnum = count($aMap) > 0) { //$aMap 是$old_gid=>$new_gid foreach ($aMap as $key => $value) { rptout("同步 {$value} 为 {$key}"); $sql .= "update {$GLOBALS['_tbpre']}mall_items set gid='" . $value . "' where gid='" . $key . "';"; } mysql_query($sql); } else { rptout("没有需要同步的商品"); } mysql_close($link); rptout("<hr><font color=green>全部工作结束</font>"); } function rptout($str) {
(at your option) any later version. "Podes reiseplanlegger" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with "Podes reiseplanlegger". If not, see <http://www.gnu.org/licenses/>. Source code available from: http://github.com/pode/reiseplanlegger/ */ include_once '../config.php'; if (!$config['modules']['map']['enabled']) { exit; } echo "\t<div id=\"map\"></div>\n"; getMap($_GET['lat'], $_GET['lon'], "280", "280", "12"); /* funksjon som skriver kart fra Google Maps. Parametere: $lat og $lon angir lengde- og breddegrad kartet skal vise. $width og $height forteller hva dimensjonene på kartet skal være. $zoom angir hvilket zoom-nivå kartet skal ha i utgangspunktet */ function getMap($lat, $lon, $width, $height, $zoom) { echo "\t\t<script type=\"text/javascript\">\r\n\t\t\tmap({$lat},{$lon},{$width},{$height},{$zoom});\t\r\n\t\t</script>\n"; ?> <label for="informasjon">Informasjon</label> <input id="informasjon" type="checkbox" onclick="switchLayer(this.checked,wiki)" /> <label for="bilder">Bilder</label>
<div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#detailsaccordion" id="collapsetafheading" href="#collapsetaf" onClick="loadTAF('<?php echo $aptICAO; ?> ')"> TAF </a> </div> <div id="collapsetaf" class="accordion-body collapse"> <div class="accordion-inner" style="font-family: 'Lucida Sans Typewriter', 'Courier New', monospace;" id="collapsetafcontent"> <center><img src="images/loadingsm.gif"/></center> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#detailsaccordion" href="#collapsemap"> Airport Map </a> </div> <div id="collapsemap" class="accordion-body collapse"> <div class="accordion-inner"> <?php echo getMap($aptICAO); ?> <br/> </div> </div> </div> </div> </div>
<?php $purpose = "\r\nSend different content depending on whether the request\r\nwas from Ajax. The Ajax example is from \r\n<a href='http://www.w3schools.com/ajax/default.asp'>\r\nthis w3c tutorial</a>.\r\n"; $exampleParams = '?zoom=15&lat=42.374444&lon=-71.116944'; require 'functions.php'; $map = getMap(); define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); $javascript = <<<EOF <script type="text/javascript"> function loadXMLDoc() { \tvar xmlhttp; \tif (window.XMLHttpRequest) \t{// code for IE7+, Firefox, Chrome, Opera, Safari \t\txmlhttp=new XMLHttpRequest(); \t} \telse \t{// code for IE6, IE5 \t\txmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); \t} \txmlhttp.onreadystatechange=function() \t{ \t\tif (xmlhttp.readyState==4 && xmlhttp.status==200) \t\t{ \t\t\tdocument.getElementById("demo") \t\t\t\t.innerHTML=xmlhttp.responseText; \t\t} \t} \txmlhttp.open("GET","{$fname}",true); \txmlhttp.setRequestHeader("X-Requested-With", \t\t\t"XMLHttpRequest");
public function staticMapUrl($latitude, $longitude, $zoom, $size, $type = 'roadmap', $write = true) { return $this->returnValue(getMap()->staticMap($latitude, $longitude, $zoom, $size, $type), $write); }
echo $i; ?> " href="#collapsemapdest<?php echo $i; ?> "> Mapa de Aeropuerto </a> </div> <div id="collapsemapdest<?php echo $i; ?> " class="accordion-body collapse"> <div class="accordion-inner"> <center><?php echo getMap(mysql_result($query, $i, 'destination')); ?> </center><br/> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php
<?php /* Copyright (c) 2012 Association France-ioi, MIT License http://opensource.org/licenses/MIT */ define('YEAR_CONTEST', '2014'); define('CERTIGEN_CONTESTS', '32, 33, 34, 35, 36, 37'); // 2013: define('CERTIGEN_CONTESTS', '27, 30, 28, 29'); // 2012: define('CERTIGEN_CONTESTS', '6, 7, 8, 9'); require_once "../shared/common.php"; require_once "googleMap.inc.php"; function getMap($src, $dst) { $data = array(); list($gmap, $TOT) = getGoogleMap(); $data["{MAP}"] = $gmap; $data["{YEAR}"] = YEAR_CONTEST; $s = file_get_contents($src); $s = str_replace(array_keys($data), array_values($data), $s); file_put_contents($dst, $s); } getMap("templateMap.inc.html", "map.html");
/** * ShopEx licence * * @copyright Copyright (c) 2005-2013 ShopEx Technologies Inc. (http://www.shopex.cn) * @license http://ecos.shopex.cn/ ShopEx License */ function theme_widget_goodscategory(&$setting, &$render) { $cat_list = getMap(); return $cat_list; }
$msg_index = 0; $map_index = 0; foreach ($msg_in as $char_in) { foreach ($map as $char_out => $value) { if ($char_in == $value) { $msg_out[$msg_index] = $char_out; } $map_index++; } $msg_index++; } return $msg_out; } $key = './:'; if (strlen($key) == 3 and strlen(implode("", array_unique(str_split($key)))) == 3) { $map = getMap($key); $plaintext = str_split('NOTHINGELSEMATTER'); echo "PLAIN TEXT: \n"; foreach ($plaintext as $char) { echo $char . " "; } $decoded = decode($map, $plaintext); echo "\n DECODED: \n"; foreach ($decoded as $char) { echo $char . " "; } $encoded = encode($map, $decoded); echo "\n ENCODED: \n"; foreach ($encoded as $char) { echo $char . " "; }