statut == WAITING) { $this->send_command(RUNNING); } if($this->statut == RUNNING) { if (method_exists($this->proxy, 'pmbesDocwatches_update')) { $docwatchesUpdated = $this->proxy->pmbesDocwatches_update(); $this->update_progression(100); $this->report[] = "".$this->msg["planificateur_docwatches_title"].""; if (is_array($docwatchesUpdated)){ foreach ($docwatchesUpdated as $idWatch=>$datasources){ if(is_array($datasources)){ $docwatch = new docwatch_watch($idWatch); $this->report[] = "

".$docwatch->get_title()."

".$this->msg["planificateur_docwatches_datasources_synced"]." ".$this->msg["planificateur_docwatches_datasources_title"]." ".$this->msg["planificateur_docwatches_datasources_last_date"]." ".$this->msg["planificateur_docwatches_datasources_type"]." ".$this->msg["planificateur_docwatches_datasources_ttl"]." "; foreach ($datasources as $datasource){ $query = " SELECT datasource_type, datasource_title, datasource_ttl FROM docwatch_datasources WHERE id_datasource =".$datasource['id']; $sql_result = pmb_mysql_query($query); if($sql_result){ while($row=pmb_mysql_fetch_object($sql_result)){ $this->report[] = " ".$row->datasource_title." ".htmlentities(formatdate($datasource['last_date'],1),ENT_QUOTES,$charset)." ".$msg['dsi_'.$row->datasource_type]." ".$row->datasource_ttl." "; } } } } } } }else { $this->add_function_rights_report("update","pmbesDocwatches"); } } } else { $this->add_rights_bad_user_report(); } } }