[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> changelog.php (source)

   1  <?php
   2  // vim: expandtab sw=4 ts=4 sts=4:
   3  /**
   4   * Simple script to set correct charset for changelog
   5   *
   6   * @id      $Id: changelog.php 9546 2006-10-13 08:03:06Z nijel $
   7   */
   8  
   9  /*$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
  10  
  11  $replaces = array(
  12      '@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@'
  13      => '<a href="\\1">\\1</a>',
  14  
  15      // sourceforge users
  16      '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*)@users.sourceforge.net&gt;/i'
  17      => '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>',
  18      '/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i'
  19      => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
  20      '/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i'
  21      => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
  22  
  23      // mail adresse
  24      '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*@.*)&gt;/i'
  25      => '\\1 <a href="mailto:\\3">\\2</a>',
  26  
  27      // linking patches
  28      '/patch\s*#?([0-9]{6,})/i'
  29      => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377410">patch #\\1</a>',
  30  
  31      // linking RFE
  32      '/(?:rfe|feature)\s*#?([0-9]{6,})/i'
  33      => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377411">RFE #\\1</a>',
  34  
  35      // linking files
  36      '/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
  37      => '\\1<a href="http://svn.sourceforge.net/viewvc/phpmyadmin/trunk/phpMyAdmin/\\2?annotate=HEAD">\\2</a>',
  38  
  39      // FAQ entries
  40      '/FAQ ([0-9]+)\.([0-9a-z]+)/i'
  41      => '<a href="http://localhost/phpMyAdmin/Documentation.html#faq\\1_\\2">FAQ \\1.\\2</a>',
  42  
  43      // linking bugs
  44      '/bug\s*#?([0-9]{6,})/i'
  45      => '<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377408">bug #\\1</a>',
  46  
  47      // all other 6+ digit numbers are treated as bugs
  48      '/(?<!BUG|RFE|patch) #?([0-9]{6,})/i'
  49      => ' <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=\\1&amp;group_id=23067&amp;atid=377408">bug #\\1</a>',
  50  
  51      // CVE/CAN entries
  52      '/((CAN|CVE)-[0-9]+-[0-9]+)/'
  53      => '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
  54  
  55      // Highlight releases (with links)
  56      '/((    ### )(([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
  57      => '<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>',
  58      '/((    ### )(([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
  59      => '<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>',
  60  
  61      // Highlight releases (not linkable)
  62      '/(    ### )(.*)/'
  63      => '\\1<b>\\2</b>',
  64  
  65  );
  66  */
  67  header('Content-type: text/html; charset=utf-8');
  68  echo '<?xml version="1.0" encoding="utf-8"?'.'>';
  69  ?>
  70  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  71      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  72  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  73  <head>
  74  <link rel="icon" href="./favicon.ico" type="image/x-icon" />
  75  <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  76  <title>phpMyAdmin - ChangeLog</title>
  77  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  78  </head>
  79  <body>
  80  <h1>phpMyAdmin - ChangeLog</h1>
  81  <?php
  82  echo '<pre>';
  83  readgzfile('/usr/share/doc/phpmyadmin/changelog.gz');
  84  echo '</pre>';
  85  ?>
  86  </body>
  87  </html>


Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics