Commit graph

953 commits

Author SHA1 Message Date
Loui Chang
ab023f4ccf Move search form to web/template/pkg_search_form.php
Nothing fancy here, just cut & paste

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-04-25 11:10:01 -05:00
Loui Chang
77a2564b9c Fix some string translation problems in acctfuncs
update a few others to new usage

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-04-03 19:54:50 -05:00
Loui Chang
ba9eda5503 New behaviour for translations. Function takes variable number of arguments.
The old string,array usage is still supported however. (for now)

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-27 02:36:15 -05:00
Callan Barrett
04dae8d94f Remove references to AURMaintainerUID
This (should) get rid of anything to do with the unused column AURMaintainerUID
in the scripts and schema files

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-27 02:34:35 -05:00
Simo Leone
7d7ef9b112 Version bump to 1.5.1
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:16:29 -05:00
Simo Leone
99e65b28d8 Revamped pkg_search_page()
- Reduced database hits
- Improved speed
- Improved sanity (slightly)
- Fixed searches,buttons,gizmos

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:07:22 -05:00
Loui Chang
b1fe84d397 Fixed bug where search resets when browsing orphans
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:17 -05:00
Loui Chang
3577326b2b Make all references to AUR database consistent
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:17 -05:00
Callan Barrett
172dbf696b Fixed broken search results
Quick fix for my friggin crazy more and less link patch that was swapping the
search results order every click and not remembering how to sort, my bad

