{ nopermission();}
$_SERVER['HTTP_REFERER'] = htmlspecialchars($_SERVER['HTTP_REFERER']);
if($mybb->input['action'] == "addfavorite"){