' - ')); } function GetPage($data) { if($data['title']) $title = htmlspecialchars($data['title']); else $title = strtr($data['_page'], array(':' => ' - ')); $content = '

' . $title . '

' . strtr($data['content'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"', "\n" => '
', "\r" => '')); return array('title' => $title, 'content' => $content); } function GetEditor($data) { $title = '{{Edit \'' . $data['_page'] . '\'}}'; $content = '

' . $title . '

'; $content .= '
'; $content .= ''; $content .= ''; $content .= '{{Title}}:
'; $content .= '
'; $content .= ''; $content .= ''; $content .= '
'; return array('title' => $title, 'content' => $content); } } $GLOBALS['templates']['default'] = new default_template; ?>