Magellan Linux

Annotation of /trunk/phpmyadmin/patches/phpmyadmin-2.10.2-fix-doc-pathes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 253 - (hide annotations) (download)
Sun Jul 8 14:34:57 2007 UTC (16 years, 10 months ago) by niro
File size: 2023 byte(s)
-fixes doc pathes

1 niro 253 diff -Naur phpMyAdmin-2.10.2-all-languages/changelog.php phpMyAdmin-2.10.2-all-languages-magellan/changelog.php
2     --- phpMyAdmin-2.10.2-all-languages/changelog.php 2007-06-15 19:27:48.000000000 +0200
3     +++ phpMyAdmin-2.10.2-all-languages-magellan/changelog.php 2007-07-08 16:27:53.000000000 +0200
4     @@ -6,7 +6,7 @@
5     * @id $Id: phpmyadmin-2.10.2-fix-doc-pathes.patch,v 1.1 2007-07-08 14:34:57 niro Exp $
6     */
7    
8     -$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
9     +/*$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
10    
11     $replaces = array(
12     '@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@'
13     @@ -63,6 +63,7 @@
14     => '\\1<b>\\2</b>',
15    
16     );
17     +*/
18    
19     header('Content-type: text/html; charset=utf-8');
20     echo '<?xml version="1.0" encoding="utf-8"?'.'>';
21     @@ -80,7 +81,7 @@
22     <h1>phpMyAdmin - ChangeLog</h1>
23     <?php
24     echo '<pre>';
25     -echo preg_replace(array_keys($replaces), $replaces, $changelog);
26     +readgzfile('/usr/share/doc/phpmyadmin-2.10.2/ChangeLog.gz');
27     echo '</pre>';
28     ?>
29     </body>
30     diff -Naur phpMyAdmin-2.10.2-all-languages/license.php phpMyAdmin-2.10.2-all-languages-magellan/license.php
31     --- phpMyAdmin-2.10.2-all-languages/license.php 2007-06-15 19:27:48.000000000 +0200
32     +++ phpMyAdmin-2.10.2-all-languages-magellan/license.php 2007-07-08 16:12:28.000000000 +0200
33     @@ -6,5 +6,5 @@
34     // that would read any file using a GET parameter, it would open a hole
35    
36     header('Content-type: text/plain; charset=iso-8859-1');
37     -readfile('LICENSE');
38     +readgzfile('/usr/share/doc/phpmyadmin-2.10.2/LICENSE.gz');
39     ?>
40     diff -Naur phpMyAdmin-2.10.2-all-languages/readme.php phpMyAdmin-2.10.2-all-languages-magellan/readme.php
41     --- phpMyAdmin-2.10.2-all-languages/readme.php 2007-06-15 19:27:48.000000000 +0200
42     +++ phpMyAdmin-2.10.2-all-languages-magellan/readme.php 2007-07-08 16:13:04.000000000 +0200
43     @@ -6,5 +6,5 @@
44     // that would read any file using a GET parameter, it would open a hole
45    
46     header('Content-type: text/plain; charset=utf-8');
47     -readfile('README');
48     +readgzfile('/usr/share/doc/phpmyadmin-2.12.2/README.gz');
49     ?>