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

committed by
Marc Delisle

parent
373a6626ad
commit
f0e8849034
@@ -6,7 +6,15 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
|
||||
$filename = 'ChangeLog';
|
||||
|
||||
// Check if the file is available, some distributions remove these.
|
||||
if (is_readable($filename)) {
|
||||
$changelog = htmlspecialchars(file_get_contents($filename));
|
||||
} else {
|
||||
echo "The $filename file is not available on this system, please visit www.phpmyadmin.net for more information.";
|
||||
exit;
|
||||
}
|
||||
|
||||
$replaces = array(
|
||||
'@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@'
|
||||
|
11
license.php
11
license.php
@@ -13,5 +13,14 @@
|
||||
*
|
||||
*/
|
||||
header('Content-type: text/plain; charset=iso-8859-1');
|
||||
readfile('LICENSE');
|
||||
|
||||
$filename = 'LICENSE';
|
||||
|
||||
// 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.";
|
||||
}
|
||||
|
||||
?>
|
||||
|
10
readme.php
10
readme.php
@@ -13,5 +13,13 @@
|
||||
*
|
||||
*/
|
||||
header('Content-type: text/plain; charset=utf-8');
|
||||
readfile('README');
|
||||
|
||||
$filename = 'README';
|
||||
|
||||
// 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