svn: /web/php-master/trunk/scripts/ update-backend

From: Date: Wed, 21 Sep 2011 08:34:22 +0000
Subject: svn: /web/php-master/trunk/scripts/ update-backend
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-12232@lists.php.net to get a copy of this message
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 );

« previous php.webmaster (#12232) next »