Diff for /cdn/www/sources.html between versions 1.69 and 1.92

version 1.69, 2003/02/21 18:21:52 version 1.92, 2003/02/21 21:16:33
Line 33  cvs -d :pserver:guest@mozdev.org:/cvs co Line 33  cvs -d :pserver:guest@mozdev.org:/cvs co
   $yesterday          = date("y/m/" . sprintf('%2u', $day));    $yesterday          = date("y/m/" . sprintf('%2u', $day));
   $commit_log         = "cvs@$project.mozdev.org";    $commit_log         = "cvs@$project.mozdev.org";
   
 // $today = '03/02/14'; //  $today = '03/02/14';
   
   if(!$local_conf_commits)     if(!$local_conf_commits) 
     print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n";      print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n";
   
   //BEGIN BLOCK    //BEGIN BLOCK
  if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) {  //
 // if(file_exists('/tmp/commit_test') && $local_conf_commits) {    if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) { 
  //  if(file_exists('/tmp/commit_test') && $local_conf_commits) { 
   
   // $size = filesize(COMMIT_PATH.$commit_log);    $size = filesize(COMMIT_PATH.$commit_log);
    $size = filesize('/tmp/commit_test');   // $size = filesize('/tmp/commit_test');
     $contents = array();      $contents = array();
     if ($size > MAX_READ_SIZE) {      if ($size > MAX_READ_SIZE) {
       // print "<!-- Log File is greater than 500K -->\n";        // print "<!-- Log File is greater than 500K -->\n";
Line 64  cvs -d :pserver:guest@mozdev.org:/cvs co Line 65  cvs -d :pserver:guest@mozdev.org:/cvs co
           
     if (!$contents)      if (!$contents)
     {      {
        //
       $contents = file(COMMIT_PATH.$commit_log);        $contents = file(COMMIT_PATH.$commit_log);
     // $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents;     //      $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents;
     }      }
   
     // preprocess Tag: stuff      // preprocess Tag: stuff
           
     $stnetnoc = implode('_[_cdn_]_', $contents); // echo '<pre>' . $stnetnoc . '</pre></p>';  
       
     $contents = ereg_replace('Tag\:[[:space:]]{1,}_\[_cdn_\]_[[:space:]]{1,}', 'Tag: ', $stnetnoc);  
       
     $stnetnoc = eregi_replace("Tag\:\ [^[:space:]\.]{1,}\ ", "\\0_[_cdn_]_                        ", $contents);  
       
     $contents = explode('_[_cdn_]_', $stnetnoc);  
       
     // /preprocess Tag: stuff      // /preprocess Tag: stuff
           
     $len=count($contents);      $len=count($contents);
Line 91  cvs -d :pserver:guest@mozdev.org:/cvs co Line 85  cvs -d :pserver:guest@mozdev.org:/cvs co
       $_project = PROJECT;        $_project = PROJECT;
     }      }
         
    print '<h4 id="CVS-h4">' . "Today's CVS Commits for " . $_project . " Project</h4>\n";   // print '<h4 id="CVS-h4">' . "Today's CVS Commits for " . $_project . " Project</h4>\n";
   // print '<h4 id="CVS-h4">' . "Yesterday's CVS Commits for " . $_project . " Project</h4>\n";    print '<h4 id="CVS-h4">' . "Yesterday's CVS Commits for " . $_project . " Project</h4>\n";
    // print '<h4 id="CVS-h4">' . "Some day's CVS Commits for " . $_project . " Project</h4>\n";     // print '<h4 id="CVS-h4">' . "Some day's CVS Commits for " . $_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 102  cvs -d :pserver:guest@mozdev.org:/cvs co Line 96  cvs -d :pserver:guest@mozdev.org:/cvs co
           break;            break;
   
        // if(ereg("  Date: [0-9]{2}/[0-9]{2}/[0-9]{2}", $contents[$i])) {         // if(ereg("  Date: [0-9]{2}/[0-9]{2}/[0-9]{2}", $contents[$i])) {
       // 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++;
   
           $_i = $i + 1;            $_i = $i + 1;
Line 148  cvs -d :pserver:guest@mozdev.org:/cvs co Line 142  cvs -d :pserver:guest@mozdev.org:/cvs co
             // '  Removed:     www/protected sources.html'              // '  Removed:     www/protected sources.html'
             // '               www/compact index.html' ?              // '               www/compact index.html' ?
   
            if ( ereg("((Added|Modified|Removed):)", $checkins) || ereg("[[:space:]]{9}", $checkins) )            if ( ereg("((Added|Modified|Removed):)", $checkins) || ereg("^[[:space:]]{9}", $checkins) )
             {              {
   
               $identifier = trim(substr($checkins, 0, 15)); // may change to &nbsp; group                $identifier = trim(substr($checkins, 0, 15)); // may change to &nbsp; group

Removed from v.1.69  
changed lines
  Added in v.1.92


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