* -------------------------------------------------------------------- *
* Kurzbeschreibung : Mehr Cache-Dateien nachladen *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif (isInstallationPhase()) {
+} elseif (isInstaller()) {
// Do not run in installation phase
+ //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Run from installation phase.');
return FALSE;
}
$GLOBALS['cache_instance']->removeCacheFile();
unset($GLOBALS['cache_array']['admin']);
}
-} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
+} elseif ((isHtmlOutputMode()) || (isAjaxOutputMode()) || (isRawOutputMode())) {
// Create cache file
$GLOBALS['cache_instance']->init();
$add = runFilterChain('sql_admin_extra_data');
// Query the database about this
- $result = SQL_QUERY('SELECT
+ $result = sqlQuery('SELECT
`id` AS `admin_id`,
`login`,
`password`,
`{?_MYSQL_PREFIX?}_admins`
ORDER BY
`login` ASC', __FILE__, __LINE__);
- while ($row = SQL_FETCHARRAY($result)) {
+ while ($row = sqlFetchArray($result)) {
// Save row
$GLOBALS['cache_instance']->addRow($row);
} // END - while
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Close cache
$GLOBALS['cache_instance']->storeExtensionVersion('admins');
// This may drive a lot messages to the logfile
//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'No entry found in admin_acls to rewrite.');
}
- } elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
+ } elseif ((isHtmlOutputMode()) || (isAjaxOutputMode()) || (isRawOutputMode())) {
// Create cache file here
$GLOBALS['cache_instance']->init();
// Load all admins and their data
- $result = SQL_QUERY('SELECT * FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC,`action_menu` ASC,`what_menu` ASC', __FILE__, __LINE__);
+ $result = sqlQuery('SELECT * FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC,`action_menu` ASC,`what_menu` ASC', __FILE__, __LINE__);
// Add all rows
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Add row to cache file
$GLOBALS['cache_instance']->addRow($content);
} // END - while
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Close cache
$GLOBALS['cache_instance']->storeExtensionVersion('admins');