diff options
author | Paul Mattal <paul@mattal.com> | 2007-10-02 13:33:53 +0200 |
---|---|---|
committer | Paul Mattal <paul@mattal.com> | 2007-10-02 13:33:53 +0200 |
commit | 22fcea238f0ede3def934c1d8b32935025f22d3c (patch) | |
tree | 091c60d9380df593f68ad70ec4d1c05250ac9473 | |
parent | 881b921eb30f5a28226e8b25ef194c4254cb09d5 (diff) | |
download | aur-1.4.0.tar.gz aur-1.4.0.tar.xz |
Tweak to version strings patch.1.4.0
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.
-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 a47f7624..d7ffbb89 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 16ce2add..11c0cb41 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 00000000..af9cc447 --- /dev/null +++ b/web/lib/version.inc @@ -0,0 +1,3 @@ +<?php +define( "AUR_VERSION", "<b>Version 1.4.0</b>" ); +?> |