cvs: php-people-web /js userlisting.php

From: Date: Sun, 07 Jun 2009 15:32:01 +0000
Subject: cvs: php-people-web /js userlisting.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4990@lists.php.net to get a copy of this message
bjori Sun Jun 7 15:32:01 2009 UTC Modified files: /php-people-web/js userlisting.php Log: - Read the token from a file if there is no such env variable (makes it easier to test) - Add $Id tag http://cvs.php.net/viewvc.cgi/php-people-web/js/userlisting.php?r1=1.1&r2=1.2&diff_format=u Index: php-people-web/js/userlisting.php diff -u php-people-web/js/userlisting.php:1.1 php-people-web/js/userlisting.php:1.2 --- php-people-web/js/userlisting.php:1.1 Sun Jun 7 12:28:26 2009 +++ php-people-web/js/userlisting.php Sun Jun 7 15:32:01 2009 @@ -1,9 +1,13 @@ <?php +/* $Id: userlisting.php,v 1.2 2009/06/07 15:32:01 bjori Exp $ */ function getAllUsers() { $opts = array("ignore_errors" => true); $ctx = stream_context_create(array("http" => $opts)); $token = getenv("TOKEN"); + if (!$token) { + $token = trim(file_get_contents("../token")); + } $retval = @file_get_contents("https://master.php.net/fetch/allusers.php?&token=" . rawurlencode($token), false, $ctx); if (!$retval) { return;

« previous php.webmaster (#4990) next »