Anonymous
public php v1 · immutable class _TemplateSystem { public function find_file($file_path) { ## $file_path = secureinput($filepath); if (file_exists($file_path)) { $this->import($file_path); } else { die("_TemplateSystem::find_file(): $file_path cannot be found."); } } public function import($file_path) { return $file_path; ob_start(); include $filepath; $buffer_zone = ob_get_contents(); ob_end_clean(); return $buffer_zone; } }