summaryrefslogtreecommitdiffstats
path: root/web/template/header.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-14 01:24:59 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-15 22:44:51 +0200
commit2425f963f8ad45292c217914b5fee1ed18104c26 (patch)
tree9dd5bcd1d4c95d9bbe8a5d96cd9f6610bd665787 /web/template/header.php
parenta03c684ecd51327f9c6921a6e0001d82e3223799 (diff)
downloadaurweb-2425f963f8ad45292c217914b5fee1ed18104c26.tar.xz
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>
Diffstat (limited to 'web/template/header.php')
-rw-r--r--web/template/header.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 246b304..52c0ab8 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -8,7 +8,7 @@
<link rel='stylesheet' type='text/css' href='/css/archweb.css' />
<link rel='stylesheet' type='text/css' href='/css/aur.css' />
<link rel='shortcut icon' href='/images/favicon.ico' />
- <link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='rss.php' />
+ <link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='<?php echo get_uri('/rss/'); ?>' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
@@ -50,17 +50,17 @@
</div>
<div id="archdev-navbar">
<ul>
- <li><a href="index.php">AUR <?php print __("Home"); ?></a></li>
- <li><a href="packages.php"><?php print __("Packages"); ?></a></li>
+ <li><a href="<?php echo get_uri('/'); ?>">AUR <?php print __("Home"); ?></a></li>
+ <li><a href="<?php echo get_uri('/packages/'); ?>"><?php print __("Packages"); ?></a></li>
<?php if (isset($_COOKIE['AURSID'])): ?>
- <li><a href="packages.php?SeB=m&amp;K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
- <li><a href="pkgsubmit.php"><?php print __("Submit"); ?></a></li>
- <li><a href="account.php"><?php print __("Accounts"); ?></a></li>
- <?php if (check_user_privileges()): ?><li><a href="tu.php"><?php print __("Trusted User"); ?></a></li><?php endif; ?>
- <li><a href="logout.php"><?php print __("Logout"); ?></a></li>
+ <li><a href="<?php echo get_uri('/packages/'); ?>?SeB=m&amp;K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
+ <li><a href="<?php echo get_uri('/submit/'); ?>"><?php print __("Submit"); ?></a></li>
+ <li><a href="<?php echo get_uri('/accounts/'); ?>"><?php print __("Accounts"); ?></a></li>
+ <?php if (check_user_privileges()): ?><li><a href="<?php echo get_uri('/tu/'); ?>"><?php print __("Trusted User"); ?></a></li><?php endif; ?>
+ <li><a href="<?php echo get_uri('/logout/'); ?>"><?php print __("Logout"); ?></a></li>
<?php else: ?>
- <li><a href="account.php"><?php print __("Register"); ?></a></li>
- <li><a href="login.php"><?php print __("Login"); ?></a></li>
+ <li><a href="<?php echo get_uri('/register/'); ?>"><?php print __("Register"); ?></a></li>
+ <li><a href="<?php echo get_uri('/login/'); ?>"><?php print __("Login"); ?></a></li>
<?php endif; ?>
</ul>
</div><!-- #archdev-navbar -->