public function read_tpl($tplfilename = '', $f = 'undefined', $l = 'undefined') { $tplfilename = TPL_PATH . $tplfilename . '.tpl'; try { if (Fileoperations::check_file($tplfilename, 1, 1) === false) { throw new Templateexception('Datei: ' . $tplfilename . ' existiert nicht, <span style="color:#000">ist leer?</span> oder nicht lesbar in ' . $f . ' ' . $l); } } catch (Templateexception $e) { $e->print_debug(__FILE__, __LINE__); return false; } $this->tpl['content'] = file_get_contents($tplfilename); return true; }
public static function set_session_folder($sessionfolder) { if (Fileoperations::check_dir($sessionfolder)) { if (is_writeable($sessionfolder)) { session_save_path($sessionfolder); return true; } else { if (mkdir($sessionfolder, 0755)) { session_save_path($sessionfolder); return true; } else { trigger_error('Sessionklasse benötigt Schreibrechte auf Sessionordner:' . $sessionfolder, E_USER_NOTICE); return false; } } } else { trigger_error('Sessionordner:' . $sessionfolder . " existiert nicht", E_USER_NOTICE); return false; } }