Changeset 6462 for temp


Ignore:
Timestamp:
2006/10/18 16:07:45 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/system/module.php

    r6461 r6462  
    5858 
    5959// ³ÈÄ¥¥Õ¥¡¥¤¥ë¤Î¥Ð¡¼¥¸¥ç¥ó³Îǧ 
    60 $path = HTML_PATH . "admin/downloads/module/";// . $objPage->arrUpdate[0]['main_php']; 
    61 $src_fp = fopen($path, "rb"); 
    62 if($src_fp) { 
    63     while (!feof($src_fp)) { 
    64         $line = fgets($src_fp); 
    65         if(ereg("@version", $line)) { 
    66             $arrLine = split(" ", $line); 
    67             sfPrintR($arrLine); 
    68         } 
    69     } 
    70     fclose($src_fp); 
    71 }    
     60$path = HTML_PATH . "admin/downloads/module/" . $objPage->arrUpdate[0]['main_php']; 
     61 
     62if(file_exists($path)) { 
     63    $src_fp = fopen($path, "rb"); 
     64    if($src_fp) { 
     65        while (!feof($src_fp)) { 
     66            $line = fgets($src_fp); 
     67            if(ereg("@version", $line)) { 
     68                $arrLine = split(" ", $line); 
     69                sfPrintR($arrLine); 
     70            } 
     71        } 
     72        fclose($src_fp); 
     73    }    
     74} 
    7275 
    7376$objView->assignobj($objPage);      //ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë 
Note: See TracChangeset for help on using the changeset viewer.