public static function inicache($filename) { $self = self::i(); if (!isset(ttheme::$inifiles[$filename])) { $ini = ttheme::cacheini($filename); if (is_array($ini)) { $self->ini = $ini + $self->ini; if (isset($ini['searchsect'])) { $self->joinsearch($ini['searchsect']); } $keys = array_keys($ini); $self->section = array_shift($keys); $self->addsearch($self->section); } } return $self; }
public function inidir($dir) { $filename = $dir . 'html.ini'; if (!isset(ttheme::$inifiles[$filename])) { $html_ini = ttheme::cacheini($filename); if (is_array($html_ini)) { $this->ini = $html_ini + $this->ini; $keys = array_keys($html_ini); $this->section = array_shift($keys); $this->searchsect[] = $this->section; } } tlocal::inicache($dir . litepublisher::$options->language . '.admin.ini'); return $this; }