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.21 and 1.22

version 1.21, 2023/12/09 16:48:57 version 1.22, 2023/12/10 01:38:47
Line 14 
Line 14 
  * 2017-10-07 - added import of expired domains (droplist)   * 2017-10-07 - added import of expired domains (droplist)
  */   */
   
 /* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.20 2023/12/01 13:36:59 igor Exp $ */  /* $Platon: scripts/php/sk-nic/SK-NIC.php,v 1.21 2023/12/09 16:48:57 nepto Exp $ */
   
 require_once 'DB.php';  require_once 'DB.php';
   
Line 180  class SK_NIC
Line 180  class SK_NIC
   
         function _importedNameserversReorder() /* {{{ */          function _importedNameserversReorder() /* {{{ */
         {          {
                 $result = $this->_db->query('SELECT domain,ns1,ns2,ns3,ns4 FROM sknic_domains_import');                  $result = $this->_db->query('SELECT domain,ns,ns1,ns2,ns3,ns4 FROM sknic_domains_import');
                 while ($row = $result->fetchRow()) {                  while ($row = $result->fetchRow()) {
                         $domain = $row['domain'];                          $domain = $row['domain'];
                           $all_ns = $row['ns'];
                         unset($row['domain']);                          unset($row['domain']);
                           unset($row['ns']);
                           $ns_array = explode(',', $all_ns);
                           usort($ns_array, array($this, '_sortingFunction'));
                         usort($row, array($this, '_sortingFunction'));                          usort($row, array($this, '_sortingFunction'));
                           $ns_array = array_filter($ns_array, function($value) { return $value !== ''; });
                         $row = array_filter($row, function($value) { return $value !== ''; });                          $row = array_filter($row, function($value) { return $value !== ''; });
                         $query = sprintf('UPDATE sknic_domains_import SET ns1=%s,ns2=%s,ns3=%s,ns4=%s WHERE domain=%s',                          $query = sprintf('UPDATE sknic_domains_import'
                                           .' SET ns=%s, ns1=%s, ns2=%s, ns3=%s, ns4=%s'
                                           .' WHERE domain=%s',
                                           $this->_db->quote(implode(',', $ns_array)),
                                         $this->_db->quote($row[0]),                                          $this->_db->quote($row[0]),
                                         $this->_db->quote($row[1]),                                          $this->_db->quote($row[1]),
                                         $this->_db->quote($row[2]),                                          $this->_db->quote($row[2]),

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

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