aurweb/web/template
Dan McGee 9a79d2105e Segment the upload directory by package name prefix
This implements the following scheme:

* /packages/cower/ --> /packages/co/cower/
* /packages/j/     --> /packages/j/j/
* /packages/zqy/   --> /packages/zq/zqy/

We take up to the first two characters of each package name as a
intermediate subdirectory, and then the full package name lives
underneath that. Shorter named packages live in a single letter
directory.

Why, you ask? Well because earlier today the AUR hit 32,000 entries in
the unsupported/ directory, making new package uploads impossible. While
some might argue we shouldn't have so many damn packages in the repos,
we should be able to handle this case.

Why two characters instead of one? Our two biggest two-char groups, 'pe'
and 'py', both start with 'p', and have nearly 2000 packages each. Go
Python and Perl.

Still needed is a "move the existing data" script, as well as a set of
rewrite rules for those wishing to preserve backward compatible URLs for
any helper programs doing the wrong thing and relying on them.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-08-10 14:34:07 +02:00
..
stats Add more stats to the front page table 2011-04-03 22:59:33 +02:00
actions_form.php test return value from db_query before assuming it is valid 2011-05-17 10:43:42 +02:00
footer.php Support for langauges written right-to-left 2011-02-18 13:52:38 +01:00
header.php fix incompatibility with php short open tags 2011-06-25 11:29:56 +02:00
login_form.php Added label tags for login form fields. 2011-05-09 10:54:36 +02:00
pkg_comment_form.php Use HTTPs for links in comment notification mails. 2011-04-19 23:58:32 +02:00
pkg_comments.php Fix XSS vulnerabilities in package comment templates. 2011-03-30 10:49:51 +02:00
pkg_details.php Segment the upload directory by package name prefix 2011-08-10 14:34:07 +02:00
pkg_search_form.php rename *.inc files to *.inc.php and adjust imports and references 2011-06-22 15:15:04 +02:00
pkg_search_results.php Fix XSS vulnerability in package search results and package details. 2011-03-11 19:15:04 +01:00
search_accounts_form.php Fix broken XHTML. 2011-03-11 19:00:50 +01:00
template.phps rename *.inc files to *.inc.php and adjust imports and references 2011-06-22 15:15:04 +02:00
tu_details.php Fix broken XHTML. 2011-03-11 19:00:50 +01:00
tu_list.php test return value from db_query before assuming it is valid 2011-05-17 10:43:42 +02:00