This could probably use improvement but it means the search actually works now

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:16 -05:00
Loui Chang
fca67672fd One more json fix 2008-03-23 03:04:16 -05:00
Loui Chang
0e32c8648f Changed valid_passwd() to check for non-empty password instead of good_passwd()
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:16 -05:00
Loui Chang
a5a8895f49 Put login into its own function.
Utilise login form template.
Also cleaned up a couple notices.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:16 -05:00
Loui Chang
541ea8aacc Fixed a couple more lingering JSON bugs
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:16 -05:00
Simo Leone
9254804e1e Fixed operator precendence in aurjson
My bad

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:16 -05:00
Simo Leone
196543a9e7 Make JSON interface work
Now makes sure json php module is loaded,
also fixed a few coding errors and made
the search behave like the search on the
web interface.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-23 03:04:16 -05:00
Callan Barrett
e7bb7a220d Turn more and less buttons into links
This is to (at least) fix the more and less buttons which weren't working
because of the drop down menu for actions

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-02-18 22:31:56 -06:00
Simo Leone
32be42aee1 Bump version to 1.5.0
Yes.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-02-18 20:43:56 -06:00
eliott
4d9d5d3966 Fix for information leak in login logic.
Fix for information leak in login logic.
No point telling people they have a valid username when the pass is wrong, etc.
2008-02-18 17:55:28 -06:00
eliott
aedf2ab6a3 Fix for 'More' and 'Less' paging breakage.
Fix for 'More' and 'Less' paging breakage.
Takes into account PerPage and Category retention.
2008-02-18 17:54:28 -06:00
Simo Leone
7bad8a8357 Removed QBUG and DBUG
It was broken and hardly used. It's just as easy
to add short print statements or logging if
some debugging output is needed.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-01-23 02:51:33 -06:00
Callan Barrett
d14def92ff Turn action bar into drop box
Moves the action bar down to the bottom right of the search results and turns it
into a drop-down selection box.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-01-20 03:18:16 -06:00
Callan Barrett
52a770e7e7 Fix login error and translation bug
Fixes a login error where entering nothing would result in the login message
"Incorrect password for username, ." and changes the translation "TU" to
"Trusted User" so the menu bar on the accounts page doesn't bug up (we need a
new translation system :((()

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-01-20 03:16:07 -06:00
Callan Barrett
14ecbf5fd5 Add search result information
This adds search results numbers to the bottom of pages when searching based on
tardo's repository, ex. Showing results 1 - 42 of 42

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:21 -06:00
Callan Barrett
8ab823728c More cleanup, add TU link to header
Cleans up links on front page, adds a TU link to the header to the voting
application, fixes some titles and styling for logged in text

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:21 -06:00
Callan Barrett
379e16eebd Support for verbose page titles
Verbose page titles again

Adds support for more verbose page titles based on current
page and action by user and removes sort by options from
search form as they're obsolete by column links.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:20 -06:00
Callan Barrett
d4b07f2b33 Tweaks of various page layouts and handling of data
This is a patch that fixes a lot of little things:
* We no longer have pkgsearch or pkgdetails link functions and all
references to them are gone, that's what a back button is for and if
we really need it we can come up with something better
* No longer have do_Details variable, this means links on the package
search are simply ?ID=foo
* On the pkgdetails pages when there are either no deps, deps by,
sources or comments for a package the list for each will display
"None" instead of nothing at all (ruining the layout)
* Fixed a bug where if a package had no sources or no deps
pkgsubmit.php would submit an empty one
* Translation of the word "Search'" has been changed to "Search"

Most of these relate to each other.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:20 -06:00
Callan Barrett
dbbf50ac90 Removes need for name, overwrite and comment fields from pkgsubmit.php
This removes the name, overwrite and comment options from pkgsubmit.php
by moving when the tarball is extracted (and where) and when the pkgbuild
is parsed so pkgname is taken from the pkgbuild instead of user input

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:20 -06:00
Callan Barrett
8c94552042 Add notify column in search results and notify button
Adds a column to search results showing if a package has comment
notification enabled and adds support for toggling notify for
multiple packages from search

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:19 -06:00
Callan Barrett
bf5c28cf22 Fix bug with botched AURSID values
In the check_sid function in aur.inc the condition for expiring the
cookie and redirecting to hacker.php could never be met and instead
the user would be given blank login instead of being considered logged
out, now fixed. This also means we no longer need either hacker.php or
timeout.php at all.

Also, this bug seems to be present in the AUR version running on
aur.archlinux.org.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:19 -06:00
Callan Barrett
0e4b25211b Removes timeout page and moves login form to header
This removes the need for a timeout page (and probably hacker.php) and
moves the login form and status to the header. If your login times out
you won't lose your place anymore and links will always work. Works
for me but at the moment index_po.php is imported in aur.inc which has
to stay until the translations from it for login are moved to
aur_po.php.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:19 -06:00
Callan Barrett
9a83e56b69 Adds support for TUs and devs to disown packages they do not own
This is to add support for either devs or TUs to disown packages
whether they own them or not. I know of countless times where I or
another TU have been asked to orphan packages for someone and end up
having to adopt the package first and then disown it, this gets really
tedious for more than one package. As far as I can tell there's no
other way to disown packages you don't own and if there is at least
this is a more obvious way, pretty sure I didn't leave anything out in
the patch.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:19 -06:00
eliott
32b863203f Modified to get details based on an exact package name, or based on a package id. 2008-01-20 00:21:19 -06:00
eliott
47e80c24af Removed reference to 'safe' 2008-01-20 00:21:19 -06:00
eliott
f4bfe44876 Comments are listed in reverse order (latest first)
So it makes sense to have the "add comment" at the top..where it is already.
Removed duplicate "add comment" box.
2008-01-20 00:21:18 -06:00
eliott
a9837329d6 Hand diff of simo's patch to remove flag safe functionality.
Simo's original commit text:
 The idea of safe flagging is unclear, poorly named, misunderstood,
 and not even used. At the time this patch was created, less than
 a third of the packages in unsupported were flagged safe, and less
 than a tenth of users knew how to interpret it.

 The safe flag has been replaced by a disclaimer on the main page.
2008-01-20 00:21:18 -06:00
eliott
36dd7736c9 Moved usage documentation out of the class.
Fixed an issue in the handle class.
2008-01-19 23:49:35 -06:00
eliott
5e38e3d3d0 Added AurJSON code.
Added a JSON interface to the aur. This should make it easier for developers to integrate
command line utilities and poll against the AUR itself.
2008-01-19 23:49:35 -06:00
Paul Mattal
9274f54287 Revert "Move "Add Comment" button to Actions bar."
This reverts commit 9b4472ef2fb91e91539def70f905cfe1ec6a8a3a.
We have decided to put the button by itself on the bottom, so
it does not get lost. This might be reconsidered in later UI
revamping.
2008-01-19 23:49:35 -06:00
Loui Chang
e9de45954a Several functions added to web/lib/acctfuncs.inc Weeere back!
try_login() to login users

valid_username() checks if a new username fits criteria

valid_user() checks if the user exists in the database

good_passwd() only checks for minimum password length for now.
can be later expanded to tell a user to make a stronger password.

valid_passwd() checks if the password for the specified user is correct

user_suspended() checks if the user is suspended (or not)

user_delete() deletes a user (it doesn't orphan PKGs yet though)

user_is_privileged() returns privilege level User (0) TU (2) Dev (3) of
user ID. 0 is used for a regular user for ease in conditionals.

Also:	Enforce proper usernames on account creation or editing
	Fix bug where $SUPPORTED_LANGS needs to be reset on account creation
	Fix bug where an account could be created with an empty passwd
	Display (required) beside password fields on account creation
	Enforce good_passwd() on account creation

	TUs and Devs can edit a user to have a username that doesn't conform to
	the standard valid_username(). This is to allow them to edit old
	accounts without messing up the user name.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:49:35 -06:00
Loui Chang
da9d2b9e0d Make "Out of Date" pkgs more NOTICABLE.
Includes a translation change. Why oh why would one conceive to put
HTML markup into the translation?

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:49:10 -06:00
tardo
d06163269b Move "Add Comment" button to Actions bar.
The lonely button now gains some friends.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2008-01-19 23:48:30 -06:00
Loui Chang
c404c278cc Revert "Several functions added to web/lib/acctfuncs.inc"
This has a couple of bugs I just discovered arrgh. We shall return
This reverts commit 5e7e9f1b21d8803c718ac8551f8e0e25709fcd6f.
2008-01-19 23:47:45 -06:00
Loui Chang
6b3e902851 Several functions added to web/lib/acctfuncs.inc
try_login() to login users

valid_username() checks if a new username fits criteria

valid_user() checks if the user exists in the database

good_passwd() only checks for minimum password length for now.
can be later expanded to tell a user to make a stronger password.

valid_passwd() checks if the password for the specified user is correct

user_suspended() checks if the user is suspended (or not)

user_delete() deletes a user

Also:	Enforce proper usernames on account creation
	Fix bug where $SUPPORTED_LANGS needs to be reset on account creation
	Fix bug where an account could be created with an empty passwd
	Display (required) beside password fields on account creation
	Enforce good_passwd() on account creation

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:47:03 -06:00
Loui Chang
8f7fb2b1cb search_accounts_form() output is put into a template
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:46:55 -06:00
Loui Chang
878d0bb39a Added header, footer, and login form templates
Implemented the first two in web/lib/aur.inc.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:45:07 -06:00
Simo Leone
016e8796c3 Update tur-users -> aur-general
Fix broken links after mailing list rename.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-12-02 16:10:59 -06:00
Paul Mattal
9638a5c8e3 Changed version to 1.4.1.
Changed version string to 1.4.1 in preparation for release.
2007-10-11 09:36:08 -04:00
Paul Mattal
593b69a98d Revert "Move "Add Comment" button to Actions bar."
This reverts commit 9b4472ef2fb91e91539def70f905cfe1ec6a8a3a.
We have decided to put the button by itself on the bottom, so
it does not get lost. This might be reconsidered in later UI
revamping.
2007-10-11 09:28:00 -04:00
tardo
783895de73 Move "Add Comment" button to Actions bar.
The lonely button now gains some friends.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-11 09:25:51 -04:00
tardo
ab3837ab3a Remove unnecessary locations from search criteria.
Currently, locations include none/current/extra/unstable. Since no package should be located in such an area, there's no point in including them in search criteria. The proper way to do this might be to delete the SQL table data relating to this, but this will suffice for now.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-11 08:58:20 -04:00