Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for scripts/php/sk-nic/SK-NIC.php between version 1.3 and 1.4

version 1.3, 2007/03/12 03:50:10 version 1.4, 2007/03/12 04:47:23
Line 13 
Line 13 
  *   *
  */   */
   
 /* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.2 2007-03-11 03:54:40 nepto Exp $ */  /* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.3 2007-03-12 03:50:10 nepto Exp $ */
   
 require_once 'DB.php';  require_once 'DB.php';
   
Line 275  class SK_NIC
Line 275  class SK_NIC
                 return $changed;                  return $changed;
         } /* }}} */          } /* }}} */
   
           function writeStats() /* {{{ */
           {
                   static $queries = array();
                   if (count($queries) <= 0) {
                           $queries[] = 'INSERT INTO sknic_domains_stats'
                                   .' SELECT dt_changed, NULL, NULL, COUNT(*)'
                                   .' FROM sknic_domains_import GROUP BY dt_changed';
                           $queries[] = 'INSERT INTO sknic_domains_stats'
                                   .' SELECT dt_changed, "status", status, COUNT(*)'
                                   .' FROM sknic_domains_import GROUP BY dt_changed, status'
                                   .' ORDER BY dt_changed, COUNT(*)';
                           $queries[] = 'INSERT INTO sknic_domains_stats'
                                   .' SELECT dt_changed, "id_reg", id_reg, COUNT(*)'
                                   .' FROM sknic_domains_import GROUP BY dt_changed, id_reg'
                                   .' HAVING count(*) >= 100'
                                   .' ORDER BY dt_changed, COUNT(*)';
                           $queries[] = 'INSERT INTO sknic_domains_stats'
                                   .' SELECT dt_changed, "id_owner", id_owner, COUNT(*)'
                                   .' FROM sknic_domains_import GROUP BY dt_changed, id_owner'
                                   .' HAVING count(*) >= 100'
                                   .' ORDER BY dt_changed, COUNT(*)';
                   }
   
                   foreach ($queries as $query) {
                           $result = $this->_db->query($query);
                           DB::isError($result) && $this->error($result);
                   }
           } /* }}} */
 }  }
   
 /* Modeline for ViM {{{  /* Modeline for ViM {{{

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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