Changeset 10027 for trunk/tools/database


Ignore:
Timestamp:
Apr 15, 2003, 2:39:28 AM (22 years ago)
Author:
bird
Message:

Fixed warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/www/Odin32Changelog.php

    r4538 r10027  
    11<?php
    2 /* $Id: Odin32Changelog.php,v 1.1 2000-10-26 18:41:00 bird Exp $
     2/* $Id: Odin32Changelog.php,v 1.2 2003-04-15 00:39:28 bird Exp $
    33 *
    44 * Change log parser/conveter.
     
    1212echo "<TABLE border=0 CELLSPACING=0 CELLPADDING=0 COLS=3 WIDTH=\"750\">\n".
    1313     "<TR><td>\n";
    14 $aChangeLog = ChangeLog_Read(file("d:/odin32/tree20001026/changelog"));
     14$aChangeLog = ChangeLog_Read(file("y:/bldodin/scripts/StateD/ChangeLog"));
    1515//ChangeLog_Dump($aChangeLog);
    1616ChangeLog_MakeTable($aChangeLog);
     
    6161    $fPre   = 0;                        /* We're parsing preformatted text.
    6262                                         * Add newlines! */
     63    $iModule = -1;
     64    $iChange = -1;
    6365
    6466    reset($aFile);
     
    6870
    6971        /* 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)) )
    7173        {
    7274            $fFirst = 0;
     
    7981            if ($iLeft >= $iRight)
    8082            {
    81                 echo "<!-- $iLeft >= $iRight; line $sKey -->";
     83                //echo "<!-- $iLeft >= $iRight; line $sKey -->";
    8284                $fFirst = 1; // skips this entry.
    8385                continue;
     
    111113
    112114            /* Look for new module */
    113             if ($sTrimmed[0] == '-'
     115            if (    strlen($sTrimmed) > 0
     116                &&  $sTrimmed[0] == '-'
    114117                &&  ($iColon = strpos($sTrimmed, ":")) > 1
    115118                &&  strlen($sModule = trim(substr($sTrimmed, 1, $iColon - 1))) > 0
     
    132135
    133136            /* 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                    )
    136141                )
    137142            {
     
    161166                $iEndPre = strpos($sTrimmed, "</pre");
    162167                $iEndPre = ($iEndPre ? $iEndPre : -1);
    163                 echo "<!--$iPre,$iEndPre-->\n";
     168                //echo "<!--$iPre,$iEndPre-->\n";
    164169
    165170                if ($fPre && $iEndPre > $iPre)
Note: See TracChangeset for help on using the changeset viewer.