summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-20 23:42:35 -0500
committerCallan Barrett <wizzomafizzo@gmail.com>2008-12-21 15:24:57 +0900
commitcfeb080dcd7f593cf70a7d12ef873c95c95ae40f (patch)
treea8cb1c869f3ee67d55d8407051b77a3ed268622c /web/template
parente12a8ad3da6fdec073e099438a69f745f5b9faf5 (diff)
downloadaurweb-cfeb080dcd7f593cf70a7d12ef873c95c95ae40f.tar.xz
Make all web paths relative.
The site no longer needs to be hosted from the root of a domain, or virtual host. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/header.php14
-rw-r--r--web/template/login_form.php2
2 files changed, 8 insertions, 8 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 352135a..dcf99f3 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -5,9 +5,9 @@
xml:lang="<?php print "$LANG\" lang=\"$LANG"; ?>">
<head>
<title>AUR (<?php print $LANG; ?>)<?php if ($title != "") { print " - " . $title; } ?></title>
- <link rel='stylesheet' type='text/css' href='/css/fonts.css' />
- <link rel='stylesheet' type='text/css' href='/css/containers.css' />
- <link rel='stylesheet' type='text/css' href='/css/arch.css' />
+ <link rel='stylesheet' type='text/css' href='css/fonts.css' />
+ <link rel='stylesheet' type='text/css' href='css/containers.css' />
+ <link rel='stylesheet' type='text/css' href='css/arch.css' />
<link rel='shortcut icon' href='images/favicon.ico' />
<link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='rss2.php' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -20,7 +20,7 @@
<div id="main_nav">
<ul>
<li><a href="http://www.archlinux.org/download/">Download</a></li>
- <li class="selected"><a href="/">AUR</a></li>
+ <li class="selected"><a href="index.php">AUR</a></li>
<li><a href="http://bugs.archlinux.org/">Bugs</a></li>
<li><a href="http://wiki.archlinux.org/">Wiki</a></li>
<li><a href="http://bbs.archlinux.org/">Forums</a></li>
@@ -46,13 +46,13 @@
<?php
if (isset($_COOKIE["AURSID"])) {
?>
- <li><a href="/pkgsubmit.php"><?php print __("Submit"); ?></a></li>
- <li><a href="/packages.php?SeB=m&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="packages.php?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
<?php
if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User"
|| account_from_sid($_COOKIE["AURSID"]) == "Developer") {
?>
- <li><a href="/tu.php"><?php print __("Trusted User"); ?></a></li>
+ <li><a href="tu.php"><?php print __("Trusted User"); ?></a></li>
<?php
}
}
diff --git a/web/template/login_form.php b/web/template/login_form.php
index 70c24c7..1eba5cf 100644
--- a/web/template/login_form.php
+++ b/web/template/login_form.php
@@ -3,7 +3,7 @@
if (isset($_COOKIE["AURSID"])) {
print __("Logged-in as: %h%s%h", array("<b>", username_from_sid($_COOKIE["AURSID"]), "</b>"));
?>
-<br /><a href="/logout.php"><?php print __("Logout"); ?></a>
+<br /><a href="logout.php"><?php print __("Logout"); ?></a>
<?php
}
else {