Changeset 4507 for trunk/website

Show
Ignore:
Timestamp:
07/15/06 02:35:59 (2 years ago)
Author:
emostar
Message:

sed 's/M$//' is the correct command to fix this, the linefeed styles are mixed together.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/website/archive.php

    r4506 r4507  
    5151    ?> 
    5252    <div class="news"> 
    53       <h2><B><?echo $title;?></B> - <I><?echo $date;?></I></h2 
     53      <h2><B><?echo $title;?></B> - <I><?echo $date;?></I></h2> 
    5454      <p> 
    5555      <? for ( $i =2; $i < count ( $data ); $i++ ) echo $data[$i]; ?> 
    56       </p 
     56      </p> 
    5757      <div class="footer"> 
    58         <div class="footer_right"></div 
    59       </div 
     58        <div class="footer_right"></div> 
     59      </div> 
    6060    </div> 
    6161    <? 
     
    111111    //global $item_id; 
    112112$item_id = $_REQUEST['item_id']; 
    113 if (!is_numeric($item_id); 
    114 {  
    115  
     113if (!is_numeric($item_id)) 
     114{ echo "NO."; 
     115exit; 
     116} 
    116117    $data = news_read_item( $item_id ); 
    117118    news_show_item( $data ); 
     
    127128} 
    128129 
    129 / 
    130  * Get all directory entries except . and . 
    131  * 
    132 function dir_get_entries( $path )  
    133     $i = 0 
    134     $hdir = opendir( $path ) 
    135     while( $entry = readdir( $hdir ) )  
    136         if ( $entry == "." ) continue 
    137         if ( $entry == ".." ) continue 
    138         $data[$i++] = $entry 
    139      
    140     closedir( $hdir ) 
    141     if ( !empty( $data ) ) sort( $data ) 
    142     return $data 
    143  
    144 ? 
     130/* 
     131 * Get all directory entries except . and .. 
     132 */ 
     133function dir_get_entries( $path ) { 
     134    $i = 0; 
     135    $hdir = opendir( $path ); 
     136    while( $entry = readdir( $hdir ) ) { 
     137        if ( $entry == "." ) continue; 
     138        if ( $entry == ".." ) continue; 
     139        $data[$i++] = $entry; 
     140    } 
     141    closedir( $hdir ); 
     142    if ( !empty( $data ) ) sort( $data ); 
     143    return $data; 
     144} 
     145?>