Commit graph

1794 commits

Author SHA1 Message Date
Loui Chang
384f1ba3c9 Remove Less and More links from search results page.
Don't show extra search results link if there is only one page of results.
Fix indenting and coding style.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19 15:28:10 -05:00
Gergely Imreh
2383f7dc06 Change: Switching "Legend" and number of results on search page
This is to present things in a bit more logical manner with the
search results page navigation.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19 14:41:20 -05:00
Gergely Imreh
0bdfe847e3 Add: page numbering of AUR search results
On the search results page the number of pages is displayed and functions
as a link, for faster navigation (not just the usual "Less/More" buttons.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19 14:39:21 -05:00
Loui Chang
844de1f25b Replace RSS icon with feed icon.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-14 22:09:26 -05:00
Gergely Imreh
5b01327f57 Fix: FS#12698 - AUR does not ignore comment lines in PKGBUILD source field.
The web interface was handling comments in the PKGBUILD variable fields
(such as 'source','depends',etc...) differently from makepkg, because
makepkg ignores the rest of the current line if there is a # character,
while the web interface parsed that as well, and listed the words of the
comment as source files.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-14 21:52:37 -05:00
Loui Chang
2da9b55d9f Fix stats functionality when APC is unavailable.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08 13:08:58 -05:00
Samed Beyribey
649517ac1f Yet another Turkish translation fix.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08 12:52:31 -05:00
Dan McGee
5d6f465170 Cache all front page stats in APC if available
Use the APC cache to store all of the counts and the recently updated
package list in a cache, which cuts down on the number of database queries
needed. If the data isn't perfectly up to date we will survive.

This version of the patch will also cache the relevant counts for individual
logged-in users and is more careful about checking whether the value
actually exists in the cache by using the status reference to apc_fetch().

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08 11:48:58 -05:00
Loui Chang
92643bb827 Don't require source or md5sum arrays in PKGBUILDs.
Also fix a translation string.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08 11:47:49 -05:00
Loui Chang
6e1de70596 Change font to a generic type.
This makes the site look better in Opera.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05 17:28:45 -05:00
Loui Chang
07e4d397ba Change layout of search form.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05 16:52:34 -05:00
Loui Chang
36b44f371b Move package comments to a template.
Change layout in the process.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05 15:59:59 -05:00
Loui Chang
6de9b376d8 Stop printing passwords in tupkgs output.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-04 16:44:19 -05:00
Loui Chang
6c3e393d4e Correct hashlib.md5 usage in tupkg and tupkgs.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-04 16:27:50 -05:00
Dan McGee
207b565f1c Minimize calls to uid_from_sid()
Just like the previous patch for account_from_sid() over-usage.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-04 14:28:24 -05:00
Dan McGee
8f97330100 Store account type in local var when possible
No need to call this function way too often, especially when on the package
list page where it could be called up to once per row.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-04 14:09:53 -05:00
Dan McGee
bf4fe7f47c aur.inc: remove unused code
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-31 10:14:12 -05:00
Loui Chang
1529020e79 Get db connection for accounts search results.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-31 10:09:04 -05:00
Dan McGee
3b4662a58e Use non-persistant connections
There is really no need to use persistent connections to the database in
this day and age. Most PHP development guides recommend against it, and the
new mysqli interface doesn't even include the functionality.

Add a matching but currently unused db_disconnect() function while we are at
it. Reference counting will cover us for the most part, however.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-30 13:00:53 -05:00
Loui Chang
94bfae4f03 Properly select page length in search form.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:49:50 -05:00
Loui Chang
35cff75156 Correct undefined constant error in pkgsubmit.
Clean up a couple of notices.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:44:57 -05:00
Callan Barrett
a16f4c77b3 Make search page use mkurl function, change variables around
Changed all the normal variables to their $_GET counterparts so everything is destructively changing the original variables, there should be no issue with this. If there I guess we need to consider making mkurl use a custom array of variables rather than $_GET

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:33:19 -05:00
Callan Barrett
d62baaecf0 Add search bar to index and pkg details pages
Also changed it around a little bit so it's not tied down the search results function

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:31:55 -05:00
Callan Barrett
3288805d2d New search bar, toggle advanced options new style
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:30:12 -05:00
Callan Barrett
520d1e2a35 Add function to generate clean urls
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:29:53 -05:00
Callan Barrett
d4b80de492 Bump to version 1.5.4
Quick release to fix the chmod issue. GO TEAM!!

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-25 01:17:14 +09:00
Callan Barrett
c4ff898fa9 Fix Turkish typos
Author: Samed Beyribey <ras0ir@eventualis.org>

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-25 01:01:55 +09:00
Loui Chang
aebf02aa8c Don't require login to see out of date packages from package search.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-22 22:02:01 +09:00
Loui Chang
22b50800e8 Make some translatable strings friendlier to common usage.
Removing trailing colons and whitespace makes them more usable.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:29:46 +09:00
Loui Chang
8f6edc4517 Encode search string for use in anchor tags.
Sorting, and viewing more results resets the search
if you search for '#' in 1.5.3. This should fix that bug.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:25:52 +09:00
Loui Chang
0793eca14f Modify and fix typos in comment notification email.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:20:40 +09:00
Loui Chang
ae1c424c95 Really make all web paths relative.
I forgot about the forms.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:19:56 +09:00
Loui Chang
b56dfc3138 Remove a couple of lines with corrupt translation data.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21 21:26:10 -05:00
Callan Barrett
b4a62c4915 Move package search results to a template
Logic is separated from html as much as possible, all html in a template

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21 12:44:31 -05:00
Callan Barrett
6415b65ac9 Fix up valid email function, FS#12269
All we're looking for now is an @ in any email address to fix problem with not being able to have + in addresses and just because I see no advantage to having any sort of stringent validation

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21 12:42:26 -05:00
Loui Chang
78c2b5c67f Introduce function include_lang for translations.
This includes only the requested language for each page and
makes top level language include files obsolete.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21 18:03:27 +09:00
Loui Chang
cfeb080dcd 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>
2008-12-21 15:24:57 +09:00
Callan Barrett
e12a8ad3da Remove success messages after package functions
Just displays message at the top of the page of what happened (errors or not) and goes back to the same page

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 18:33:45 -05:00
Callan Barrett
cde524e175 Change behaviour of package functions to accept normal arrays
Package functions use a normal array of pkgids now and packages.php has been changed to accomodate for it

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 16:58:30 -05:00
Evangelos Foutras
fb1c41c6c6 Fix PKGBUILD source array parsing.
Fix for FS#11132 - AUR fails to parse multiline source array

Signed-off-by: Evangelos Foutras <foutrelis@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 13:25:44 -05:00
Callan Barrett
07a27f2f1d Add error checking to chmod on package submission
Try submitting an empty form to the aur

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 13:02:24 -05:00
Callan Barrett
e6f076addd Remove the english includes from the main translation files
Is that what they're called? I have no idea I'm not good with computers

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 13:02:24 -05:00
Callan Barrett
a386ab5835 Revert "Move call to try_login to login_form."
This reverts commit 77d93c4946.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 12:49:28 -05:00
Nathan Jones
3de0a2ade3 Rename 'Un-Vote' and 'Unflag' buttons.
This is to be consistent with 'UnNotify'.

Signed-off-by: Nathan Jones <nathanj@insightbb.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-19 22:18:09 -05:00
Cilyan Olowen
d31481b299 Updated French translation for index.php
It's strange that some strings are not caught by ./transation_tool. I
had to add them manually.

Signed-off-by: Cilyan Olowen <gaknar@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-18 11:48:33 -05:00
Loui Chang
361609a034 Stop printing underscores around untranslated strings.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 14:38:18 -05:00
Loui Chang
f2b1d0a9a2 Remove obsolete timeout page.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 13:22:38 -05:00
Loui Chang
73cd7667d4 Remove obsolete 'hacker' page.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 13:15:21 -05:00
Loui Chang
e94fdc7b42 Add Pierre Schmitz to list of German translators.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 13:09:08 -05:00
Loui Chang
77d93c4946 Move call to try_login to login_form.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 12:58:17 -05:00