[PC-BSD Commits] r2027 - in websites/pbidir.com/bibivu: bin lib tpl/pbidir

svn at pcbsd.org svn at pcbsd.org
Fri Jun 6 05:09:57 PDT 2008


Author: fabry
Date: 2008-06-06 05:09:56 -0700 (Fri, 06 Jun 2008)
New Revision: 2027

Modified:
   websites/pbidir.com/bibivu/bin/start.php
   websites/pbidir.com/bibivu/lib/pbi.php
   websites/pbidir.com/bibivu/lib/pbi_release.php
   websites/pbidir.com/bibivu/tpl/pbidir/download.php
   websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php
Log:
 - added extra fields to the PBI release and to the PBI for future support of the updater.
 - changed the way that the releases are sorted on the website.

Modified: websites/pbidir.com/bibivu/bin/start.php
===================================================================
--- websites/pbidir.com/bibivu/bin/start.php	2008-06-05 21:03:03 UTC (rev 2026)
+++ websites/pbidir.com/bibivu/bin/start.php	2008-06-06 12:09:56 UTC (rev 2027)
@@ -279,8 +279,8 @@
 			$filters_64[] = array('field'=>'bits', 'operator'=>'=', 'value'=>'64');
 
 			$limit = '';	//was 3
-			$pbi_releases[32] = load_library('pbi_release')->get_all($filters_32, array('pcbsd_version_id DESC'), array(), $limit);
-			$pbi_releases[64] = load_library('pbi_release')->get_all($filters_64, array('pcbsd_version_id DESC'), array(), $limit);
+			$pbi_releases[32] = load_library('pbi_release')->get_all($filters_32, array('pcbsd_version_id DESC','date_last_status_id DESC'), array(), $limit);
+			$pbi_releases[64] = load_library('pbi_release')->get_all($filters_64, array('pcbsd_version_id DESC','date_last_status_id DESC'), array(), $limit);
 			
 //			var_dump(load_class('user_info')->get());
 

Modified: websites/pbidir.com/bibivu/lib/pbi.php
===================================================================
--- websites/pbidir.com/bibivu/lib/pbi.php	2008-06-05 21:03:03 UTC (rev 2026)
+++ websites/pbidir.com/bibivu/lib/pbi.php	2008-06-06 12:09:56 UTC (rev 2027)
@@ -105,6 +105,18 @@
 										'default' => NULL,
 										'image'	=> false,
 								);
+			$fields['real_name'] = array(	'show'	=> false,
+										'view_link'=>false,
+										'edit'	=> true,
+										'type'	=> 'string',
+										'length'=> 40,
+										'values'=> NULL,
+										'text'	=> 'PBIRealName',
+										'required' => false,
+										'post'	=> true,
+										'default' => NULL,
+										'image'	=> false,
+								);
 			$filters = array();
 			$filters[] = array('field'=>'active', 'operator'=>'=', 'value'=>'y');
 			$tmps = $this->get_raw($filters, array('name'),array(), '','category');

Modified: websites/pbidir.com/bibivu/lib/pbi_release.php
===================================================================
--- websites/pbidir.com/bibivu/lib/pbi_release.php	2008-06-05 21:03:03 UTC (rev 2026)
+++ websites/pbidir.com/bibivu/lib/pbi_release.php	2008-06-06 12:09:56 UTC (rev 2027)
@@ -149,6 +149,19 @@
 										'default' => NULL,
 										'image'	=> false,
 								);
+			$fields['md5'] = array(		'show'	=> 'field',
+										'view_link'	=> false,
+										'edit_link'=>false,
+										'edit'	=> true,
+										'type'	=> 'string',
+										'length'=> 32,
+										'values'=> NULL,
+										'text'	=> 'MD5',
+										'required' => false,
+										'post'	=> true,
+										'default' => NULL,
+										'image'	=> false,
+								);
 			$fields['bits'] = array(	'show'	=> true,
 										'view_link'	=> false,
 										'edit'	=> true,

Modified: websites/pbidir.com/bibivu/tpl/pbidir/download.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/download.php	2008-06-05 21:03:03 UTC (rev 2026)
+++ websites/pbidir.com/bibivu/tpl/pbidir/download.php	2008-06-06 12:09:56 UTC (rev 2027)
@@ -15,6 +15,10 @@
 	?></h2><?php
 }
 ?>
+<?php
+if($pbi_release['md5']!=''){
+	?><br/><?=load_library('lang')->get('md5')?>: <?=$pbi_release['md5']?><br /><br /><?php
+} ?>
 <br/><?=load_library('lang')->get('download_nostart')?> <a href="<?=$uri?>"><?=load_library('lang')->get('download_clickhere')?></a><br /><br />
 <a href="<?=$pbi_uri?>/<?=$pbi['id']?>"><?=load_library('lang')->get('download_return_pbi')?></a><br /><br />
 <script type="text/javascript" language="javascript"><!-- 

Modified: websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php	2008-06-05 21:03:03 UTC (rev 2026)
+++ websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php	2008-06-06 12:09:56 UTC (rev 2027)
@@ -16,7 +16,7 @@
 					<th><?=load_library('lang')->get('pbi_summary')?></th>
 					<th width="75"><?=load_library('lang')->get('pbi_size')?></th>
 					<th width="75"><?=load_library('lang')->get('pbi_added')?></th>
-					<th width="75"><?=load_library('lang')->get('pcbsd')?></th>
+					<th width="100"><?=load_library('lang')->get('pcbsd')?></th>
 				</tr>
 			</thead>
 			<tbody><?php



More information about the Commits mailing list