Commit graph

230 commits

Author SHA1 Message Date
Loui Chang
2ac75bd812 Move package notification into a function.
Also modify the way notification is done. Instead of toggling
notification, users can explicitly notify or unnotify.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-11-13 15:19:20 -05:00
Loui Chang
cf2a82fe85 Clear out old expired sessions on log out.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-11-13 15:18:48 -05:00
Loui Chang
a6147ab5ab Merge branch 'testing'
Conflicts:
	web/html/pkgsubmit.php

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-11-03 21:52:07 -05:00
Callan Barrett
132fd7cfc7 Convert package voting to a function
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-10-30 10:45:31 -04:00
Callan Barrett
5d4303d0b6 Convert package adoption/disowning to a function
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-10-27 20:40:37 -04:00
Callan Barrett
a447281d4f Convert package deletion to a function
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-10-16 22:27:45 -04:00
Callan Barrett
8f5882e68d Convert package flagging to a function
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-10-14 19:36:04 -04:00
Loui Chang
78ace0914e Show developer-TUs their total community packages.
This closes:
FS#11561 - Devs in AUR can't see their packages in Community

Thanks to Hugo Doria for the original patch.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-10-06 19:38:10 +08:00
Loui Chang
c7bfd95284 Take formatting out of version number in web/lib/version.inc
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-09-29 15:20:35 +08:00
Callan Barrett
df39cded09 Sort required by list in package details page.
This closes FS#11420.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-09-28 13:17:09 -04:00
Loui Chang
5c3f019093 Use system rm in rm_rf function.
PHP can't properly handle symlinks which causes problems when
self-referencing symlinks appear.

This closes FS#11187.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-09-21 20:10:50 -04:00
Andrea Scarpino
52fb8550a2 doesn't show disown package when already disowned
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-08-27 21:34:24 +08:00
Loui Chang
1d416d6891 Add Turkish to SUPPORTED_LANGS in config.inc.proto.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-08-19 15:35:58 -04:00
Simo Leone
c85dfacc74 Include File/Find.php PEAR module
Since this module requires root to install
system-wide, and is somewhat rare, it's better
to just include it in the AUR code itself.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-07-28 10:27:38 -05:00
Loui Chang
2c6bae2e63 Convert special chars in translations to html entities.
This closes
FS#10809 - bug in french translation of AUR web interface

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-07-28 16:58:58 +08:00
Loui Chang
1a1a6eb36e Add a new DEFAULT_LANG constant.
DEFAULT_LANG will essentially be used to specify what language
strings are initially written in.

This will eliminate the need for English translation arrays in
AUR and make adding or changing the English strings a lot easier.

DEFAULT_LANG may be required for strings to display properly.

Also change the output when a translation isn't found.
Eliminate the <b> which can cause validation errors depending
on where the string is placed.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-07-22 13:47:17 -04:00
Loui Chang
1deb924674 Make JSON search return more information.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-07-16 18:16:04 -04:00
Andrea Scarpino
2feee92a75 Remember user between sessions.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-07-08 14:06:16 -04:00
Loui Chang
36ee556103 Move code out of index.php
Move database queries to functions and html to templates.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-07-07 11:41:39 -04:00
Loui Chang
4372ddb914 Bump version to 1.5.2
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-07-07 10:52:46 -04:00
Loui Chang
3a42725601 Remove all vim mode lines. Add HACKING file.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-06-17 01:38:01 -04:00
Callan Barrett
bf5029ad8a Don't show None on pacckage info page
Just cuts out the table of deps/sources if none exist instead of
displaying "None"

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-06-07 18:20:00 +08:00
Callan Barrett
435e2c6c1a Fix logging in from package page
Patch by: BaSh <bash.lnx@gmail.com>

Adds query string to url when logging in

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-06-07 17:33:02 +08:00
eliott
cc1f323d32 Added AurJson query length limit.
Set a limit on the length of the query argument for searching.
A search of zero length returns a considerably sized result set.

Signed-off-by: eliott <eliott@cactuswax.net>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-06-05 21:21:21 -04:00
Callan Barrett
8867ad0372 Fix CVS and package links
Patch by Andrea Scarpino <bash.lnx@gmail.com>

Fixes up the links to the archlinux.org package search and to the CVS viewer

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-06-06 02:46:40 +08:00
Callan Barrett
94a8053210 Disable user package deletion
Users can no longer delete packages if they own them, only TUs and devs

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-06-06 02:10:59 +08:00
Callan Barrett
a49ee80aa2 Fix FS#8672
Patches can_submit_pkg(), this fixes the heaps of bugs people are having

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-06-05 12:30:48 -04:00
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