server_name = FIEME_SERVERNAME; } function dev_mode() { $lang_file = $this->path . "\s.global.php"; if(file_exists($lang_file)) { require_once $lang_file; } if (isset($s['dev_mode'])) { return $s['dev_mode']; } else { return '0'; } } //load the appropriate files now, falling back to english if possibl or needed function load($section) { $load_file = $this->path . "s." . $section . ".php"; if(file_exists($load_file)) { require $load_file; } // These shall not be edited! $dont_use = array('path'); if(is_array($s)) { foreach($s as $one => $two) { if((empty($this->$one) || $this->$one != $two) && !in_array($one, $dont_use)) { $this->$one = $two; if (FIEME_DEV == 1) { global $dev_content; $dev_content .= "success load setting: $one
"; } } } } } function sprintf($string) { $arg_list = func_get_args(); $num_args = count($arg_list); for($i = 1; $i < $num_args; $i++) { $string = str_replace('{'.$i.'}', $arg_list[$i], $string); } return $string; } }