Re: svn: /web/php-master/trunk/scripts/ update-backend
| From: | Stewart Lord | Date: | Thu, 22 Sep 2011 06:15:13 +0000 |
| Subject: | Re: svn: /web/php-master/trunk/scripts/ update-backend | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-12240@lists.php.net to get a copy of this message | ||
Thanks Peter!
On 2011-09-21, at 1:34 AM, Peter Cowburn wrote:
> salathe Wed, 21 Sep 2011 08:34:22 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=317086
>
> Log:
> use token for flickr api
>
> Changed paths:
> U web/php-master/trunk/scripts/update-backend
>
> Modified: web/php-master/trunk/scripts/update-backend
> ===================================================================
> --- web/php-master/trunk/scripts/update-backend 2011-09-21 08:02:42 UTC (rev 317085)
> +++ web/php-master/trunk/scripts/update-backend 2011-09-21 08:34:22 UTC (rev 317086)
> @@ -66,8 +66,11 @@
>
> // Pregenerate elephpant image pool from flickr.
> include "pregen_flickr";
> +$flickr_api_key = getenv("TOKEN_FLICKR");
> +if (!$flickr_api_key && file_exists(".token_flickr")) $flickr_api_key =
> file_get_contents(".token_flickr");
> +if (!$flickr_api_key) die("you have to set the TOKEN_FLICKR environment variable or
> create a .token_flickr file");
> pregen_flickr(
> - '6eb412bf7e360e695852fa4acc932375',
> + $flickr_api_key,
> $root . '/images/elephpants',
> 100
> );
>
> --
> PHP Webmaster List Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php