Also note, the

		$redirect = $request->variable('redirect', "index.$phpEx");
		$redirect = reapply_sid($redirect);
		redirect($redirect);

is never reached, because the if() part uses trigger_error() and the else exits with confirm_box()