Add BUILD_NUMBER to the security check in .htaccess

Change BUILD_NUMBER to be .ini format and add a big "do not edit" comment.
This commit is contained in:
Bharat Mediratta
2011-01-17 17:27:16 -08:00
parent c1c67ecf8d
commit 29be21bb0d
3 changed files with 9 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ class gallery_Core {
* Return the contents of the BUILD_NUMBER file, which should be a single integer.
*/
static function build_number() {
$lines = file(DOCROOT . "BUILD_NUMBER", FILE_IGNORE_NEW_LINES);
return $lines[0];
$result = parse_ini_file(DOCROOT . "BUILD_NUMBER");
return $result["build_number"];
}
}