X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload-;h=b8e281886f5b339b66a08d99b2e9ba713f52f9cd;hb=e9da1508b2a3ccbf63adc999981674740a47e074;hp=7be34fe1e702af4a7b8f35c583fb29d75975d0d8;hpb=e70440e1164db8bbeeccd90df305bfa0efb641e1;p=mailer.git diff --git a/inc/loader/load- b/inc/loader/load- index 7be34fe1e7..b8e281886f 100644 --- a/inc/loader/load- +++ b/inc/loader/load- @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Mehr Cache-Dateien nachladen * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -38,8 +33,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} elseif (isInstallationPhase()) { +} elseif (isInstaller()) { // Use this code if you don't want to run this cache loader on installation phase + //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Run from installation phase.'); return FALSE; } @@ -47,19 +43,19 @@ if (!defined('__SECURITY')) { if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_instance']->extensionVersionMatches('foo'))) { // Load cache $GLOBALS['cache_array']['foo'] = $GLOBALS['cache_instance']->getArrayFromCache(); -} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) { +} elseif ((isHtmlOutputMode()) || (isAjaxOutputMode()) || (isRawOutputMode())) { // Create cache file $GLOBALS['cache_instance']->init(); // Query the database about this - $result = SQL_QUERY('SELECT * FROM `{?_MYSQL_PREFIX?}_foos` ORDER BY `some_bar` ASC', __FILE__, __LINE__); - while ($dummy = SQL_FETCHARRAY($result)) { + $result = sqlQuery('SELECT * FROM `{?_MYSQL_PREFIX?}_foos` ORDER BY `some_bar` ASC', __FILE__, __LINE__); + while ($data = sqlFetchArray($result)) { // Save row - $GLOBALS['cache_instance']->addRow($dummy); + $GLOBALS['cache_instance']->addRow($data); } // END - while // Free memory - SQL_FREERESULT($result); + sqlFreeResult($result); // Close cache $GLOBALS['cache_instance']->storeExtensionVersion('foo');