Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization
In directory usw-pr-cvs1:/tmp/cvs-serv6658/chat/localization
Modified Files:
languages.lib.php3
Log Message:
Updated comments
Index: languages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** languages.lib.php3 2001/11/30 11:52:22 1.11
--- languages.lib.php3 2001/11/30 19:31:39 1.12
***************
*** 67,80 ****
/**
! * Creates the array containing available languages
*/
// Defines the path to the localization directory
! $localizationPath = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'localization/';
! $localizationCache = $localizationPath.'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
--- 67,81 ----
/**
! * Creates the array containing available languages and sorts it or,
! * if available, gets it from cache
*/
// Defines the path to the localization directory
! $localizationPath = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'localization/';
! $localizationCache = $localizationPath . '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
|