Generate proper XHTML.

This commit is contained in:
Michal Čihař
2006-04-25 15:07:41 +00:00
parent d8e41fbaac
commit adf542fc04
2 changed files with 22 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
---------------------- ----------------------
phpMyAdmin - Changelog phpMyAdmin - ChangeLog
---------------------- ----------------------
$Id$ $Id$
@@ -9,6 +9,7 @@ $Source$
* libraries/common.lib.php: Make cookie login form work with token * libraries/common.lib.php: Make cookie login form work with token
protection. protection.
* libraries/auth/cookie.auth.lib.php: Do not include empty values. * libraries/auth/cookie.auth.lib.php: Do not include empty values.
* changelog.php: Generate proper XHTML.
2006-04-25 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2006-04-25 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* db_details_qbe.php, db_printview.php, libraries/display_tbl.lib.php, * db_details_qbe.php, db_printview.php, libraries/display_tbl.lib.php,

View File

@@ -23,11 +23,11 @@ $replaces = array(
// linking patches // linking patches
'/patch\s*#?([0-9]{6,})/i' '/patch\s*#?([0-9]{6,})/i'
=> '<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=\\1&amp;group_id=23067&amp;atid=377410">patch #\\1</a>', => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377410">patch #\\1</a>',
// linking RFE // linking RFE
'/(?:rfe|feature)\s*#?([0-9]{6,})/i' '/(?:rfe|feature)\s*#?([0-9]{6,})/i'
=> '<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=\\1&amp;group_id=23067&amp;atid=377411">RFE #\\1</a>', => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377411">RFE #\\1</a>',
// linking files // linking files
'/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i' '/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
@@ -39,11 +39,11 @@ $replaces = array(
// linking bugs // linking bugs
'/bug\s*#?([0-9]{6,})/i' '/bug\s*#?([0-9]{6,})/i'
=> '<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=\\1&amp;group_id=23067&amp;atid=377408">BUG #\\1</a>', => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377408">BUG #\\1</a>',
// all other 6+ digit numbers are treated as bugs // all other 6+ digit numbers are treated as bugs
'/(?<!BUG|RFE|patch) #?([0-9]{6,})/i' '/(?<!BUG|RFE|patch) #?([0-9]{6,})/i'
=> ' <a href="https://sourceforge.net/tracker/index.php?func=detail&aid=\\1&amp;group_id=23067&amp;atid=377408">BUG #\\1</a>', => ' <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377408">BUG #\\1</a>',
// CVE/CAN entries // CVE/CAN entries
'/((CAN|CVE)-[0-9]+-[0-9]+)/' '/((CAN|CVE)-[0-9]+-[0-9]+)/'
@@ -62,7 +62,23 @@ $replaces = array(
); );
header('Content-type: text/html; charset=utf-8'); header('Content-type: text/html; charset=utf-8');
echo '<?xml version="1.0" encoding="utf-8"?'.'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title>phpMyAdmin - ChangeLog</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h1>phpMyAdmin - ChangeLog</h1>
<?
echo '<pre>'; echo '<pre>';
echo preg_replace(array_keys($replaces), $replaces, $changelog); echo preg_replace(array_keys($replaces), $replaces, $changelog);
echo '</pre>'; echo '</pre>';
?> ?>
</body>
</html>