<?php
/************************************************************************
- * MXChange v0.2.1 Start: 09/09/2008 *
- * =============== Last change: 09/09/2008 *
+ * Mailer v0.2.1-FINAL Start: 09/09/2008 *
+ * =================== Last change: 09/09/2008 *
* *
* -------------------------------------------------------------------- *
* File : load_cache-config.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
if (count($GLOBALS['cache_array']['admin']['login']) == count($GLOBALS['cache_array']['admin']['admin_id'])) {
// Rewrite the cache
$admins = array();
- foreach ($GLOBALS['cache_array']['admin']['login'] as $idx=>$admin) {
+ foreach ($GLOBALS['cache_array']['admin']['login'] as $idx => $admin) {
// Rewrite all entries
- foreach ($GLOBALS['cache_array']['admin'] as $key=>$entry) {
+ foreach ($GLOBALS['cache_array']['admin'] as $key => $entry) {
// Do we have login or regular entries?
- if ($key == 'login') {
- // Login, so use id
- $admins[$key][$GLOBALS['cache_array']['admin']['admin_id'][$idx]] = $entry[$idx];
- } else {
- // Regular entry so use login
+ if ($key == 'admin_id') {
+ // Admin id, so use login
$admins[$key][$GLOBALS['cache_array']['admin']['login'][$idx]] = $entry[$idx];
+ } else {
+ // Regular entry so use id
+ $admins[$key][$GLOBALS['cache_array']['admin']['admin_id'][$idx]] = $entry[$idx];
}
} // END - foreach
} // END - foreach
$GLOBALS['cache_instance']->removeCacheFile();
unset($GLOBALS['cache_array']['admin']);
}
-} elseif (getOutputMode() != '1') {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file
$GLOBALS['cache_instance']->init();
if (($GLOBALS['cache_instance']->loadCacheFile('admin_acls')) && ($GLOBALS['cache_instance']->extensionVersionMatches('admins'))) {
// Load referal system from cache
$GLOBALS['cache_array']['admin_acls'] = $GLOBALS['cache_instance']->getArrayFromCache();
- } elseif (getOutputMode() != '1') {
+ } elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();