diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-11 07:42:58 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-11 07:42:58 +0100 |
commit | 33fddcbfbd70fa0f5f69d1a1784cd6aa845947dd (patch) | |
tree | ffa755461770f94013f9af2b79cb56d03bf47cd3 | |
parent | ec5b8ede42a7171f55b8668f07b0570ba3c513de (diff) |
remove "Packages" and "Fedora Git" links, add "Koschei" link
-rw-r--r-- | all.php | 4 | ||||
-rw-r--r-- | smarty/templates/rpmphp/zoom.tpl | 2 | ||||
-rw-r--r-- | zoom.php | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -64,8 +64,8 @@ function report ($db) if (substr($what, 0, 1)=='%') { $l = substr($what, 1, 1); - if (!ctype_alpha($l) && !ctype_digit($l)) { - $l = 'a'; + if ((!ctype_alpha($l) && !ctype_digit($l)) || strlen($what)>2) { + die("Hmm..."); } $sql = sprintf( "SELECT DISTINCT name diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl index cfc1cb7..960a908 100644 --- a/smarty/templates/rpmphp/zoom.tpl +++ b/smarty/templates/rpmphp/zoom.tpl @@ -43,7 +43,7 @@ <td{if $k eq 'Description'} id="pkgdb_desc"{/if}> {if $k eq 'Bugzilla'} <a href="{$v}">Active bugs</a> - {elseif $k eq 'URL' or $k eq 'Pagure' or $k eq 'Packages' or $k eq 'Fedora git'} + {elseif $k eq 'URL' or $k eq 'Pagure' or $k eq 'Packages' or $k eq 'Koschei'} <a href="{$v}">{$v}</a> {else} {$v} @@ -166,8 +166,8 @@ if ( !isset($name) || !$name ) { '&component=' . $name; } $summary['Pagure'] = "https://src.fedoraproject.org/rpms/$name"; - $summary['Fedora git'] = "https://src.fedoraproject.org/cgit/rpms/$name.git/"; - $summary['Packages'] = "https://apps.fedoraproject.org/packages/$name"; + $summary['Koschei'] = "https://koschei.fedoraproject.org/package/$name"; + //$summary['Packages'] = "https://apps.fedoraproject.org/packages/$name"; //if (isset($_GET['pkgdb'])) { // $fedpkg = $fedcli->getPackageInfo($name); |