cvs: bugtracker /includes cache.php config.php
| From: | Barry Carlyon | Date: | Mon, 18 Aug 2008 15:26:14 +0000 |
| Subject: | cvs: bugtracker /includes cache.php config.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-2458@lists.php.net to get a copy of this message | ||
bcarlyon Mon Aug 18 15:26:14 2008 UTC
Modified files:
/bugtracker/includes cache.php config.php
Log:
Moved the cache folder location to a varible in the config
http://cvs.php.net/viewvc.cgi/bugtracker/includes/cache.php?r1=1.19&r2=1.20&diff_format=u
Index: bugtracker/includes/cache.php
diff -u bugtracker/includes/cache.php:1.19 bugtracker/includes/cache.php:1.20
--- bugtracker/includes/cache.php:1.19 Wed Aug 13 23:42:13 2008
+++ bugtracker/includes/cache.php Mon Aug 18 15:26:14 2008
@@ -38,13 +38,14 @@
* @author Barry Carlyon <bcarlyon@php.net>
* @copyright 2008-2008 Barry Carlyon
* @license http://www.opensource.org/licenses/bsd-license.php
BSD License
-* @version CVS: $Id: cache.php,v 1.19 2008/08/13 23:42:13 bcarlyon Exp $
+* @version CVS: $Id: cache.php,v 1.20 2008/08/18 15:26:14 bcarlyon Exp $
* @link http://gsoc.barrycarlyon.servegame.org/
*/
class cache{
function load_cache() {
- if ($handle = opendir('../../includes/cache/'))
+ global $cache_location;
+ if ($handle = opendir($cache_location))
{
while (FALSE !== ($file = readdir($handle)))
{
http://cvs.php.net/viewvc.cgi/bugtracker/includes/config.php?r1=1.2&r2=1.3&diff_format=u
Index: bugtracker/includes/config.php
diff -u bugtracker/includes/config.php:1.2 bugtracker/includes/config.php:1.3
--- bugtracker/includes/config.php:1.2 Wed Aug 13 22:33:33 2008
+++ bugtracker/includes/config.php Mon Aug 18 15:26:14 2008
@@ -38,7 +38,7 @@
* @author Barry Carlyon <bcarlyon@php.net>
* @copyright 2008-2008 Barry Carlyon
* @license http://www.opensource.org/licenses/bsd-license.php
BSD License
-* @version CVS: $Id: config.php,v 1.2 2008/08/13 22:33:33 bcarlyon Exp $
+* @version CVS: $Id: config.php,v 1.3 2008/08/18 15:26:14 bcarlyon Exp $
* @link http://gsoc.barrycarlyon.servegame.org/
*/
@@ -74,3 +74,4 @@
include('database/'. $database['type'] . '.php');
+$cache_location = '../../includes/cache/';