Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerman van Rink <rink@initfour.nl>2011-02-08 16:22:29 +0300
committerMarc Delisle <marc@infomarc.info>2011-02-08 16:22:29 +0300
commit035d002db1e1201e73e560d7d98591563b506a83 (patch)
tree095deb937f61aa95fb9b2618e77b3e62f3ea8733 /license.php
parent3c7b1efa57cc055062f43021cbef7557ebff4597 (diff)
PMASA-2011-1 fixes
Diffstat (limited to 'license.php')
-rw-r--r--license.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/license.php b/license.php
index b4b394f57f..851b52c0c3 100644
--- a/license.php
+++ b/license.php
@@ -10,13 +10,22 @@
*/
/**
- * Load paths.
+ * Gets core libraries and defines some variables
*/
-require('./libraries/vendor_config.php');
+require_once './libraries/common.inc.php';
/**
*
*/
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 {
+ printf(__('The %s file is not available on this system, please visit www.phpmyadmin.net for more information.'), $filename);
+}
+
?>