Diff for /cdn/www/sources.html between versions 1.102 and 1.115

version 1.102, 2003/02/22 22:18:36 version 1.115, 2003/02/23 14:36:42
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";
   
function cvs_parse ($contents, $day, $len) { //   $today = '03/02/14';
 
   if(!$local_conf_commits) {
     print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n";
   }
 
   //BEGIN BLOCK
  //
    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('/tmp/commit_test');
     $contents = array();
     if ($size > MAX_READ_SIZE) {
       // print "<!-- Log File is greater than 500K -->\n";
   
         $fp = fopen (COMMIT_PATH.$commit_log, "r");
         fseek($fp, $size - MAX_READ);
         if ($contents) {
           print "$contents\n";
           exit;
         }
         $tok = strtok(fread($fp, MAX_READ),"\n");
         while ($tok) {
           array_push($contents, $tok);
           $tok = strtok("\n");
         }
         fclose($fp);
       }
       
       if (!$contents) {
        //
         $contents = file(COMMIT_PATH.$commit_log);
        //      $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents;
       }
   
       // preprocess Tag: stuff
       
       // /preprocess Tag: stuff
       
       $len=count($contents);
     $r            = -1;      $r            = -1;
     
       
       $_project = $project;
       
       if ( !isset($doNotCapitalise) ) {
         $_project = PROJECT;
       }
      
       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">' . "Some day's CVS Commits for " . $_project . " Project</h4>\n";
       print '<table border="0" cellpadding="0" cellspacing="2" id="CVS-table">' . "\n";
   
       if($len) {
         for($i=0;$i<$len;$i++) {
           if(ereg("Modified:    www", $contents[$l]) && !$local_conf_commits) {
             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])) {
 
        if(ereg("  Date: $day", $contents)) { 
           $r++;            $r++;
   
           $yy = substr(YEAR, 0, 2);            $yy = substr(YEAR, 0, 2);
Line 188  function cvs_parse ($contents, $day, $le Line 244  function cvs_parse ($contents, $day, $le
   
           $result[$r]     .= "</td></tr>\n";            $result[$r]     .= "</td></tr>\n";
         }          }
   
   return $result;  
 }  
     
  //   $today = '03/02/14';  
   
   if(!$local_conf_commits) {  
     print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n";  
   }  
   
   //BEGIN BLOCK  
  //  
    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('/tmp/commit_test');  
     $contents = array();  
     if ($size > MAX_READ_SIZE) {  
       // print "<!-- Log File is greater than 500K -->\n";  
   
       $fp = fopen (COMMIT_PATH.$commit_log, "r");  
       fseek($fp, $size - MAX_READ);  
       if ($contents) {  
         print "$contents\n";  
         exit;  
       }  
       $tok = strtok(fread($fp, MAX_READ),"\n");  
       while ($tok) {  
         array_push($contents, $tok);  
         $tok = strtok("\n");  
       }  
       fclose($fp);  
     }  
       
     if (!$contents) {  
      //  
       $contents = file(COMMIT_PATH.$commit_log);  
      //      $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents;  
     }  
   
     // preprocess Tag: stuff  
       
     // /preprocess Tag: stuff  
       
     $len=count($contents);  
       
     $_project = $project;  
       
     if ( !isset($doNotCapitalise) ) {  
       $_project = PROJECT;  
     }  
      
     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">' . "Some day's CVS Commits for " . $_project . " Project</h4>\n";  
     print '<table border="0" cellpadding="0" cellspacing="2" id="CVS-table">' . "\n";  
   
     if($len) {  
       for($i=0;$i<$len;$i++) {  
         if(ereg("Modified:    www", $contents[$l]) && !$local_conf_commits)  
           break;  
   
 //start of parse of commitlog for $today / $yesterday  
   
         $result = cvs_parse($contents, $today, $len);  
   
 // end  of parse of commitlog for $today / $yesterday  
   
       }        }
     }      }
   

Removed from v.1.102  
changed lines
  Added in v.1.115


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