ChangeLog for 3.3.9.1
[phpmyadmin-themes.git] / changelog.php
blob637efd105a26e237c7f4ebbbed0cc22322838691
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Simple script to set correct charset for changelog
6 * @version $Id$
7 * @package phpMyAdmin
8 */
10 /**
11 * Load paths.
13 require('./libraries/vendor_config.php');
15 /**
16 * Read changelog.
18 // Check if the Changelog file is available, some distributions remove these.
19 if (is_readable(CHANGELOG_FILE)) {
20 if (substr(CHANGELOG_FILE, -3) == '.gz') {
21 ob_start();
22 readgzfile(CHANGELOG_FILE);
23 $changelog = ob_get_contents();
24 ob_end_clean();
25 } else {
26 $changelog = file_get_contents(CHANGELOG_FILE);
28 } else {
29 echo "The Changelog file is not available on this system, please visit www.phpmyadmin.net for more information.";
30 exit;
33 /**
34 * Whole changelog in variable.
36 $changelog = htmlspecialchars($changelog);
38 $replaces = array(
39 '@(http://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@'
40 => '<a href="\\1">\\1</a>',
42 // sourceforge users
43 '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*)@users.sourceforge.net&gt;/i'
44 => '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>',
45 '/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i'
46 => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
47 '/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i'
48 => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
50 // mail adresse
51 '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*@.*)&gt;/i'
52 => '\\1 <a href="mailto:\\3">\\2</a>',
54 // linking patches
55 '/patch\s*#?([0-9]{6,})/i'
56 => '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">patch #\\1</a>',
58 // linking RFE
59 '/(?:rfe|feature)\s*#?([0-9]{6,})/i'
60 => '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>',
62 // linking files
63 '/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
64 => '\\1<a href="http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin/trunk/phpMyAdmin/\\2?annotate=HEAD">\\2</a>',
66 // FAQ entries
67 '/FAQ ([0-9]+)\.([0-9a-z]+)/i'
68 => '<a href="http://localhost/phpMyAdmin/Documentation.html#faq\\1_\\2">FAQ \\1.\\2</a>',
70 // linking bugs
71 '/bug\s*#?([0-9]{6,})/i'
72 => '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>',
74 // all other 6+ digit numbers are treated as bugs
75 '/(?<!BUG|RFE|patch) #?([0-9]{6,})/i'
76 => ' <a href="https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>',
78 // CVE/CAN entries
79 '/((CAN|CVE)-[0-9]+-[0-9]+)/'
80 => '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
82 // Highlight releases (with links)
83 '/(( ### )(([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
84 => '<a name="\\4_\\5_\\6_\\7"></a>\\2<a href="http://svn.sourceforge.net/viewvc/phpmyadmin/tags/RELEASE_\\4_\\5_\\6_\\7/phpMyAdmin">\\4.\\5.\\6.\\7 \\8</a>',
85 '/(( ### )(([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
86 => '<a name="\\4_\\5_\\6_\\7"></a>\\2<a href="http://svn.sourceforge.net/viewvc/phpmyadmin/tags/RELEASE_\\4_\\5_\\6/phpMyAdmin">\\4.\\5.\\6 \\7</a>',
88 // Highlight releases (not linkable)
89 '/( ### )(.*)/'
90 => '\\1<b>\\2</b>',
94 header('Content-type: text/html; charset=utf-8');
95 echo '<?xml version="1.0" encoding="utf-8"?'.'>';
97 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
98 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
99 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
100 <head>
101 <link rel="icon" href="./favicon.ico" type="image/x-icon" />
102 <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
103 <title>phpMyAdmin - ChangeLog</title>
104 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
105 </head>
106 <body>
107 <h1>phpMyAdmin - ChangeLog</h1>
108 <?php
109 echo '<pre>';
110 echo preg_replace(array_keys($replaces), $replaces, $changelog);
111 echo '</pre>';
113 </body>
114 </html>