mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Show detached gpg sigs for apks in repo browser
This commit is contained in:
parent
088b7dfa2a
commit
fdd7123c55
1 changed files with 8 additions and 4 deletions
|
@ -33,15 +33,16 @@ class FDroidLatestWidget extends WP_Widget {
|
||||||
if ($handle) {
|
if ($handle) {
|
||||||
while (($buffer = fgets($handle, 4096)) !== false) {
|
while (($buffer = fgets($handle, 4096)) !== false) {
|
||||||
$app = explode("\t", $buffer);
|
$app = explode("\t", $buffer);
|
||||||
echo '<a href="/repository/browse/?fdid='.$app[0].'">';
|
echo '<div style="width:100%">';
|
||||||
if(isset($app[2]) && trim($app[2])) {
|
if(isset($app[2]) && trim($app[2])) {
|
||||||
echo '<img src="' . site_url() . '/repo/icons/'.$app[2].'" style="width:32px;border:none;float:right;" />';
|
echo '<img src="' . site_url() . '/repo/icons/'.$app[2].'" style="width:32px;border:none;float:right;" />';
|
||||||
}
|
}
|
||||||
echo $app[1].'<br />';
|
echo '<p style="margin:0px;"><a href="/repository/browse/?fdid='.$app[0].'">';
|
||||||
|
echo $app[1].'</a><br/>';
|
||||||
if(isset($app[3]) && trim($app[3])) {
|
if(isset($app[3]) && trim($app[3])) {
|
||||||
echo '<span style="color:#BBBBBB;">'.$app[3].'</span>';
|
echo '<span style="color:#BBBBBB;">'.$app[3].'</span></p>';
|
||||||
}
|
}
|
||||||
echo '</a><br style="clear:both;" />';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
}
|
}
|
||||||
|
@ -463,6 +464,9 @@ class FDroid
|
||||||
$out.=$diffSize>0?'+':'';
|
$out.=$diffSize>0?'+':'';
|
||||||
$out.=$this->human_readable_size($diffSize, 1).')</span>';
|
$out.=$this->human_readable_size($diffSize, 1).')</span>';
|
||||||
}
|
}
|
||||||
|
if(file_exists($this->site_path.'/repo/'.$apk['apkname'].'.txt')) {
|
||||||
|
$out.=' <a href="https://f-droid.org/repo/'.$apk['apkname'].'.txt">GPG Signature</a> ';
|
||||||
|
}
|
||||||
if($srcbuild) {
|
if($srcbuild) {
|
||||||
$out.='<br /><a href="https://f-droid.org/repo/'.$apk['srcname'].'">source tarball</a> ';
|
$out.='<br /><a href="https://f-droid.org/repo/'.$apk['srcname'].'">source tarball</a> ';
|
||||||
$out.=$this->human_readable_size(filesize($this->site_path.'/repo/'.$apk['srcname']));
|
$out.=$this->human_readable_size(filesize($this->site_path.'/repo/'.$apk['srcname']));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue