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

Diff for mylist/backend/receiver/receiver.php between version 1.20 and 1.21

version 1.20, 2005/05/06 20:27:35 version 1.21, 2005/05/07 16:38:33
Line 1 
Line 1 
 <?php  <?php
   
 // $Platon: mylist/backend/receiver/receiver.php,v 1.19 2005/05/06 20:25:07 majo Exp $  // $Platon: mylist/backend/receiver/receiver.php,v 1.20 2005/05/06 20:27:35 majo Exp $
   
 require_once    dirname(__FILE__).'/validator.php';  require_once    dirname(__FILE__).'/validator.php';
 require_once    dirname(__FILE__).'/../../mylist.config.php';  require_once    dirname(__FILE__).'/../../mylist.config.php';
Line 46  class CReceiver {
Line 46  class CReceiver {
                         $queue_id = $this->processMessage($this->validator->arrAccepted[$i]);                          $queue_id = $this->processMessage($this->validator->arrAccepted[$i]);
                         if ($queue_id)                          if ($queue_id)
                                 $this->generateRecipients($this->validator->arrAccepted[$i], $queue_id);                                  $this->generateRecipients($this->validator->arrAccepted[$i], $queue_id);
   
                           $this->setStatistics($this->validator->arrAccepted[$i]);
                 }                  }
   
                 return $i;      // returns number of accepted files                  return $i;      // returns number of accepted files
Line 496  class CReceiver {
Line 498  class CReceiver {
   
                 }                  }
   
         } // }}}          } // }}}
   
   
         function copyToFilesystem($content)          function copyToFilesystem($content)
Line 522  class CReceiver {
Line 524  class CReceiver {
                 return $unique;                  return $unique;
         } // }}}          } // }}}
   
           function setStatistic($list_id)
           {
                   global $dbh;
                   $sql = "UPDATE mylist_list_stats SET times_used = times_used + 1, dt_last_used = '".Date("Y-m-d H:i:s")."' WHERE list_id = '$list_id'";
   
                   $res =& $dbh->query($sql);
                   //if (PEAR::isError($res))
                   //      die($res->getMessage()); // no need to die here
           }
   
 }  }
   
 // vim: fdm=marker fdl=0 fdc=3  // vim: fdm=marker fdl=0 fdc=3

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

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