cvs: pearweb /include pear-database.php pear-format-html.php /public_html/map index.php
| From: | Arnaud Limbourg | Date: | Mon, 11 Dec 2006 22:25:57 +0000 |
| Subject: | cvs: pearweb /include pear-database.php pear-format-html.php /public_html/map index.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5258@lists.php.net to get a copy of this message | ||
arnaud Mon Dec 11 22:25:57 2006 UTC
Modified files:
/pearweb/include pear-database.php pear-format-html.php
/pearweb/public_html/map index.php
Log:
series of patches by david and christian
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-database.php?r1=1.325&r2=1.326&diff_format=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.325 pearweb/include/pear-database.php:1.326
--- pearweb/include/pear-database.php:1.325 Sun Nov 26 14:24:33 2006
+++ pearweb/include/pear-database.php Mon Dec 11 22:25:57 2006
@@ -18,7 +18,7 @@
| Martin Jansen <mj@php.net> |
| Gregory Beaver <cellog@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.325 2006/11/26 14:24:33 arnaud Exp $
+ $Id: pear-database.php,v 1.326 2006/12/11 22:25:57 arnaud Exp $
*/
require_once 'DB/storage.php';
@@ -2858,7 +2858,16 @@
function update($data) {
global $dbh;
- $fields = array("name", "email", "homepage",
"showemail", "userinfo", "pgpkeyid", "wishlist");
+ $fields = array('name',
+ 'email',
+ 'homepage',
+ 'showemail',
+ 'userinfo',
+ 'pgpkeyid',
+ 'wishlist',
+ 'latitude',
+ 'longitude',
+ );
$user =& new PEAR_User($dbh, $data['handle']);
foreach ($data as $key => $value) {
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.192&r2=1.193&diff_format=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.192 pearweb/include/pear-format-html.php:1.193
--- pearweb/include/pear-format-html.php:1.192 Sat Oct 21 18:08:27 2006
+++ pearweb/include/pear-format-html.php Mon Dec 11 22:25:57 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.192 2006/10/21 18:08:27 cellog Exp $
+ $Id: pear-format-html.php,v 1.193 2006/12/11 22:25:57 arnaud Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -245,7 +245,7 @@
}
-function response_footer($style = false)
+function response_footer($style = false, $extraContent = false)
{
global $LAST_UPDATED, $MIRRORS, $MYSITE, $COUNTRIES,$SCRIPT_NAME, $RSIDEBAR_DATA;
@@ -327,6 +327,11 @@
<!-- END FOOTER -->
</body>
+<?php
+if ($extraContent) {
+ print $extraContent;
+}
+?>
</html>
<?php
http://cvs.php.net/viewvc.cgi/pearweb/public_html/map/index.php?r1=1.4&r2=1.5&diff_format=u
Index: pearweb/public_html/map/index.php
diff -u pearweb/public_html/map/index.php:1.4 pearweb/public_html/map/index.php:1.5
--- pearweb/public_html/map/index.php:1.4 Mon Dec 11 21:36:38 2006
+++ pearweb/public_html/map/index.php Mon Dec 11 22:25:57 2006
@@ -16,7 +16,7 @@
* @author David Coallier <davidc@php.net>
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: index.php,v 1.4 2006/12/11 21:36:38 arnaud Exp $
+ * @version $Id: index.php,v 1.5 2006/12/11 22:25:57 arnaud Exp $
*/
$map = '
<script language="javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjPqDvnoTwt1l2d9kE7aeSRSaX3uuPis-gsi6PocQln0mfq-TehSSt5OZ9q0OyzKSOAfNu8NuLlNgWA"></script>
@@ -29,25 +29,25 @@
<?php
$maps = array(
'world' =>
- array('name' => 'World Maps',
+ array('name' => 'World Map',
'link' => 'http://pear.cweiske.de/devmaps/peardev-world.jpg',
'thumb' => 'http://pear.cweiske.de/devmaps/peardev-world.200.jpg'
),
-
+
'northamerica' =>
- array('name' => 'North America Maps',
+ array('name' => 'North America Map',
'link' => 'http://pear.cweiske.de/devmaps/peardev-northamerica.jpg',
'thumb' => 'http://pear.cweiske.de/devmaps/peardev-northamerica.200.jpg',
),
-
+
'southamerica' =>
- array('name' => 'South America Maps',
+ array('name' => 'South America Map',
'link' => 'http://pear.cweiske.de/devmaps/peardev-southamerica.jpg',
'thumb' => 'http://pear.cweiske.de/devmaps/peardev-southamerica.200.jpg',
),
-
+
'europe' =>
- array('name' => 'Europe Maps',
+ array('name' => 'Europe Map',
'link' => 'http://pear.cweiske.de/devmaps/peardev-europe.jpg',
'thumb' => 'http://pear.cweiske.de/devmaps/peardev-europe.200.jpg',
),
@@ -62,42 +62,13 @@
<br />
<noscript>
<?php
- $gets = $_GET;
-
- if (!isset($gets['region'])) {
- print '<h1>Maps Links</h1>';
- print '<a href="index.php?region=world&js=no">World
Map</a><br />';
- print '<a href="index.php?region=europe&js=no">Europe
Map</a><br />';
- print '<a href="index.php?region=northamerica&js=no">North America
Map</a><br />';
- print '<a href="index.php?region=southamerica&js=no">South America
Map</a><br />';
- print '<hr noshade/>';
- }
-
- if (isset($gets['region']) &&
- isset($gets['js']) && $gets['js'] == 'no')
- {
- print '<a href="index.php">List Maps</a><br />';
- $mapContent = '';
- $region = $gets['region'];
- switch (strtolower($region)) {
- case 'world':
- case 'europe':
- case 'northamerica':
- case 'southamerica':
- $mapContent = '
- <h1>'.$maps[$region]['name'].'</h1>
- <a href="'.$maps[$region]['link'].'">
- <img style="width: 90%;
- height: 400";
- border; 1px solid black;
- src="'.$maps[$region]['link'].'"
-
alt="'.$maps[$region]['name'].'"/></a>
- ';
- break;
- }
- print $mapContent;
- }
-
+ print '<h1>Maps Links</h1>';
+ foreach ($maps as $map) {
+ echo '<a href="' . $map['link'] . '">'
+ .'<img src="' . $map['thumb'] . '"
alt="' . $map['name'] . '" width="300px"/>'
+ .'</a>' . "\r\n";
+ }
+ print '<hr noshade/>';
?>
</noscript>
<br /><br />