diff options
author | Loui Chang <louipc.ist@gmail.com> | 2007-09-27 05:57:51 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2007-09-27 05:57:51 +0200 |
commit | c764f078f10061c016228fb079dc7302af52f60c (patch) | |
tree | 5a3934a93523f9c1246fc0664dbf5ac8ccf0779c /web/lib/config.inc.proto | |
parent | 5546779ad0ce7105770280c93e664a7edefbf573 (diff) | |
download | aur-c764f078f10061c016228fb079dc7302af52f60c.tar.gz aur-c764f078f10061c016228fb079dc7302af52f60c.tar.xz |
Made some things in config.inc.proto that should be constants constants
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib/config.inc.proto')
-rw-r--r-- | web/lib/config.inc.proto | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto index fcb8b3a2..bad94a0c 100644 --- a/web/lib/config.inc.proto +++ b/web/lib/config.inc.proto @@ -1,15 +1,43 @@ <?php # NOTE: modify these variables if your MySQL setup is different # -$AUR_db_host = "localhost:/tmp/mysql.sock"; -$AUR_db_name = "aur"; -$AUR_db_user = "aur"; -$AUR_db_pass = "aur"; +define( "AUR_db_host", "localhost:/tmp/mysql.sock" ); +define( "AUR_db_name", "aur" ); +define( "AUR_db_user", "aur" ); +define( "AUR_db_pass", "aur" ); # Configuration of directories where things live -$UPLOAD_DIR = "/home/aur/unsupported-temp/"; -$INCOMING_DIR = "/home/aur/unsupported/"; -$URL_DIR = "/packages/"; +define( "UPLOAD_DIR", "/home/aur/unsupported-temp/" ); +define( "INCOMING_DIR", "/home/aur/unsupported/" ); +define( "URL_DIR", "/packages/" ); + +define( "AURQ_LOG", "/home/aur/aurq.log" ); +define( "AURD_LOG", "/home/aur/aurd.log" ); + +define( "USERNAME_MIN_LEN", 3 ); +define( "USERNAME_MAX_LEN", 16 ); +define( "PASSWD_MIN_LEN", 4 ); +define( "PASSWD_MAX_LEN", 128 ); + + +$LOGIN_TIMEOUT = 7200; # number of idle seconds before timeout + +# debugging variables +# +$QBUG = 1; # toggle query logging to /var/tmp/aurq.log +$DBUG = 1; # use dbug($msg) to log to /var/tmp/aurd.log + +$SUPPORTED_LANGS = array( # what languages we have translations for + "en" => "English", + "pl" => "Polski", + "it" => "Italiano", + "ca" => "Català", + "pt" => "Português", + "es" => "Español", + "de" => "Deutsch", + "ru" => "Русский", + "fr" => "Français" +); # vim: ts=2 sw=2 noet ft=php ?> |