function _tpl_load_file($handle) { // Try and open template for read if (!($fp = fopen($this->files[$handle], 'r'))) { trigger_error("template->_tpl_load_file(): File " . $this->files[$handle] . " does not exist or is empty", E_USER_ERROR); } require_once ROSTER_LIB . 'template_enc.php'; $this->compiled_code[$handle] = RosterTplEncode::compile(trim(fread($fp, filesize($this->files[$handle])))); fclose($fp); // Actually compile the code now. RosterTplEncode::compile_write($handle, $this->compiled_code[$handle]); }