This is why I hate releasing code

I always forget stuff in the directions. I left out the code chunk from the top of the file.
Code:
Find:
---------
$footer = construct_phrase($vbphrase['arcade_end'], $vbulletin->options['arcadeimages']) . $footer;
----------
Add After:
---------
if ($_REQUEST['do']=='addfav')
{
$vbulletin->input->clean_array_gpc('r', array(
'gameid' => TYPE_INT
));
$favuser = $vbulletin->userinfo[userid];
$favgame = $vbulletin->GPC['gameid'];
if($favuser AND $favgame)
{
// Make sure it's not in the user's favorites
$eaalreadythere = $db->query_first("SELECT gameid FROM " .TABLE_PREFIX."eaarcade_favorites WHERE userid=$favuser and gameid=$favgame");
if(!$eaalreadythere)
{
$db->query_write("INSERT INTO " . TABLE_PREFIX . "eaarcade_favorites (userid, gameid) VALUES ($favuser,$favgame)");
}
}
// Go to the favorites page
$vbulletin->url = 'arcade.php?categoryid=2';
standard_redirect($vbphrase['favorite_added'], true);
}
if ($_REQUEST['do']=='delfav')
{
$vbulletin->input->clean_array_gpc('r', array(
'gameid' => TYPE_INT
));
$favuser = $vbulletin->userinfo[userid];
$favgame = $vbulletin->GPC['gameid'];
if($favuser AND $favgame)
{
// Make sure it's in the user's favorites
$eaalreadythere = $db->query_first("SELECT * FROM " .TABLE_PREFIX."eaarcade_favorites WHERE userid=$favuser AND gameid=$favgame");
if($eaalreadythere)
{
$db->query_write("DELETE FROM " . TABLE_PREFIX . "eaarcade_favorites WHERE userid=$favuser AND gameid=$favgame");
}
}
// Go to the favorites page
$vbulletin->url = 'arcade.php?categoryid=2';
standard_redirect($vbphrase['favorite_removed'], true);
}
---------