2.11.11.3 release
[phpmyadmin/arisferyanto.git] / changelog.php
blob1b4807aa49cc96ef674eba1c44323e36c67ff490
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 */
9 $filename = 'ChangeLog';
11 // Check if the file is available, some distributions remove these.
12 if (is_readable($filename)) {
13 $changelog = htmlspecialchars(file_get_contents($filename));
14 } else {
15 echo "The $filename file is not available on this system, please visit www.phpmyadmin.net for more information.";
16 exit;
19 $replaces = array(
20 '@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@'
21 => '<a href="\\1">\\1</a>',
23 // sourceforge users
24 '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*)@users.sourceforge.net&gt;/i'
25 => '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>',
26 '/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i'
27 => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
28 '/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i'
29 => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
31 // mail adresse
32 '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*@.*)&gt;/i'
33 => '\\1 <a href="mailto:\\3">\\2</a>',
35 // linking patches
36 '/patch\s*#?([0-9]{6,})/i'
37 => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377410">patch #\\1</a>',
39 // linking RFE
40 '/(?:rfe|feature)\s*#?([0-9]{6,})/i'
41 => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377411">RFE #\\1</a>',
43 // linking files
44 '/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
45 => '\\1<a href="http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin/trunk/phpMyAdmin/\\2?annotate=HEAD">\\2</a>',
47 // FAQ entries
48 '/FAQ ([0-9]+)\.([0-9a-z]+)/i'
49 => '<a href="http://localhost/phpMyAdmin/Documentation.html#faq\\1_\\2">FAQ \\1.\\2</a>',
51 // linking bugs
52 '/bug\s*#?([0-9]{6,})/i'
53 => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377408">bug #\\1</a>',
55 // all other 6+ digit numbers are treated as bugs
56 '/(?<!BUG|RFE|patch) #?([0-9]{6,})/i'
57 => ' <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377408">bug #\\1</a>',
59 // CVE/CAN entries
60 '/((CAN|CVE)-[0-9]+-[0-9]+)/'
61 => '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
63 // Highlight releases (with links)
64 '/(( ### )(([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
65 => '<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>',
66 '/(( ### )(([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
67 => '<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>',
69 // Highlight releases (not linkable)
70 '/( ### )(.*)/'
71 => '\\1<b>\\2</b>',
75 header('Content-type: text/html; charset=utf-8');
76 echo '<?xml version="1.0" encoding="utf-8"?'.'>';
78 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
79 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
80 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
81 <head>
82 <link rel="icon" href="./favicon.ico" type="image/x-icon" />
83 <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
84 <title>phpMyAdmin - ChangeLog</title>
85 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
86 </head>
87 <body>
88 <h1>phpMyAdmin - ChangeLog</h1>
89 <?php
90 echo '<pre>';
91 echo preg_replace(array_keys($replaces), $replaces, $changelog);
92 echo '</pre>';
94 </body>
95 </html>