mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Navigation to the "AccountInfo" page should only require a user to know the username of the account they are looking for. Update all AUR links that use the user info page to reflect the new URL. Before: AUR_URL/account/?Action=AccountInfo&U=userfoo After: AUR_URL/account/userfoo Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
31 lines
775 B
PHP
31 lines
775 B
PHP
<?php
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
|
include_once('aur.inc.php');
|
|
include_once('pkgfuncs.inc.php');
|
|
|
|
$SID = $_COOKIE['AURSID'];
|
|
|
|
$pkgid = intval($_GET['ID']);
|
|
$votes = getvotes($pkgid);
|
|
$atype = account_from_sid($SID);
|
|
|
|
html_header(__("Voters"));
|
|
|
|
if ($atype == 'Trusted User' || $atype== 'Developer'):
|
|
?>
|
|
|
|
<div class="box">
|
|
<h2>Votes for <a href="<?php echo get_pkg_uri(pkgname_from_id($pkgid)); ?>"><?php echo pkgname_from_id($pkgid) ?></a></h2>
|
|
<div class="boxbody">
|
|
<ul>
|
|
<?php while (list($indx, $row) = each($votes)): ?>
|
|
<li><a href="<?php echo get_user_uri($row['Username']); ?>"><?php echo htmlspecialchars($row['Username']) ?></a></li>
|
|
<?php endwhile; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
endif;
|
|
|
|
html_footer(AUR_VERSION);
|