diff --git a/daos/thread.php b/daos/thread.php index ee291f0..bf4b0fa 100644 --- a/daos/thread.php +++ b/daos/thread.php @@ -51,6 +51,15 @@ Thread } + public static function + find ( + int $id) + : \Dto\Thread + { + ; + } + + public static function create_thread ( SQLite3 $db, diff --git a/import.php b/import.php new file mode 100644 index 0000000..7fcc6d4 --- /dev/null +++ b/import.php @@ -0,0 +1,7 @@ + title; $explain = $row -> explain; @@ -38,13 +39,13 @@ if (isset ($_GET['id'])) { if (($_GET['evaluate'] ?? '') === 'good') { - Dao\Response :: like ((int) $_GET['id']); + \Dao\Response :: like ((int) $_GET['id']); header ("Location: ./?thread=$thread&sort=$sort"); } if (($_GET['evaluate'] ?? '') === 'bad') { - Dao\Response :: dislike ((int) $_GET['id']); + \Dao\Response :: dislike ((int) $_GET['id']); header ("Location: ./?thread=$thread&sort=$sort"); } }