Diff for /cdn/www/sources.html between versions 1.54 and 1.56

version 1.54, 2003/02/21 14:28:56 version 1.56, 2003/02/21 14:33:59
Line 102  cvs -d :pserver:guest@mozdev.org:/cvs co Line 102  cvs -d :pserver:guest@mozdev.org:/cvs co
        // if(ereg("  Date: $yesterday", $contents[$i])) {         // if(ereg("  Date: $yesterday", $contents[$i])) {
         if(ereg("  Date: $today", $contents[$i])) {          if(ereg("  Date: $today", $contents[$i])) {
           $r++;            $r++;
          $result[$r] =           
          '<tr class="CVS-tr-header" valign="top"><td class="CVS-td-900">' . "\n" . 
          "<strong>" . htmlspecialchars($contents[$i-1]) . "</strong>\n" . // who 
          "</td></tr>\n" . 
          '<tr class="CVS-tr-date">' . 
          '<td class="CVS-td-f90">' . "\n"; 
 
           $yy = substr(YEAR, 0, 2);            $yy = substr(YEAR, 0, 2);
   
           $_timestamp = str_replace('Date: ', '', ltrim($contents[$i]));            $_timestamp = str_replace('Date: ', '', ltrim($contents[$i]));
           $_timestamp = str_replace("\n", '', $_timestamp);            $_timestamp = str_replace("\n", '', $_timestamp);
           $_timestamp = str_replace(':', '.', $_timestamp);            $_timestamp = str_replace(':', '.', $_timestamp);
   
          $_ts_link = '#' . $yy . str_replace(' ', '_', $_timestamp);          $_ts_link = '#' . $yy . ereg_replace('[\ \/]', '_', $_timestamp);
   
           $_timestamp = '<a name="' . $_ts_link . '">';             $_timestamp = '<a name="' . $_ts_link . '">'; 
   
         // $_time = htmlspecialchars($contents[$i]);          $result[$r] = 
           '<tr class="CVS-tr-header" valign="top"><td class="CVS-td-900">' . "\n" .
           "<strong>" . $_timestamp . htmlspecialchars($contents[$i-1]) . "</a></strong>\n" . // who
           "</td></tr>\n" .
           '<tr class="CVS-tr-date">' .
           '<td class="CVS-td-f90">' . "\n";
   
          $_time = eregi_replace("(Date:\ [0-9]{2}\/[0-9]{2}\/[0-9]{2}\ [0-9]{2}\:[0-9]{2}\:[0-9]{2})",           $_time = htmlspecialchars($contents[$i]);
          '<a href="' . $_ts_link . '">\\1</a>', htmlspecialchars($contents[$l])); 
   
          $result[$r] .= $_timestamp . $_time . '</a>'; // when          $result[$r] .= '<a href="' . $_ts_link . '">' . $_time . '</a>'; // when
   
           $result[$r] .= "\n</td></tr>\n" .            $result[$r] .= "\n</td></tr>\n" .
           '<tr class="CVS-tr-checkins"><td class="CVS-td-checkins">' . "\n";            '<tr class="CVS-tr-checkins"><td class="CVS-td-checkins">' . "\n";

Removed from v.1.54  
changed lines
  Added in v.1.56


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