Diff for /cdn/www/sources.html between versions 1.8 and 1.9

version 1.8, 2003/02/19 19:35:44 version 1.9, 2003/02/19 19:49:22
Line 1 Line 1
   <!-- MAIN CONTENT -->
   <h5 class="page-header">Source Code</h5>
   
   <p>
     The cdn source code can be accessed in either of the following ways:
   </p>
   
   <ul>
   <li>View the source using the CVS <a href="http://www.mozdev.org/source/browse/cdn/">web interface</a></li>
   <li>Check out the source using anonymous CVS with the following commands (password is guest):
   
   <pre>
   cvs -d :pserver:guest@mozdev.org:/cvs login
   cvs -d :pserver:guest@mozdev.org:/cvs co cdn
   </pre>
   
   </li>
   </ul>
   
 <?php   <?php 
   
 // $Id$  // $Id$
Line 41 Line 60
     $len=count($contents);      $len=count($contents);
     $r            = -1;      $r            = -1;
       
    echo '<pre style="color: red;">' . $contents[0] . '</pre>';   // echo '<pre style="color: red;">' . $contents[0] . '</pre>';
           
     print '<h4 id="CVS-h4">' . "Today's CVS Commits for " . ucwords($project) . " Project</h4>\n";      print '<h4 id="CVS-h4">' . "Today's CVS Commits for " . ucwords($project) . " Project</h4>\n";
     print '<table border="0" cellpadding="0" cellspacing="2" id="CVS-table">' . "\n";      print '<table border="0" cellpadding="0" cellspacing="2" id="CVS-table">' . "\n";
Line 57 Line 76
           '<tr class="CVS-tr-header" valign="top"><td class="CVS-td-900">' . "\n" .            '<tr class="CVS-tr-header" valign="top"><td class="CVS-td-900">' . "\n" .
           "<strong>" . htmlspecialchars($contents[$i-1]) . "</strong>\n" .            "<strong>" . htmlspecialchars($contents[$i-1]) . "</strong>\n" .
           "</td></tr>\n" .            "</td></tr>\n" .
          '<tr class="CVS-tr-checkins">' .          '<tr class="CVS-tr-date">' .
           '<td class="CVS-td-f90">' . "\n" . htmlspecialchars($contents[$i]) .            '<td class="CVS-td-f90">' . "\n" . htmlspecialchars($contents[$i]) .
           "\n</td></tr>\n" .            "\n</td></tr>\n" .
          "<tr><td>\n";          "<tr class="CVS-tr-checkins"><td class="CVS-td-checkins">\n";
   
           for($l=$i+1;$l<$len;$l++) {            for($l=$i+1;$l<$len;$l++) {
             if(ereg("  Revision  Changes    Path", $contents[$l]))              if(ereg("  Revision  Changes    Path", $contents[$l]))
Line 69 Line 88
             if(ereg("  User:", $contents[$l]))              if(ereg("  User:", $contents[$l]))
               break;                break;
   
            $result[$r] .= eregi_replace("((http|mailto|ftp):\/\/[^[:space:]<>]{1,})",             $result[$r] .= eregi_replace("((https|http|mailto|ftp):\/\/[^[:space:]<>]{1,})", 
             "<a href='\\1'>\\1</a>", htmlspecialchars($contents[$l])) .              "<a href='\\1'>\\1</a>", htmlspecialchars($contents[$l])) .
             "<br>\n";              "<br>\n";
           }            }

Removed from v.1.8  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>