From 22fcea238f0ede3def934c1d8b32935025f22d3c Mon Sep 17 00:00:00 2001 From: Paul Mattal Date: Tue, 2 Oct 2007 07:33:53 -0400 Subject: 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. --- web/lib/aur.inc | 1 + web/lib/config.inc.proto | 2 -- web/lib/version.inc | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 web/lib/version.inc 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", "Version 1.4.0" ); - $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 @@ +Version 1.4.0" ); +?> -- cgit v1.2.3-24-g4f1b