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:
authorMichal Čihař <michal@cihar.com>2008-11-30 15:58:55 +0300
committerMichal Čihař <michal@cihar.com>2008-11-30 15:58:55 +0300
commit7503c9b75d92cb1190a37a3733794b22c2893378 (patch)
treebacaf62ec60ed71405db03cccbc34e11a2da6232 /changelog.php
parent285190282416f499ac16b6ea099cedc582d4a9fc (diff)
Better support for vendor customisation (based on what Debian needs)
Diffstat (limited to 'changelog.php')
-rw-r--r--changelog.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/changelog.php b/changelog.php
index 2066b2c1bc..f38832277a 100644
--- a/changelog.php
+++ b/changelog.php
@@ -8,9 +8,26 @@
*/
/**
+ * Load paths.
+ */
+require('./libraries/vendor_config.php');
+
+/**
+ * Read changelog.
+ */
+if (substr(CHANGELOG_FILE, -3) == '.gz') {
+ ob_start();
+ readgzfile(CHANGELOG_FILE);
+ $changelog = ob_get_contents();
+ ob_end_clean();
+} else {
+ $changelog = file_get_contents(CHANGELOG_FILE);
+}
+
+/**
* Whole changelog in variable.
*/
-$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
+$changelog = htmlspecialchars($changelog);
$replaces = array(
'@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@'