PMASA-2011-1 fixes
This commit is contained in:

committed by
Marc Delisle

parent
08a6fd9c12
commit
44ace60f77
@@ -15,13 +15,19 @@ require('./libraries/vendor_config.php');
|
|||||||
/**
|
/**
|
||||||
* Read changelog.
|
* Read changelog.
|
||||||
*/
|
*/
|
||||||
if (substr(CHANGELOG_FILE, -3) == '.gz') {
|
// Check if the Changelog file is available, some distributions remove these.
|
||||||
|
if (is_readable(CHANGELOG_FILE)) {
|
||||||
|
if (substr(CHANGELOG_FILE, -3) == '.gz') {
|
||||||
ob_start();
|
ob_start();
|
||||||
readgzfile(CHANGELOG_FILE);
|
readgzfile(CHANGELOG_FILE);
|
||||||
$changelog = ob_get_contents();
|
$changelog = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
} else {
|
} else {
|
||||||
$changelog = file_get_contents(CHANGELOG_FILE);
|
$changelog = file_get_contents(CHANGELOG_FILE);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo "The Changelog file is not available on this system, please visit www.phpmyadmin.net for more information.";
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
11
license.php
11
license.php
@@ -19,5 +19,14 @@ require('./libraries/vendor_config.php');
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
header('Content-type: text/plain; charset=iso-8859-1');
|
header('Content-type: text/plain; charset=iso-8859-1');
|
||||||
readfile(LICENSE_FILE);
|
|
||||||
|
$filename = LICENSE_FILE;
|
||||||
|
|
||||||
|
// Check if the file is available, some distributions remove these.
|
||||||
|
if (is_readable($filename)) {
|
||||||
|
readfile($filename);
|
||||||
|
} else {
|
||||||
|
echo "The $filename file is not available on this system, please visit www.phpmyadmin.net for more information.";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user