cvs: pearweb /include pear-database.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Mon, 04 Oct 2004 18:11:15 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-24599@lists.php.net to get a copy of this message | ||
dufuz Mon Oct 4 14:11:15 2004 EDT
Modified files:
/pearweb/include pear-database.php
Log:
renamed getZendWhoIsWho to getWhoIsWho since this function could be used by more sites then Zend,
and also removed Zend's ip from the whitelist and removed that silly return false
http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.246&r2=1.247&ty=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.246 pearweb/include/pear-database.php:1.247
--- pearweb/include/pear-database.php:1.246 Mon Oct 4 10:05:28 2004
+++ pearweb/include/pear-database.php Mon Oct 4 14:11:15 2004
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.246 2004/10/04 14:05:28 dufuz Exp $
+ $Id: pear-database.php,v 1.247 2004/10/04 18:11:15 dufuz Exp $
*/
require_once 'DB/storage.php';
@@ -2567,12 +2567,12 @@
}
// }}}
- // {{{ * proto array user::getZendWhoIsWho() API 1.0
+ // {{{ * proto array user::getWhoIsWho() API 1.0
/**
* Get list of current developers and the packages they maintain.
*
- * The output of this method is used on the Zend.com website for
+ * The output of this method is used on public websites for
* a Who Is Who of the PEAR developers. In order to avoid abuse,
* access to this method via XML_RPC is granted based on a whitelist
* of IP addresses.
@@ -2580,12 +2580,11 @@
* @access public
* @return array
*/
- function getZendWhoIsWho() {
- return false; // until we can flag agreement I guess.
+ function getWhoIsWho() {
global $dbh;
// IP whitelist
- if (!in_array($_SERVER['REMOTE_ADDR'], array("127.0.0.1",
"209.61.191.11"))) {
+ if (!in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1'))) {
return array();
}