Exemplo n.º 1
0
			$parentobj = array_shift($parent);
			it_item("Parent:", link_to_package($parentobj, $showall, '(' . $parentobj['descshort'] . ')'));
		} else {
			it_item("Parent:", $pobj['parentname']);
		}
	}
	if ($pobj['infofile']) {
		# where the info file sits on a local Fink installation
		$infofile_path = $pobj['rcspath'];
		$infofile_cvs_url = 'http://fink.cvs.sourceforge.net/fink/'.$pobj['rcspath'];
		if ($pobj['rel_type'] == 'bindist')
			$infofile_tag = '?pathrev=' . $pobj['tag'];
		else
			$infofile_tag = '';
		$infofile_html  = '<a href="'.$infofile_cvs_url.$infofile_tag.($infofile_tag ? '&amp;' : '?').'view=markup" title="' . $pobj['name'] . ' info file">'.$infofile_path.'</a><br>';
		$infofile_html .= '<a href="'.$infofile_cvs_url.$infofile_tag.'?view=log" title="' . $pobj['name'] . ' CVS log">CVS log</a>, Last Changed: '. format_solr_date($pobj['infofilechanged']);
		it_item("Info-File:", $infofile_html);
	}

	$sq = new SolrQuery();
	$sq->addQuery('rel_id:"' . $pobj['rel_id'] . '"', true);
	$sq->addQuery('parentname_e:"' . $pobj['pkg_id'] . '"', true);
	$splitoffs = $sq->fetch();

	if ($splitoffs != null && count($splitoffs) != 0 && is_array($splitoffs)) {
		$contents = "<table>";
		foreach ($splitoffs as $doc) {
			$contents .= "<tr><td>" . link_to_package($doc, $showall) . "</td><td>" . $doc['descshort'] . "</td></tr>\n";
		}
		$contents .= "</table>\n";
		it_item("SplitOffs:", $contents);
Exemplo n.º 2
0
Arquivo: index.php Projeto: nieder/web
	if ($r != null) {
		$pkgcount = count($r);
		if ($pkgcount > 0) {
			memcache_set_key('pdb-package-count', $pkgcount, false, $cache_timeout);
		}
	}
}

$dyndate = date_create($update_date)->format('U');

$seccount = count($sections);

?>

<p>
The database was last updated <? print format_solr_date($update_date) ?> and currently lists
<?php 
echo $pkgcount;
?>
 packages in <?php 
echo $seccount;
?>
 sections.
</p>

<form action="browse.php" method="GET">
<p>Search for package: <input type="text" name="summary" size="15" value="">
<input type="submit" value="Search">
</p>
</form>