//
function NICKNAME_IS_ACTIVE ($uidNick) {
- global $cacheArray;
-
// By default nothing is found...
$ret = false;
// Found in cache?
- if (isset($cacheArray['nick_active'][$uidNick])) {
+ if (isset($GLOBALS['cache_array']['nick_active'][$uidNick])) {
// Use it directly
- $ret = $cacheArray['nick_active'][$uidNick];
+ $ret = $GLOBALS['cache_array']['nick_active'][$uidNick];
// Increment cache counter
incrementConfigEntry('cache_hits');
$ret = (SQL_NUMROWS($result) == 1);
// Put it in cache
- $cacheArray['nick_active'][$uidNick] = $ret;
+ $GLOBALS['cache_array']['nick_active'][$uidNick] = $ret;
// Free result
SQL_FREERESULT($result);
//
function NICKNAME_GET_NICK ($userid) {
- global $cacheArray;
-
// If not found...
$ret = "";
// Found in cache?
- if (isset($cacheArray['nicknames'][$userid])) {
+ if (isset($GLOBALS['cache_array']['nicknames'][$userid])) {
// Use it directly
- $ret = $cacheArray['nicknames'][$userid];
+ $ret = $GLOBALS['cache_array']['nicknames'][$userid];
// Increment cache counter
incrementConfigEntry('cache_hits');
list($ret) = SQL_FETCHROW($result);
// Put it in cche
- $cacheArray['nicknames'][$userid] = $ret;
+ $GLOBALS['cache_array']['nicknames'][$userid] = $ret;
} // END - if
// Free result