mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
881b921eb3
commit
22fcea238f
3 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@ header('Content-Type: text/html; charset=utf-8');
|
||||||
header('Cache-Control: no-cache, must-revalidate');
|
header('Cache-Control: no-cache, must-revalidate');
|
||||||
header('Expires: Tue, 11 Oct 1988 22:00:00 GMT'); // quite a special day
|
header('Expires: Tue, 11 Oct 1988 22:00:00 GMT'); // quite a special day
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
include_once("version.inc");
|
||||||
include_once("config.inc");
|
include_once("config.inc");
|
||||||
include_once("aur_po.inc");
|
include_once("aur_po.inc");
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,6 @@ define( "USERNAME_MAX_LEN", 16 );
|
||||||
define( "PASSWD_MIN_LEN", 4 );
|
define( "PASSWD_MIN_LEN", 4 );
|
||||||
define( "PASSWD_MAX_LEN", 128 );
|
define( "PASSWD_MAX_LEN", 128 );
|
||||||
|
|
||||||
define( "AUR_VERSION", "<b>Version 1.4.0</b>" );
|
|
||||||
|
|
||||||
$LOGIN_TIMEOUT = 7200; # number of idle seconds before timeout
|
$LOGIN_TIMEOUT = 7200; # number of idle seconds before timeout
|
||||||
|
|
||||||
# debugging variables
|
# debugging variables
|
||||||
|
|
3
web/lib/version.inc
Normal file
3
web/lib/version.inc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
define( "AUR_VERSION", "<b>Version 1.4.0</b>" );
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue