sections = array();
}
// }}}
// {{{ readIniFile
function readIniFile($name) {
$contents = file($name);
$cursection = '';
$first = true;
foreach ($contents as $str) {
$str = trim($str);
if (empty($str)) {
continue;
}
if ($str{0} == '#' or $str{0} == "'") {
continue;
}
if ($str{0} == '[') {
$cursection = strtolower(substr($str, 1, strlen($str) - 2));
if (!($str{strlen($str) - 2} == '/' or $str == '[groups]')) {
$cursection .= '/';
}
$first = true;
} else if (!empty($cursection)) {
if ($first === true) {
$this->sections[$cursection] = array();
}
list($key, $val) = split('=', $str);
$this->sections[$cursection][strtolower(trim($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 1
- /include/accessfile.php
websvn |
Subversion Repositories: |
[/] [include/] [accessfile.php] - Blame information for rev 1
Powered by WebSVN 2.2.1