sections = array(); } // }}} // {{{ readIniFile function readIniFile($name) { // does not use parse_ini_file function since php 5.3 does not support comment lines starting with # $contents = file($name); $cursection = ''; $curkey = ''; $first = true; foreach ($contents as $line) { $line = rtrim($line); $str = ltrim($line); if (empty($str)) { continue; } // @todo remove ' in the next major release to be in line with the svn book if ($str{0} == '#' or $str{0} == "'") { continue; } if ($str != $line && !empty($cursection) && !empty($curkey)) { // line starts with whitespace $this->sections[$cursection][$curkey] .= strtolower($str); } else if ($str{0} == '[') { $cursection = strtolower(substr($str, 1, strlen($str) - 2)); if (!($str{strlen($str) - 2} == '/' || $str == '[aliases]' || $str == '[groups]')) { $cursection .= '/'; } $first = true; } else if (!empty($cursection)) { if ($first) { if (($cursection != 'aliases' && $cursection != 'groups') || !isset($this->sections[$cursection])) { $this->sections[$cursection] = array(); } } list($key, $val) = explode('=', $str, 2); $key = strtolower(trim($key)); $curkey = $key; $this->sections[$cursection][$key] = strtolower(trim($val)); $first = false; } } } // }}} // {{{ getSections function &getSections() { return $this->sections; } // }}} // {{{ getValues function getValues($section) { return @$this->sections[strtolower($section)]; } // }}} // {{{ getValue function getValue($section, $key) { return @$this->sections[strtolower($section)][strtolower($key)]; } // }}} }
WebSVN - websvn - Blame - Rev 3 - /include/accessfile.php
Català-Valencià - Catalan
Česky - Cesky
Dansk - Dansk
Dutch - Dutch
English - English
Finnish - Finnish
Français - Francais
Deutsch - German
עברית - Hebrew
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Brazilian Portuguese
Русский - Russian
中文 - Simplified Chinese
Slovenčina - Slovak
Slovenčina - Slovenian
Español - Spanish
Svenska - Swedish
中文 - Traditional Chinese
Türkçe - Turkish
Oëzbekcha - Uzbek
websvn
Subversion Repositories:
banderdyn
centos.prosek.czf
crusader
czf4bfu
czf4bfu.prosek.czf
czfcentos
czfgmap
discover
fedora.prosek.czf
freenet-router
ftth
getonlineclouds
hotsanic
internet.prosek.czf
is
mapstats
meteolinger
netmap
qos
sedlo
sedlo.prosek.czf
switches
vbtobb
vlubnt
weathermap
weatherstats
websvn
wifidashboard
wifimon
www.prosek.czf
xenstats
[
/
] [
include/
] [
accessfile.php
] - Blame information for rev
3
Line No.
Rev
Author
Line
Powered by
WebSVN
2.2.1