cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Sun, 04 May 2003 11:27:52 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17296@lists.php.net to get a copy of this message | ||
goba Sun May 4 07:27:52 2003 EDT
Modified files:
/phpweb/include layout.inc
Log:
Remove geoip code to decrease any confusion
that may arise. We are using ip-to-country
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.143 phpweb/include/layout.inc:1.144
--- phpweb/include/layout.inc:1.143 Sat May 3 17:37:42 2003
+++ phpweb/include/layout.inc Sun May 4 07:27:51 2003
@@ -1,6 +1,6 @@
<?php
-/* $Id: layout.inc,v 1.143 2003/05/03 21:37:42 alindeman Exp $ */
+/* $Id: layout.inc,v 1.144 2003/05/04 11:27:51 goba Exp $ */
// Print an image for a sized spacer
function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false)
@@ -468,17 +468,4 @@
<tr bgcolor="#eeeeee"><td><?php echo
preg_replace("/\r?\n\r?\n/","<br /><br
/>",trim($event['ldesc'])); if ($event['url']) {?><br /><br
/><b>URL:</b> <?php echo '<a
href="',htmlentities($event['url']),'">',htmlentities($event['url']),'</a>';
}?></td></tr>
</table>
<?php
-}
-
-function calc_distance($from,$to) {
- $lat1 = pi()/180 * $from['lat'];
- $lat2 = pi()/180 * $to['lat'];
- $lon1 = pi()/180 * $from['lon'];
- $lon2 = pi()/180 * $to['lon'];
-
- $dlat = $lat2 - $lat1;
- $dlon = $lon2 - $lon1;
-
- $t = pow(sin($dlat/2), 2) + cos($lat1)*cos($lat2)*pow(sin($dlon/2),2);
- return atan2(sqrt($t),sqrt(1-$t));
}