From: Lo?c C. <lo...@us...> - 2001-12-01 11:56:54
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization In directory usw-pr-cvs1:/tmp/cvs-serv21128/chat/localization Modified Files: tutorial.lib.php3 languages.lib.php3 admin.lib.php3 Log Message: skipped zero-sized (erroneous) cache files Index: tutorial.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/tutorial.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** tutorial.lib.php3 2001/12/01 10:50:45 1.10 --- tutorial.lib.php3 2001/12/01 11:56:51 1.11 *************** *** 69,76 **** // Tries to get this array from the cache $tutorialCacheFile = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'cache/availableTutorialLanguages.cache'; ! if (file_exists($tutorialCacheFile) && (filemtime($tutorialCacheFile) + 60*60 - time()) > 0) { // Cache is up to date, we use it ! $availableTutorials = unserialize(implode('', file($tutorialCacheFile))); } // Else defines available languages --- 69,78 ---- // Tries to get this array from the cache $tutorialCacheFile = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'cache/availableTutorialLanguages.cache'; ! if (file_exists($tutorialCacheFile) ! && (filemtime($tutorialCacheFile) + 60*60 - time()) > 0 ! && $cacheFile = @file($tutorialCacheFile)) { // Cache is up to date, we use it ! $availableTutorials = unserialize(implode('', $cacheFile)); } // Else defines available languages Index: languages.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** languages.lib.php3 2001/12/01 10:49:35 1.13 --- languages.lib.php3 2001/12/01 11:56:51 1.14 *************** *** 73,80 **** $localizationCache = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'cache/availableLanguages.cache'; ! if (file_exists($localizationCache) && (filemtime($localizationCache) + 60*60 - time()) > 0) { // Cache is up to date, we use it ! $availableLanguages = unserialize(implode('', file($localizationCache))); } else --- 73,82 ---- $localizationCache = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'cache/availableLanguages.cache'; ! if (file_exists($localizationCache) ! && (filemtime($localizationCache) + 60*60 - time()) > 0 ! && $cacheFile = @file($localizationCache)) { // Cache is up to date, we use it ! $availableLanguages = unserialize(implode('', $cacheFile)); } else Index: admin.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/admin.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** admin.lib.php3 2001/12/01 10:50:45 1.10 --- admin.lib.php3 2001/12/01 11:56:51 1.11 *************** *** 70,77 **** // Tries to get this array from the cache $adminCacheFile = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'cache/availableAdminLanguages.cache'; ! if (file_exists($adminCacheFile) && (filemtime($adminCacheFile) + 60*60 - time()) > 0) { // Cache is up to date, we use it ! $availableAdmins = unserialize(implode('', file($adminCacheFile))); } // Else defines available languages --- 70,79 ---- // Tries to get this array from the cache $adminCacheFile = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'cache/availableAdminLanguages.cache'; ! if (file_exists($adminCacheFile) ! && (filemtime($adminCacheFile) + 60*60 - time()) > 0 ! && $cacheFile = @file($adminCacheFile)) { // Cache is up to date, we use it ! $availableAdmins = unserialize(implode('', $cacheFile)); } // Else defines available languages |