'auth_user_md5'); var $tlabel = array('native'=>'X.Org'); /** paths */ var $baseurl = 'http://localhost/xorg'; var $relurl = '/xorg'; var $spoolroot = '/var/spool/xorg'; var $root = null; function PlatalGlobals($sess) { $this->session = $sess; } function read_config() { $array = parse_ini_file($this->root.'/configs/platal.conf', true); if (!is_array($array)) { return; } foreach ($array as $cat=>$conf) { $c = strtolower($cat); foreach ($conf as $key=>$val) { if ($c == 'core' && isset($this->$key)) { $this->$key=$val; } else { $this->$c->$key = $val; } } } } function setlocale() { global $globals; setlocale(LC_MESSAGES, $globals->core->locale); setlocale(LC_TIME, $globals->core->locale); setlocale(LC_CTYPE, $globals->core->locale); } } // }}} // vim:set et sw=4 sts=4 sws=4 foldmethod=marker: ?>