From 9afe4dbf2e0907d016556ca89d08115ab99ab903 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 30 Mar 2005 11:50:25 +0200 Subject: Replace .* files by _* darcs-hash:20050330095025-45605-5b5e82865c7fba8e88c43511ae4bf28ebf334d1b.gz --- inc/auth.php | 4 ++-- inc/common.php | 2 +- inc/format.php | 16 ++++++++-------- inc/io.php | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/inc/auth.php b/inc/auth.php index e139db4fa..d5af6436a 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -143,7 +143,7 @@ function auth_browseruid(){ * Creates a random key to encrypt the password in cookies * * This function tries to read the password for encrypting - * cookies from $conf['datadir'].'/.cache/.htcookiesalt' + * cookies from $conf['datadir'].'/_cache/_htcookiesalt' * if no such file is found a random key is created and * and stored in this file. * @@ -153,7 +153,7 @@ function auth_browseruid(){ */ function auth_cookiesalt(){ global $conf; - $file = $conf['datadir'].'/.cache/.htcookiesalt'; + $file = $conf['datadir'].'/_cache/_htcookiesalt'; $salt = io_readFile($file); if(empty($salt)){ $salt = uniqid(rand(),true); diff --git a/inc/common.php b/inc/common.php index 251fbcdc3..62794d834 100644 --- a/inc/common.php +++ b/inc/common.php @@ -712,7 +712,7 @@ function saveWikiText($id,$text,$summary){ //purge cache on add by updating the purgefile if($conf['purgeonadd'] && (!$old || $del)){ - io_saveFile($conf['datadir'].'/.cache/purgefile',time()); + io_saveFile($conf['datadir'].'/_cache/purgefile',time()); } } diff --git a/inc/format.php b/inc/format.php index 77d2e0d54..2dbb43a97 100644 --- a/inc/format.php +++ b/inc/format.php @@ -486,13 +486,13 @@ function img_cache(&$csrc,&$src,&$w,&$h,$cachemode){ //download external images if allowed if($isurl && $isimg && $cachemode != 'nocache'){ - $cache = $conf['mediadir']."/.cache/$md5.$ext"; + $cache = $conf['mediadir']."/_cache/$md5.$ext"; if ( ($cachemode == 'recache' && download($src,$cache)) || @file_exists($cache) || download($src,$cache)){ - $f['full']['web'] = $conf['mediaweb']."/.cache/$md5.$ext"; - $f['resz']['web'] = $conf['mediaweb']."/.cache/$md5.$ext"; - $f['full']['fs'] = $conf['mediadir']."/.cache/$md5.$ext"; - $f['resz']['fs'] = $conf['mediadir']."/.cache/$md5.$ext"; + $f['full']['web'] = $conf['mediaweb']."/_cache/$md5.$ext"; + $f['resz']['web'] = $conf['mediaweb']."/_cache/$md5.$ext"; + $f['full']['fs'] = $conf['mediadir']."/_cache/$md5.$ext"; + $f['resz']['fs'] = $conf['mediadir']."/_cache/$md5.$ext"; $isurl = false; } } @@ -505,15 +505,15 @@ function img_cache(&$csrc,&$src,&$w,&$h,$cachemode){ if(!$h){ $h = round(($w * $info[1]) / $info[0]); } - $cache = $conf['mediadir'].'/.cache/'.$md5.'.'.$w.'x'.$h.'.'.$ext; + $cache = $conf['mediadir'].'/_cache/'.$md5.'.'.$w.'x'.$h.'.'.$ext; //delete outdated cachefile if(@file_exists($cache) && (filemtime($cache)