Changeset 10027 for trunk/tools/database
- Timestamp:
- Apr 15, 2003, 2:39:28 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/www/Odin32Changelog.php
r4538 r10027 1 1 <?php 2 /* $Id: Odin32Changelog.php,v 1. 1 2000-10-26 18:41:00bird Exp $2 /* $Id: Odin32Changelog.php,v 1.2 2003-04-15 00:39:28 bird Exp $ 3 3 * 4 4 * Change log parser/conveter. … … 12 12 echo "<TABLE border=0 CELLSPACING=0 CELLPADDING=0 COLS=3 WIDTH=\"750\">\n". 13 13 "<TR><td>\n"; 14 $aChangeLog = ChangeLog_Read(file(" d:/odin32/tree20001026/changelog"));14 $aChangeLog = ChangeLog_Read(file("y:/bldodin/scripts/StateD/ChangeLog")); 15 15 //ChangeLog_Dump($aChangeLog); 16 16 ChangeLog_MakeTable($aChangeLog); … … 61 61 $fPre = 0; /* We're parsing preformatted text. 62 62 * Add newlines! */ 63 $iModule = -1; 64 $iChange = -1; 63 65 64 66 reset($aFile); … … 68 70 69 71 /* ISO date on this line? */ 70 if ( $sTrimmed[10] == ':' && isISODate(substr($sTrimmed, 0, 10)) )72 if (strlen($sTrimmed) > 10 && $sTrimmed[10] == ':' && isISODate(substr($sTrimmed, 0, 10)) ) 71 73 { 72 74 $fFirst = 0; … … 79 81 if ($iLeft >= $iRight) 80 82 { 81 echo "<!-- $iLeft >= $iRight; line $sKey -->";83 //echo "<!-- $iLeft >= $iRight; line $sKey -->"; 82 84 $fFirst = 1; // skips this entry. 83 85 continue; … … 111 113 112 114 /* Look for new module */ 113 if ($sTrimmed[0] == '-' 115 if ( strlen($sTrimmed) > 0 116 && $sTrimmed[0] == '-' 114 117 && ($iColon = strpos($sTrimmed, ":")) > 1 115 118 && strlen($sModule = trim(substr($sTrimmed, 1, $iColon - 1))) > 0 … … 132 135 133 136 /* Look for start of new point */ 134 if ( $sTrimmed[0] == "ú" 135 || ($sTrimmed[0] == "o" && $sTrimmed[1] == " ") 137 if ( strlen($sTrimmed) > 0 138 && ( $sTrimmed[0] == "ú" 139 || ($sTrimmed[0] == "o" && $sTrimmed[1] == " ") 140 ) 136 141 ) 137 142 { … … 161 166 $iEndPre = strpos($sTrimmed, "</pre"); 162 167 $iEndPre = ($iEndPre ? $iEndPre : -1); 163 echo "<!--$iPre,$iEndPre-->\n";168 //echo "<!--$iPre,$iEndPre-->\n"; 164 169 165 170 if ($fPre && $iEndPre > $iPre)
Note:
See TracChangeset
for help on using the changeset viewer.