From 7f6993be6867cf7c54e1f6c0f5f29251c2043818 Mon Sep 17 00:00:00 2001 From: Marcel Korpel Date: Sun, 23 Dec 2012 17:20:14 +0000 Subject: Added RewriteRule for Apache Signed-off-by: Lukas Fleischer --- INSTALL | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/INSTALL b/INSTALL index 76df42b9..e8bf797d 100644 --- a/INSTALL +++ b/INSTALL @@ -86,4 +86,11 @@ Setup on Arch Linux: $ cd ~/aur/web/lib/ $ cp config.inc.php.proto config.inc.php + In case you set $USE_VIRTUAL_URLS to true (default nowadays) you should add + a rewrite rule. For Apache, add this ~/aur/web/html/.htaccess: + + RewriteEngine on + RewriteCond %{REQUEST_URI} !^/index.php + RewriteRule ^(.*)$ /index.php/$1 + 8) Point your browser to http://aur -- cgit v1.2.3-24-g4f1b From 398fdb67ead0dd0fe82a9983f6aa0c99f322d806 Mon Sep 17 00:00:00 2001 From: Marcel Korpel Date: Sun, 6 Jan 2013 13:34:06 +0000 Subject: We live in 2013 now Signed-off-by: Lukas Fleischer --- web/template/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/footer.php b/web/template/footer.php index 857211ee..806d3be5 100644 --- a/web/template/footer.php +++ b/web/template/footer.php @@ -5,7 +5,7 @@

AUR

-

Copyright © 2004-2012 AUR Development Team.

+

Copyright © 2004- AUR Development Team.

-- cgit v1.2.3-24-g4f1b From fcb30db59f301468fdd696964c07d27a3d09def8 Mon Sep 17 00:00:00 2001 From: Marcel Korpel Date: Wed, 9 Jan 2013 17:48:57 +0000 Subject: Remove double htmlspecialchars This is already done in header.php; doing this double will result in & in title element Signed-off-by: Lukas Fleischer --- web/lib/aur.inc.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 018d5c82..387d81de 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -303,8 +303,6 @@ function html_header($title="") { global $LANG; global $SUPPORTED_LANGS; - $title = htmlspecialchars($title, ENT_QUOTES); - include('header.php'); return; } -- cgit v1.2.3-24-g4f1b From d23a8706716415ecd5a51e93c8cb2b0d69056f03 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Mon, 14 Jan 2013 21:24:50 +0000 Subject: user_table.php: Remove unused link parameter Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/template/stats/user_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/stats/user_table.php b/web/template/stats/user_table.php index ba6751f4..284d5b9e 100644 --- a/web/template/stats/user_table.php +++ b/web/template/stats/user_table.php @@ -7,7 +7,7 @@ $username = username_from_sid($_COOKIE["AURSID"]); -- cgit v1.2.3-24-g4f1b From 07edcdab17f78ef39c3b975ea3cdbac38de8a800 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Mon, 14 Jan 2013 21:44:12 +0000 Subject: stats.inc.php: Remove unnecessary account type lookup Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/lib/stats.inc.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/lib/stats.inc.php b/web/lib/stats.inc.php index 60973e90..cfae7947 100644 --- a/web/lib/stats.inc.php +++ b/web/lib/stats.inc.php @@ -43,9 +43,6 @@ function user_table($userid, $dbh) { $flagged_outdated = db_cache_value($q, $dbh, 'user_flagged_outdated:' . $userid); - # If the user is a TU calculate the number of the packages - $atype = account_from_sid($_COOKIE["AURSID"]); - include('stats/user_table.php'); } -- cgit v1.2.3-24-g4f1b
- +