function GetCoordinatesFromExif($img) { //receives the filename of an image //returns an array with: latitude, longitude and timestamp $exif = exif_read_data($img, 0, true); //if (strpos($exif['IFD0']['ImageDescription'],"GeoZexe")===FALSE) { if (!isset($exif['GPS']['GPSLatitude'][0])) { $coord = array(); return $coord; } else { $coord[0] = GetNumber($exif['GPS']['GPSLatitude'][0]) + GetNumber($exif['GPS']['GPSLatitude'][1]) / 60 + GetNumber($exif['GPS']['GPSLatitude'][2]) / 3600; if ($exif['GPS']['GPSLatitudeRef'] == "S") { $coord[0] = $coord[0] * -1; } $coord[1] = GetNumber($exif['GPS']['GPSLongitude'][0]) + GetNumber($exif['GPS']['GPSLongitude'][1]) / 60 + GetNumber($exif['GPS']['GPSLongitude'][2]) / 3600; if ($exif['GPS']['GPSLongitudeRef'] == "W") { $coord[1] = $coord[1] * -1; } if ($coord[0] == 0 || $coord[1] == 0) { $coord = array(); } return $coord; } }
function comparison() { $a = Getletter(); $letter2 = Toletter(GetWord(GetNumber())); foreach ($letter2 as $element) { if ($a == $element) { echo $a; } else { echo "[ ]"; } } }
<a><?php echo $row["name"]; ?> </a> <span class="tagList"> <a class="tagLink tagType1">第一志愿</a> </span> </div> </div> </td> <td class="list-td lc4"><?php echo GetGradeClass($row["id"]); ?> </td><td class="list-td lc5"><?php echo GetNumber($row["id"]); ?> </td> <td class="list-td lc6"><?php echo GetGenderName($row["gender"]); ?> </td> </tr> <?php } ?> </tbody> </table> <div class="block-more enabled">总共<?php
<div class="title"><strong>我的关键字</strong></div> <div class="list"> 我叫<?php echo $_SESSION["UName"]; ?> ,是个<?php echo GetGenderName(GetGenderByName($_SESSION["UName"])); ?> 生,来自<?php echo GetGrade(GetIDByName($_SESSION["UName"])); ?> 届的<?php echo GetClass(GetIDByName($_SESSION["UName"])); ?> 班,我的学号是<?php echo GetNumber(GetIDByName($_SESSION["UName"])); ?> 号。 </div> <div class="title"><strong>我能干什么</strong></div> <div class="list"> <a href="./index.php?key=<?php echo 1 - (isset($_GET["key"]) ? $_GET["key"] : 0); ?> " target="_self">我要修改现在的密码</a><br> <?php if (HaveAuthority("./admin.php")) { ?> <a href="./admin.php" target="_self">我要进入后台管理</a><br>