Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/db.inc.php between version 1.22 and 1.23

version 1.22, 2006/07/08 22:22:10 version 1.23, 2006/07/08 23:09:11
Line 1363  function ezin_get_config() /* {{{ */
Line 1363  function ezin_get_config() /* {{{ */
         $query = sprintf('SELECT a_key, type, value FROM %s',          $query = sprintf('SELECT a_key, type, value FROM %s',
                         $ezin_sys['db']['tables']['config_data']);                          $ezin_sys['db']['tables']['config_data']);
         $result = @mysql_query($query, $ezin_db_handle)          $result = @mysql_query($query, $ezin_db_handle)
                 or ezin_db_error('ezin_get_config() [2]');                  or ezin_db_error('ezin_get_config() [v2:1]');
         $array = array();          $array = array();
         while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)) {          while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)) {
                 if (isset($row['type']) && $row['type'] == 1) {                  if (isset($row['type']) && $row['type'] == 1) {
Line 1378  function ezin_get_config() /* {{{ */
Line 1378  function ezin_get_config() /* {{{ */
                 ezin_db_error('configuration not initialized');                  ezin_db_error('configuration not initialized');
         }          }
   
           /* Move this to the more proper (better) place and remove it from "config".
              -- Nepto [2006-07-09] */
           $query = sprintf('SELECT COUNT(*), SUM(id) FROM %s',
                           $ezin_sys['db']['tables']['authors']);
           $result = @mysql_query($query, $ezin_db_handle)
                   or ezin_db_error('ezin_get_config() [v2:2]');
           if (($row = @mysql_fetch_array($result, MYSQL_NUM)) && $row[0] <= 1) {
                   $array['single_author_id'] = intval($row[1]); // single author ID
           } else {
                   $array['single_author_id'] = -1;
           }
   
         // Config storage in cache          // Config storage in cache
         ezin_cache_save('config', serialize($array));          ezin_cache_save('config', serialize($array));
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top