| version 1.20, 2005/05/06 20:27:35 |
version 1.21, 2005/05/07 16:38:33 |
|
|
| <?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 |