Commit graph

472 commits

Author SHA1 Message Date
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
d03dd16194 Center Add Comment box.
Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-11 09:24:34 -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
Paul Mattal
8aec7ba941 Move AddComment button to top of Comments table, from Sergej
This moves the AddComment button to the top of the Comments table. A previous
patch had placed it into the action bar, but this seems cleaner.
2007-10-03 08:14:03 -04:00
Paul Mattal
8933e244ea Russian: aur-russian-1.4.0.diff from Sergej
Added/fixed some Russian translation strings.
2007-10-03 08:10:54 -04:00
Paul Mattal
ae7844f969 Added html/web/xml directory.
The html/web/xml directory is where the RSS feed gets stored. This was not
in the release tree, but has now been added. It should be set up with
permissions that allow the webserver to write to it.
2007-10-03 08:00:05 -04:00
Joerie de Gram
b9ec74d72b Added missing EN language string
Signed-off-by: Joerie de Gram <j.de.gram@gmail.com>
2007-10-02 22:30:48 -04:00
Paul Mattal
22fcea238f Tweak to version strings patch.
Rather than rely in any way on config.inc, which is expected to be edited
by the user and to persist across versions without change, the version
string definition is stored in version.inc and included from aur.inc.
2007-10-02 07:33:53 -04:00
tardo
881b921eb3 Fixed version strings.
Added AUR_VERSION to config file, so now we should only need to
change one location. KISS ftw.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-02 07:29:27 -04:00
Paul Mattal
6e49512b4e Italian: 20070930 patch from Giovanni Scafora 2007-09-30 13:06:44 -04:00
tardo
03a44d4900 Logout now redirects instead of displaying a page.
Thanks to Alex for the heads-up.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-30 12:51:06 -04:00
Paul Mattal
01911dce95 changed version string to 1.4.0 on front page 2007-09-29 14:23:48 -04:00
Paul Mattal
659cace81e Center the "Go back to search results" on the package detail page. 2007-09-28 22:15:47 -04:00
Loui Chang
95cca1996f nitpick: change buttons border to solid and convert
web/html/css/containers.css to unix format
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-28 22:05:08 -04:00
Paul Mattal
2b794c635f Changed homepage box title to "AUR Home" to match patch from tardo. 2007-09-27 09:18:25 -04:00
tardo
de365c6e0c Links to official packages now point back to AL site.
Previously if the package was not in community or unsupported, the link didn't point anywhere. Now it uses http://archlinux.org/packages/search/$pkgname. If there's a better way, someone needs to let me know. As far as I know, there's no sure way to link directly to a package without knowing the pkgid.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-27 09:10:33 -04:00
tardo
b4946839ea Messages run across colspan=3 now.
Using colspan=2 seemed to make the text wrap.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-27 08:59:27 -04:00
tardo
2e1230589d Box titles now align to the left.
Might be me, but aligning to the right just looked messed up.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-27 08:58:22 -04:00
Loui Chang
10f6a7c401 nitpick: Changed "AUR-Home" button to "AUR Home"
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-27 00:09:43 -04:00
Loui Chang
d2134f7637 Merge commit 'origin/testing'
Yeah I actually want to work from testing.
Conflicts:

	web/lib/pkgfuncs.inc

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-27 00:06:56 -04:00
Loui Chang
e8ae65abf6 I forgot to change AUR_db* usage to constants. Fixed now.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-27 00:04:47 -04:00
Loui Chang
c764f078f1 Made some things in config.inc.proto that should be constants constants
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-26 23:57:51 -04:00
Loui Chang
5546779ad0 Changed web/README.txt to refer to offical git repo
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-26 23:31:30 -04:00
Paul Mattal
d1c9422095 italian_20070926.diff patch from Giovanni Scafora 2007-09-26 08:19:34 -04:00
tardo
b76faddb10 Merge branch 'testing' of git://git.mattal.com/aur into test
Fixed regressions.
2007-09-25 18:40:48 -04:00
tardo
1769285c36 Merge branch 'master' of git://git.mattal.com/aur 2007-09-25 17:32:39 -04:00
Paul Mattal
7c7685ce82 AUR Italian Translation patch 20070925 from Giovanni Scafora 2007-09-25 10:44:04 -04:00
Paul Mattal
47855f993a Regression to front page "Flagged as safe by me" language
Developers should be treated the same as TUs
2007-09-25 10:36:20 -04:00
Paul Mattal
cb7cec5028 Regression to front page "Flagged as safe by me" language
Developers should be treated the same as TUs
2007-09-25 10:19:12 -04:00
eliott
4e4f2728c1 Phrakture requested fonts to be more similar to main arch site.
Added css to make it similar.
2007-09-24 09:23:41 -07:00
eliott
aebdd21b58 More changes to page styles. 2007-09-24 07:57:35 -07:00
tardo
9cba3937d0 Cosmetic: Show flagged out of date on package page.
Add a simple warning under "Tarball :: Files :: PKGBUILD" if package is out of date.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-22 18:30:28 -04:00
tardo
4548b0d08b Notify by email when package is flagged out of date. FS 3231.
In addition to the above, it does not notify if the user that flags package out of date is the same as the owner of the package.
The body of the email could use work as well I suppose.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-22 18:08:14 -04:00
tardo
adafc112f6 Add link to TU's homepage in "Flagged safe by". FS 4138.
Simple feature request. Not sure what purpose it serves.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-22 17:14:14 -04:00
tardo
61ddbc18e7 Reverse dependency lookup. FS 4556, 5269.
Ugly hack, could use beautification.
Also includes english translation addition.
If url sources are too long, page could ugly...

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-22 17:09:26 -04:00
tardo
6a39da70fb Incomplete comment patch. FS 7968, 5128, 7383.
Properly parse comments from database.
Thanks to Thralas for input.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-22 17:01:40 -04:00
eliott
ac8291a5dc Changes to bring the main arch site theme to the aur. 2007-09-22 12:09:00 -07:00
Paul Mattal
8d11961ee7 Added Italian language patch 20070921 from Giovanni Scafora 2007-09-22 08:06:20 -04:00
pjmattal
988ecc442c committed Eliott's README patch 2007-09-21 12:59:19 +00:00
pjmattal
452d6b1245 patch from eliott to convert all <? to <?php 2007-09-20 21:46:43 +00:00
swiergot
0b92839bee - Applied a patch from Loui to fix session removal.
- Replaced all occurences of mysql_escape_string()
  with mysql_real_escape_string().
2007-09-20 15:33:04 +00:00
pjmattal
9ab02ad6a7 added language for version 1.3.1 2007-09-19 04:31:40 +00:00
pjmattal
208cd74bf6 Added XSS patches from Joerie de Gram. 2007-09-17 13:35:54 +00:00