Rev 3 | Rev 5 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 4 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | } |
46 | } |
47 | 47 | ||
48 | if (is_readable($file)) { |
48 | if (is_readable($file)) { |
49 | $h = fopen($file, 'r'); |
49 | $h = fopen($file, 'r'); |
50 | $line = trim(fgets($h, 128)); |
50 | $line = trim(fgets($h, 128)); |
51 | if (($line[0] == '[') && ($line[strlen($line)-1] == ']')) { |
51 | if ((substr($line,0,1) == '[') && ($line[strlen($line)-1] == ']')) { |
52 | $line = substr($line, 1, strlen($line)-2); |
52 | $line = substr($line, 1, strlen($line)-2); |
53 | foreach ($inis as $ini) { |
53 | foreach ($inis as $ini) { |
54 | if (isset($ini['OidHeader'][$line])) return $ini['OidHeader'][$line]; |
54 | if (isset($ini['OidHeader'][$line])) return $ini['OidHeader'][$line]; |
55 | } |
55 | } |
56 | foreach ($inis as $ini) { |
56 | foreach ($inis as $ini) { |