Skip to content
Permalink
Browse files

o make port:foo dependencies display like the lib:foo:bar ones do. o …

…therefore fix the linking

o and then modify the linking so the _exact_ match is found (only) when           clicking on a dependency link.

Bug:            https://trac.macports.org/ticket/2022
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@15413 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Charlie Allom
Charlie Allom committed Dec 11, 2005
1 parent 72b749a commit 2917fd4809429c8904f005618576999c6a132411
Showing with 30 additions and 15 deletions.
  1. +6 −3 es/ports.php
  2. +6 −3 fr/ports.php
  3. +6 −3 it/ports.php
  4. +6 −3 ports.php
  5. +6 −3 ru/ports.php
@@ -77,6 +77,9 @@
if ($by == "name") {
$query = $query . " AND p.name LIKE '%" . addslashes($substr) . "%'";
}
if ($by == "library") {
$query = $query . " AND p.name='" . addslashes($substr) . "'";
}
if ($by == "desc") {
$query = $query . " AND p.description LIKE '%" . addslashes($substr) . "%'";
}
@@ -173,9 +176,9 @@
<?
while ( $nrow = mysql_fetch_array($nresult) ) {
// lib:libpng.3:libpng -> libpng
$library = eregi_replace("^[^:]*:[^:]*:", "", $nrow[0]);
$library = eregi_replace("^([^:]*:[^:]*:|[^:]*:)", "", $nrow[0]);
?>
<a href="<?= $PHP_SELF; ?>?by=name&substr=<?= $library; ?>"><?= $library; ?></a>
<a href="<?= $PHP_SELF; ?>?by=library&substr=<?= $library; ?>"><?= $library; ?></a>
<?
}
}
@@ -211,4 +214,4 @@
</div>
<?php
print_footer();
?>
?>
@@ -77,6 +77,9 @@
if ($by == "name") {
$query = $query . " AND p.name LIKE '%" . addslashes($substr) . "%'";
}
if ($by == "library") {
$query = $query . " AND p.name='" . addslashes($substr) . "'";
}
if ($by == "desc") {
$query = $query . " AND p.description LIKE '%" . addslashes($substr) . "%'";
}
@@ -173,9 +176,9 @@
<?
while ( $nrow = mysql_fetch_array($nresult) ) {
// lib:libpng.3:libpng -> libpng
$library = eregi_replace("^[^:]*:[^:]*:", "", $nrow[0]);
$library = eregi_replace("^([^:]*:[^:]*:|[^:]*:)", "", $nrow[0]);
?>
<a href="<?= $PHP_SELF; ?>?by=name&substr=<?= $library; ?>"><?= $library; ?></a>
<a href="<?= $PHP_SELF; ?>?by=library&substr=<?= $library; ?>"><?= $library; ?></a>
<?
}
}
@@ -211,4 +214,4 @@
</div>
<?php
print_footer();
?>
?>
@@ -78,6 +78,9 @@
if ($by == "name") {
$query = $query . " AND p.name LIKE '%" . addslashes($substr) . "%'";
}
if ($by == "library") {
$query = $query . " AND p.name='" . addslashes($substr) . "'";
}
if ($by == "desc") {
$query = $query . " AND p.description LIKE '%" . addslashes($substr) . "%'";
}
@@ -174,9 +177,9 @@
<?
while ( $nrow = mysql_fetch_array($nresult) ) {
// lib:libpng.3:libpng -> libpng
$library = eregi_replace("^[^:]*:[^:]*:", "", $nrow[0]);
$library = eregi_replace("^([^:]*:[^:]*:|[^:]*:)", "", $nrow[0]);
?>
<a href="<?= $PHP_SELF; ?>?by=name&substr=<?= $library; ?>"><?= $library; ?></a>
<a href="<?= $PHP_SELF; ?>?by=library&substr=<?= $library; ?>"><?= $library; ?></a>
<?
}
}
@@ -212,4 +215,4 @@
</div>
<?php
print_footer();
?>
?>
@@ -77,6 +77,9 @@
if ($by == "name") {
$query = $query . " AND p.name LIKE '%" . addslashes($substr) . "%'";
}
if ($by == "library") {
$query = $query . " AND p.name='" . addslashes($substr) . "'";
}
if ($by == "desc") {
$query = $query . " AND p.description LIKE '%" . addslashes($substr) . "%'";
}
@@ -173,9 +176,9 @@
<?
while ( $nrow = mysql_fetch_array($nresult) ) {
// lib:libpng.3:libpng -> libpng
$library = eregi_replace("^[^:]*:[^:]*:", "", $nrow[0]);
$library = eregi_replace("^([^:]*:[^:]*:|[^:]*:)", "", $nrow[0]);
?>
<a href="<?= $PHP_SELF; ?>?by=name&substr=<?= $library; ?>"><?= $library; ?></a>
<a href="<?= $PHP_SELF; ?>?by=library&substr=<?= $library; ?>"><?= $library; ?></a>
<?
}
}
@@ -211,4 +214,4 @@
</div>
<?php
print_footer();
?>
?>
@@ -76,6 +76,9 @@
if ($by == "name") {
$query = $query . " AND p.name LIKE '%" . addslashes($substr) . "%'";
}
if ($by == "library") {
$query = $query . " AND p.name='" . addslashes($substr) . "'";
}
if ($by == "desc") {
$query = $query . " AND p.description LIKE '%" . addslashes($substr) . "%'";
}
@@ -172,9 +175,9 @@
<?
while ( $nrow = mysql_fetch_array($nresult) ) {
// lib:libpng.3:libpng -> libpng
$library = eregi_replace("^[^:]*:[^:]*:", "", $nrow[0]);
$library = eregi_replace("^([^:]*:[^:]*:|[^:]*:)", "", $nrow[0]);
?>
<a href="<?= $PHP_SELF; ?>?by=name&substr=<?= $library; ?>"><?= $library; ?></a>
<a href="<?= $PHP_SELF; ?>?by=library&substr=<?= $library; ?>"><?= $library; ?></a>
<?
}
}
@@ -210,4 +213,4 @@
</div>
<?php
print_footer();
?>
?>

0 comments on commit 2917fd4

Please sign in to comment.
You can’t perform that action at this time.