3 require_once("model/model.php");
7 public function __construct() {
8 $this->model
= new model();
12 public static function init() {
13 if (isset($_GET['page']) && is_numeric($_GET['page'])) {
14 require_once("model/page.php");
17 } else if (isset($_GET['year'])) {
18 require_once("model/archive.php");
19 $archive = new archive();
21 } else if (isset($_GET['note'])) {
22 require_once("model/note.php");
25 } else if ($_SERVER['REQUEST_URI'] == '/') {
26 require_once("model/index.php");
29 } else if (isset($_GET['project'])) {
30 require_once("model/project.php");
31 $project = new project();
33 } else if (isset($_GET['rss'])) {
34 require_once("model/rss.php");
37 } else if (isset($_GET['challenge'])) {
38 require_once("model/captcha.php");
39 $captcha = new captcha();
46 class notFound
extends Exception
{
48 public function __construct() {
49 header('HTTP/1.0 404 Not Found');