Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 14. november 2026

Rozdiely pre Metafox/db.inc.php medzi verziami 1.22 a 1.23

verzia 1.22, 2006/07/08 22:22:10 verzia 1.23, 2006/07/08 23:09:11
Riadok 1363  function ezin_get_config() /* {{{ */
Riadok 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) {
Riadok 1378  function ezin_get_config() /* {{{ */
Riadok 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:
Odstranené z verzie1.22  
zmenené riadky
  Pridané vo verzii1.23

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok