[PC-BSD Commits] r8029 - websites/pbidir.com/bibivu/bin

svn at pcbsd.org svn at pcbsd.org
Sun Nov 14 07:54:23 PST 2010


Author: fabry
Date: 2010-11-14 07:54:22 -0800 (Sun, 14 Nov 2010)
New Revision: 8029

Modified:
   websites/pbidir.com/bibivu/bin/bibivu_cron.php
Log:
pbidir.com - mapping index file

Modified: websites/pbidir.com/bibivu/bin/bibivu_cron.php
===================================================================
--- websites/pbidir.com/bibivu/bin/bibivu_cron.php	2010-11-14 01:06:55 UTC (rev 8028)
+++ websites/pbidir.com/bibivu/bin/bibivu_cron.php	2010-11-14 15:54:22 UTC (rev 8029)
@@ -137,20 +137,22 @@
 				$tmps = explode(':', $index_line);
 				if(is_array($tmps)){
 					$line['valid']		= 1;
-					$line['alias']		= trim($tmps[0]);
-					$line['bits']		= trim($tmps[1]);
-					$line['ver']		= trim($tmps[2]);
-					$line['md5']		= trim($tmps[3]);
-					$line['date?']		= trim($tmps[4]);
-					$line['path']		= trim($tmps[5]);
-					$line['??']			= trim($tmps[6]);
-					$line['???']		= trim($tmps[7]);
-					$line['status']		= trim($tmps[8]);
-					$line['svn_path']	= '/pbi/modules/'.str_replace('/PBI/', '', substr($line['path'],0,strpos($line['path'],$line['alias']))).$line['alias'];
-					$line['conf_path']	= '/pbi/modules/'.str_replace('/PBI/', '', substr($line['path'],0,strpos($line['path'],$line['alias']))).$line['alias'].'/pbi.conf';
-					$line['conf_web']	= 'http://trac.pcbsd.org/browser'.$line['conf_path'].'?format=txt';
-					//let's parse the conmfig file
-					$pbi_conf			= @file_get_contents($line['conf_web']);
+//					<name> : <arch> : <version> : <sha256> : <made date> : <file location> : <time stamp> : <available binary diff patches> : <status>
+					
+					$line['alias']			= trim($tmps[0]);	//name
+					$line['bits']			= trim($tmps[1]);	//arch
+					$line['ver']			= trim($tmps[2]);	//version
+					$line['sha256']			= trim($tmps[3]);	//sha256
+					$line['date_created']	= trim($tmps[4]);	//made date
+					$line['path']			= trim($tmps[5]);	//file location
+					$line['date_now']		= trim($tmps[6]);	//timestamp
+					$line['patches']		= trim($tmps[7]);	//available binary diff patches
+					$line['status']			= trim($tmps[8]);	//this can be: current, active, remove
+					$line['svn_path']		= '/pbi/modules/'.str_replace('/PBI/', '', substr($line['path'],0,strpos($line['path'],$line['alias']))).$line['alias'];
+					$line['conf_path']		= '/pbi/modules/'.str_replace('/PBI/', '', substr($line['path'],0,strpos($line['path'],$line['alias']))).$line['alias'].'/pbi.conf';
+					$line['conf_web']		= 'http://trac.pcbsd.org/browser'.$line['conf_path'].'?format=txt';
+					//let's parse the config file
+					$pbi_conf				= @file_get_contents($line['conf_web']);
 					if($pbi_conf!=''){
 						if(preg_match('/PBI_PROGWEB="(.*)"/', $pbi_conf, $match)){
 							$line['website']	= $match[1];
@@ -158,6 +160,9 @@
 						if(preg_match('/PBI_PROGAUTHOR="(.*)"/', $pbi_conf, $match)){
 							$line['author']		= $match[1];
 						}
+						if(preg_match('/PBI_DESCRIPTION="(.*)"/', $pbi_conf, $match)){
+							$line['description']		= $match[1];
+						}
 						if(preg_match('/PBI_PROGICON="(.*)"/', $pbi_conf, $match)){
 							$line['icon']		= $line['svn_path'].'/resources/'.$match[1];
 						}



More information about the Commits mailing list