Commit graph

1939 commits

Author SHA1 Message Date
Loui Chang
1bc4836e19 Restyle the layout.
Make HTML markup more logical.
Remove some unused style sheets rules.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-23 23:24:56 -05:00
Loui Chang
cdd2e5dbd4 tu: Bring Trusted User interface in line with the rest of the site.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-23 14:14:23 -05:00
Loui Chang
f6387253b4 tu.php: Remove trailing whitespace.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-23 13:21:36 -05:00
Loui Chang
e936dc9770 login_form: Change 'Forgot Password' to translatable string.
Also change layout and styling.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-23 08:00:33 -05:00
Loui Chang
6ef9d27a5b HACKING: Add note about subscribing to the mailing list.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-22 23:00:12 -05:00
Evangelos Foutras
861cbf4935 Implement 'Password Reset' facility (FS#3061)
This works by adding a new field to the 'Users' table called 'ResetKey',
which is a 32 characters long, random string. When the user requests a
password reset, a new 'reset key' is generated and sent to the user's
e-mail address in the form of a link in the following format:

  http://aur.archlinux.org/passreset.php?resetkey=<reset key>

When the above link is followed, the user is presented with a form to
verify his/her e-mail address and specify the new desired password. If
the e-mail address matches the reset key in the database, the new
password is assigned to the account. If there is an error, a relevant
message is displayed and the user is prompted to re-enter the required
information. Upon successful completion of this procedure, the ResetKey
field in the database is blanked and the specific key cannot be reused.

One SQL query is needed to add the ResetKey field to the 'Users' table:

  ALTER TABLE `Users` ADD `ResetKey` CHAR(32) NOT NULL DEFAULT '';

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-13 16:49:55 -05:00
Evangelos Foutras
6d65997f0c Add uid_from_email(), similar to uid_from_username
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-13 16:49:55 -05:00
Loui Chang
6ee8b88c58 pkgsubmit: Instruct users how to make source packages.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-09 18:53:34 -05:00
Loui Chang
e4f9d2af6e Sort AUTHORS alphabetically.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-09 18:49:04 -05:00
Laszlo Papp
6d289f602f Fix a missing exit() call in pkgedit.php
Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-09 14:09:11 -05:00
flamelab
a380e13b4d Update Greek Translation
Signed-off-by: flamelab <panosfilip@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-11-09 08:57:59 -05:00
Slobodan Terzic
dd4ee79d69 Serbian translation update
Signed-off-by: Slobodan Terzic <githzerai06@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-27 19:23:15 -04:00
flamelab
20ae93643f Add Greek Translation
Signed-off-by: flamelab <panosfilip@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-27 19:23:15 -04:00
Loui Chang
f40ce2d61b Fix Croatian language code in config.inc.proto.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-27 19:15:34 -04:00
Jaroslav Lichtblau
9e845766d9 Fix typos in Czech translation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 22:46:46 -04:00
Laszlo Papp
a605e034c4 Fix a small typo in web/README
Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 20:22:30 -04:00
Loui Chang
847475fe54 Untranslate TU vote fields so they're properly saved in the database.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 17:28:07 -04:00
Loui Chang
d5b87ec138 Version Bump 1.6.0
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 13:16:26 -04:00
Loui Chang
0c8bd9a008 AUTHORS: Remove Papp from certain translations.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 12:59:37 -04:00
Loui Chang
d29a7a5a67 pkg_search_results: Translate special characters to html entities.
Reported-by: Cedric Staniewski <cedric@gmx.ca>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 12:54:31 -04:00
Loui Chang
075ca25f02 pkg_details: Translate special characters to html entities in package description.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-26 12:50:13 -04:00
Loui Chang
92b19e78ac aurjson: Only return an error string if utf8_encode returns an empty string.
This allows 0 and '0' values to pass.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-23 12:35:02 -04:00
Laszlo Papp
87a8298114 Add Croatian translation
Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-01 17:47:54 -04:00
Laszlo Papp
4485907e5b Add Norwegian translation
Signed-off-by: Hans-Kristian Arntzen <maister@archlinux.us>
Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-01 16:47:09 -04:00
Laszlo Papp
deb8595a1f Add Czech translation
Signed-off-by: Daniel Kozák <kozzi11@gmail.com>
Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-01 16:47:04 -04:00
Loui Chang
21e0ff2207 Fix json info output.
Commit 325347a introduced a regression causing an improper database
query.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-01 16:41:22 -04:00
Slobodan Terzic
9260e1c328 Serbian translation for AUR
Signed-off-by: Slobodan Terzic <githzerai06@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 19:48:51 -04:00
Loui Chang
de7c9ab787 Remove the plain PKGBUILD upload feature.
makepkg --source should be used to upload packages.
It provides a bit of error checking and it's good to support only a
single format here.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 19:24:19 -04:00
Laszlo Papp
1eff1d223b Add usage output info for maintainer search extension
Add msearch type to the list on http://aur.archlinux.org/rpc.php

Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 18:55:50 -04:00
Loui Chang
cf49644f4e Change rss2.php references to rss.php
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:23:35 -04:00
elij
5ca82939ce renamed rss2 -> rss
changed file name, as the 2 is relatively meaningless.
I think at one time it qualified it as a rss2.0 feed, but the
distinction is valueless at this point, since the generated xml
itself declares the rss version.

make sure to set an apache rewrite rule for any production systems
that require it.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:12:59 -04:00
elij
a8bf1108b4 cleanup rss2.php
- removed excessive string catenation, replaced with variable substitution
- consolidated http/https protocol checks
- simplified host header parse (centralized)
- moved cache file to /tmp, to remove need to custom permission directory in webdir

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:08:22 -04:00
elij
907f27cb82 user_doc is more or less reflected in the README/wiki
Kind of pointless to keep it around. Especially in here.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:03:49 -04:00
elij
65dc7080d0 renamed file to fit convention
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:01:15 -04:00
elij
325347a268 Add maintainer search to json interface. Closes FS#15947
Fix for maintainer search ticket: FS#15947
Also http://mailman.archlinux.org/pipermail/aur-dev/2009-September/000892.html

Fixed some problems with selecting the proper data fields in the
original patch. - Loui

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 15:44:31 -04:00
elij
a6d5cb71a6 fix content-type when sending jsonp
jsonp callback should have a content type of text/javascipt,
since it specifies a callback function wrapping json data,
and is not soley json data.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 15:17:07 -04:00
elij
94b1e165e1 removed tupkg. community management moved to main repos.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 14:58:27 -04:00
Loui Chang
6caf3a4da0 web/README: Update documentation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-22 13:54:39 -04:00
Loui Chang
cead538426 Fix Ukranian translation file.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-22 10:55:11 -04:00
Danylo Korostil
74afe94f4a Update Ukranian translation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-18 07:42:04 -04:00
Gergely Imreh
4d1eb4dd7a Fix: FS#15526 non-UTF8 character in rpc output
Currently AUR does not check the uploaded packages, whether they are
correctly in UTF8 encoding. If there are fields (such as $pkgdesc)
that contain such non-UTF8 characters, the rpc interface chokes on
those fields: even if there's data successfully retrieved from the
database, rpc returns "null".
In an effort to make such errors in the PKGBUILDs debugged more easily,
let's force rpc to have more useful output: try to convert non-UTF8
fields to UTF8. If it's a success, good. Partial success (some characters
showing as \uXXXX) is ok. Failure results in error message printed to that
field.

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-16 07:50:44 -04:00
Loui Chang
1bf54a32c4 aurjson: Use call_user_func to call functions.
call_user_func_array is unnecessary.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-14 17:03:50 -04:00
Loui Chang
2acb3e17fc Add Gergely Imreh to list of translators.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-10 15:14:56 -04:00
Gergely Imreh
38e97ad949 Hungarian translation: update accents and translation
Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-08 14:55:16 -04:00
Laszlo Papp
56990b3748 Initial Hungarian Translation
Signed-off-by: Laszlo Papp <djszapi2@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-26 20:02:30 -04:00
Loui Chang
cbae364a74 TRANSLATING: Instruct translators to edit config.inc.proto and AUTHORS.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-26 19:42:36 -04:00
Sergej Pupykin
3fd08d5715 remove community
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-26 00:14:32 -04:00
Loui Chang
448f7ef120 Remove Location from package search.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-24 07:34:05 -04:00
Dan McGee
46f2798524 Use include_once where applicable
All of these are sourcing function libraries so we don't need to include
them more than once. Things that insert actual HTML into the output were
left calling include().

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:12 -04:00
Dan McGee
4af079a5bd rpc: small optimizations
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:11 -04:00