From: hickert Date: Thu, 17 Apr 2008 06:06:40 +0000 (+0000) Subject: Replaced hard coded halut with variable ;) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d7b441ed973a7ff802cf7cb981f8a4929eca3910;p=gosa.git Replaced hard coded halut with variable ;) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10522 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 0d86efe43..a993a3ad3 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -136,7 +136,7 @@ class gosaSupportDaemon public function FAI_get_kernels($release) { - $xml_msg = "
gosa_get_available_kernel
GOSAGOSAhalut
"; + $xml_msg = "
gosa_get_available_kernel
GOSAGOSA".$release."
"; if($this->connect()){ $this->o_sock->write($xml_msg); @@ -430,6 +430,8 @@ $xml_msg.= " $xml_msg.= " "; + echo htmlentities($xml_msg); + if($this->connect()){ $this->o_sock->write($xml_msg); $str = trim($this->o_sock->read()); @@ -911,9 +913,29 @@ $xml_msg.= " /*! \brief Returns the number of currently queued objects. @return Integer */ - public function number_of_queued_entries() + public function number_of_queued_entries($event_types) { - $xml_msg ="
gosa_count_jobdb
GOSAGOSA
"; + $tags = ""; + foreach($event_types as $type){ + $tags .= "".$type.""; + } + if(count($event_types) > 1){ + $tags = "or".$tags; + } + if(count($event_types)){ + $tags = "".$tags.""; + } + + + $xml_msg = + "". + "
gosa_query_jobdb
". + "GOSA". + "GOSA". + "". + $tags. + "
"; + $this->connect(); if($this->connect()){ $this->o_sock->write($xml_msg); @@ -926,6 +948,7 @@ $xml_msg.= " } $entries = $this->xml_to_array($str); + print_a($entries); if(isset($entries['XML'])){ return($entries['XML']['COUNT']); }