Changeset 6626 for temp/trunk/data/lib
- Timestamp:
- 2006/10/25 11:42:25 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r6602 r6626 2556 2556 } 2557 2557 2558 function sfGetFileVersion($path) { 2559 if(file_exists($path)) { 2560 $src_fp = fopen($path, "rb"); 2561 if($src_fp) { 2562 while (!feof($src_fp)) { 2563 $line = fgets($src_fp); 2564 if(ereg("@version", $line)) { 2565 $arrLine = split(" ", $line); 2566 $version = $arrLine[5]; 2567 } 2568 } 2569 fclose($src_fp); 2570 } 2571 return $version; 2572 } 2573 2558 2574 /* ¥Ç¥Ð¥Ã¥°ÍÑ ------------------------------------------------------------------------------------------------*/ 2559 2575 function sfPrintR($obj) {
Note: See TracChangeset
for help on using the changeset viewer.
