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(); } } } ?> cflip.net forum Moderation is_signed_in() and Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR): ?>

Moderate post

get_content(); ?>

Moderate thread

subject ?>

You must be signed in as a moderator to access this page.