diff options
author | Paul Mattal <paul@mattal.com> | 2007-10-02 07:33:53 -0400 |
---|---|---|
committer | Paul Mattal <paul@mattal.com> | 2007-10-02 07:33:53 -0400 |
commit | 22fcea238f0ede3def934c1d8b32935025f22d3c (patch) | |
tree | 091c60d9380df593f68ad70ec4d1c05250ac9473 /web | |
parent | 881b921eb30f5a28226e8b25ef194c4254cb09d5 (diff) | |
download | aurweb-22fcea238f0ede3def934c1d8b32935025f22d3c.tar.xz |
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.
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/aur.inc | 1 | ||||
-rw-r--r-- | web/lib/config.inc.proto | 2 | ||||
-rw-r--r-- | web/lib/version.inc | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index a47f762..d7ffbb8 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -3,6 +3,7 @@ header('Content-Type: text/html; charset=utf-8'); header('Cache-Control: no-cache, must-revalidate'); header('Expires: Tue, 11 Oct 1988 22:00:00 GMT'); // quite a special day header('Pragma: no-cache'); +include_once("version.inc"); include_once("config.inc"); include_once("aur_po.inc"); diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto index 16ce2ad..11c0cb4 100644 --- a/web/lib/config.inc.proto +++ b/web/lib/config.inc.proto @@ -19,8 +19,6 @@ define( "USERNAME_MAX_LEN", 16 ); define( "PASSWD_MIN_LEN", 4 ); define( "PASSWD_MAX_LEN", 128 ); -define( "AUR_VERSION", "<b>Version 1.4.0</b>" ); - $LOGIN_TIMEOUT = 7200; # number of idle seconds before timeout # debugging variables diff --git a/web/lib/version.inc b/web/lib/version.inc new file mode 100644 index 0000000..af9cc44 --- /dev/null +++ b/web/lib/version.inc @@ -0,0 +1,3 @@ +<?php +define( "AUR_VERSION", "<b>Version 1.4.0</b>" ); +?> |