SVN: toys/stbr/queue.php

shadzik shadzik at pld-linux.org
Sat Sep 27 21:03:37 CEST 2008


Author: shadzik
Date: Sat Sep 27 21:03:37 2008
New Revision: 9880

Modified:
   toys/stbr/queue.php
Log:
- Titanium queue support (seems to work)


Modified: toys/stbr/queue.php
==============================================================================
--- toys/stbr/queue.php	(original)
+++ toys/stbr/queue.php	Sat Sep 27 21:03:37 2008
@@ -5,7 +5,7 @@
 class Queue
 {
 	//var $xmlqueuepath = "queue.gz";
-	var $xmlqueuepath = "http://ep09.pld-linux.org/~builderth/queue.gz";
+	//var $xmlqueuepath = "http://ep09.pld-linux.org/~builderth/queue.gz";
 	var $queue = '';
 
 	function array_preg_search($data, $search)
@@ -81,11 +81,14 @@
 		return $result;
 	}
 	
-	function prepare_queue_data()
+	function prepare_queue_data($dist)
 	{
+		$xmlqueuepath = "http://ep09.pld-linux.org/~builder" .$dist. "/queue.gz";
+		//$xmlqueuepath = "http://ep09.pld-linux.org/~builderth/queue.gz";
 		if(empty($this->queue))
 		{
-			$this->queue = $this->gzfile_get_contents($this->xmlqueuepath);
+			//$this->queue = $this->gzfile_get_contents($this->xmlqueuepath);
+			$this->queue = $this->gzfile_get_contents($xmlqueuepath);
 			$this->queue = simplexml_load_string($this->queue);
 		}
 	}
@@ -93,7 +96,8 @@
 	function is_filled($spec)
 	{
 		$status = array();
-		$this->prepare_queue_data();
+		$this->prepare_queue_data($spec['line']);
+		//$this->prepare_queue_data();
 		$spec['date'] = strtotime($spec['date']);
 		$status = $this->queue_search_recursive($spec);
 		


More information about the pld-cvs-commit mailing list