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.
This commit is contained in:
Paul Mattal 2007-10-02 07:33:53 -04:00
parent 881b921eb3
commit 22fcea238f
3 changed files with 4 additions and 2 deletions

View file

@ -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");

View file

@ -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

3
web/lib/version.inc Normal file
View file

@ -0,0 +1,3 @@
<?php
define( "AUR_VERSION", "<b>Version 1.4.0</b>" );
?>