mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use virtual path feature for links
Use virtual paths in links (e.g. link to "/packages/" instead of "/packages.php" etc.) if the virtual path feature is enabled. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
a03c684ecd
commit
2425f963f8
24 changed files with 61 additions and 61 deletions
|
@ -116,17 +116,17 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
|||
$nextresult = proposal_count();
|
||||
?>
|
||||
<div class="box">
|
||||
<p><a href="addvote.php"><?php print __("Add Proposal") ?></a></p>
|
||||
<p><a href="<?php echo get_uri('/addvote/'); ?>"><?php print __("Add Proposal") ?></a></p>
|
||||
|
||||
<?php if ($result):
|
||||
$by = htmlentities($by, ENT_QUOTES); ?>
|
||||
<?php if ($off != 0):
|
||||
$back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
|
||||
<a href='tu.php?off=<?php print $back ?>&by=<?php print $by ?>'><?php print __("Back") ?></a>
|
||||
<a href='<?php echo get_uri('/tu/'); ?>?off=<?php print $back ?>&by=<?php print $by ?>'><?php print __("Back") ?></a>
|
||||
<?php endif; ?>
|
||||
<?php if (($off + $limit) < $nextresult):
|
||||
$forw = $off + $limit; ?>
|
||||
<a href="tu.php?off=<?php print $forw ?>&by=<?php print $by ?>"><?php print __("Next") ?></a>
|
||||
<a href="<?php echo get_uri('/tu/'); ?>?off=<?php print $forw ?>&by=<?php print $by ?>"><?php print __("Next") ?></a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
@ -134,7 +134,7 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
|||
}
|
||||
}
|
||||
else {
|
||||
header('Location: index.php');
|
||||
header('Location: /');
|
||||
}
|
||||
|
||||
html_footer(AUR_VERSION);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue