cvs: pearweb /include pear-format-html.php /public_html/map index.php locationREST.php

From: Date: Tue, 12 Dec 2006 19:55:37 +0000
Subject: cvs: pearweb /include pear-format-html.php /public_html/map index.php locationREST.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5259@lists.php.net to get a copy of this message
arnaud Tue Dec 12 19:55:37 2006 UTC Modified files: /pearweb/include pear-format-html.php /pearweb/public_html/map index.php locationREST.php Log: patches by christian and david to improve developers map http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.193&r2=1.194&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.193 pearweb/include/pear-format-html.php:1.194 --- pearweb/include/pear-format-html.php:1.193 Mon Dec 11 22:25:57 2006 +++ pearweb/include/pear-format-html.php Tue Dec 12 19:55:37 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.193 2006/12/11 22:25:57 arnaud Exp $ + $Id: pear-format-html.php,v 1.194 2006/12/12 19:55:37 arnaud Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -368,6 +368,7 @@ break; case 'developer_menu': $data= array( + '/map/' => 'Find a Developer', '/accounts.php' => 'List Accounts', '/release-upload.php' => 'Upload Release', '/package-new.php' => 'New Package' http://cvs.php.net/viewvc.cgi/pearweb/public_html/map/index.php?r1=1.5&r2=1.6&diff_format=u Index: pearweb/public_html/map/index.php diff -u pearweb/public_html/map/index.php:1.5 pearweb/public_html/map/index.php:1.6 --- pearweb/public_html/map/index.php:1.5 Mon Dec 11 22:25:57 2006 +++ pearweb/public_html/map/index.php Tue Dec 12 19:55:37 2006 @@ -16,10 +16,10 @@ * @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.5 2006/12/11 22:25:57 arnaud Exp $ + * @version $Id: index.php,v 1.6 2006/12/12 19:55:37 arnaud Exp $ */ $map = ' -<script language="javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjPqDvnoTwt1l2d9kE7aeSRSaX3uuPis-gsi6PocQln0mfq-TehSSt5OZ9q0OyzKSOAfNu8NuLlNgWA"></script> +<script type="text/javascript" language="javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjPqDvnoTwt1l2d9kE7aeSRSaX3uuPis-gsi6PocQln0mfq-TehSSt5OZ9q0OyzKSOAfNu8NuLlNgWA"></script> '; response_header('PEAR Maps', false, $map); @@ -28,29 +28,47 @@ <h1>PEAR Developer's locations!</h1> <?php $maps = array( - 'world' => - array('name' => 'World Map', + 'world' => + 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 Map', + 'northamerica' => + array('name' => 'North America', 'link' => 'http://pear.cweiske.de/devmaps/peardev-northamerica.jpg', 'thumb' => 'http://pear.cweiske.de/devmaps/peardev-northamerica.200.jpg', ), - 'southamerica' => - array('name' => 'South America Map', + 'southamerica' => + array('name' => 'South America', 'link' => 'http://pear.cweiske.de/devmaps/peardev-southamerica.jpg', 'thumb' => 'http://pear.cweiske.de/devmaps/peardev-southamerica.200.jpg', ), 'europe' => - array('name' => 'Europe Map', + array('name' => 'Europe', 'link' => 'http://pear.cweiske.de/devmaps/peardev-europe.jpg', 'thumb' => 'http://pear.cweiske.de/devmaps/peardev-europe.200.jpg', ), + + 'mideast' => + array('name' => 'Middle East', + 'link' => 'http://pear.cweiske.de/devmaps/peardev-mideast.jpg', + 'thumb' => 'http://pear.cweiske.de/devmaps/peardev-mideast.200.jpg', + ), + + 'asia' => + array('name' => 'Asia', + 'link' => 'http://pear.cweiske.de/devmaps/peardev-asia.jpg', + 'thumb' => 'http://pear.cweiske.de/devmaps/peardev-asia.200.jpg', + ), + + 'australia' => + array('name' => 'Australia', + 'link' => 'http://pear.cweiske.de/devmaps/peardev-australia.jpg', + 'thumb' => 'http://pear.cweiske.de/devmaps/peardev-australia.200.jpg', + ), ); ?> <p> @@ -65,15 +83,15 @@ print '<h1>Maps Links</h1>'; foreach ($maps as $map) { echo '<a href="' . $map['link'] . '">' - .'<img src="' . $map['thumb'] . '" alt="' . $map['name'] . '" width="300px"/>' + .'<img src="' . $map['thumb'] . '" alt="' . $map['name'] . '" width="200px"/>' .'</a>' . "\r\n"; } - print '<hr noshade/>'; + print '<hr noshade="noshade"/>'; ?> </noscript> <br /><br /> <?php print_link('/support/', 'support channels'); ?>. - </p> + <script language="javascript" type="text/javascript"> points = new Array(); http://cvs.php.net/viewvc.cgi/pearweb/public_html/map/locationREST.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/public_html/map/locationREST.php diff -u pearweb/public_html/map/locationREST.php:1.1 pearweb/public_html/map/locationREST.php:1.2 --- pearweb/public_html/map/locationREST.php:1.1 Sun Dec 10 19:54:32 2006 +++ pearweb/public_html/map/locationREST.php Tue Dec 12 19:55:37 2006 @@ -15,7 +15,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: locationREST.php,v 1.1 2006/12/10 19:54:32 arnaud Exp $ + * @version $Id: locationREST.php,v 1.2 2006/12/12 19:55:37 arnaud Exp $ */ $sql = "SELECT name, latitude, longitude, homepage, handle @@ -26,7 +26,7 @@ * not on php5 yet, so we can't use DOM or * xmlwriter. Let's just build custom XML */ -$xml = '<?xml version="1.0" encoding="UTF-8" ?>' . "\n"; +$xml = '<?xml version="1.0" encoding="iso-8859-1" ?>' . "\n"; $xml .= ' <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

« previous php.pear.core (#5259) next »