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
  jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [include/] [accessfile.php] - Blame information for rev 3

 

Line No. Rev Author Line

Powered by WebSVN 2.2.1