get_current_user(); if (Session::get()->is_signed_in() and $user->level == USER_LEVEL_MODERATOR) { // Set the value of these again with the variables from the POST request $is_post = strcasecmp($type, "post") == 0; $is_thread = strcasecmp($type, "thread") == 0; if (strcasecmp($type, "thread") == 0) { $thread = new Thread($id); if (strcasecmp($action, "delete") == 0) Thread::delete($thread); } else if (strcasecmp($type, "post") == 0) { $post = new Post($id); if (strcasecmp($action, "delete") == 0) $post->delete(); } } } ?>
= $thread->subject ?>