That was fun to go though some of that old code, sparse on the comments, but it made up for it with the awesome collection of globals, a sample from post2
global $name, $email, $username, $subject, $message, $icon, $ns, $threadid, $txt, $notify, $MaxMessLen, $db_prefix;
global $settings, $board, $mreplies, $maxmessagedisplay, $enable_guestposting, $waction, $ID_MEMBER, $ubbcjspath;
global $REMOTE_ADDR, $cgi, $yySetLocation, $color, $sourcedir, $realname, $lock, $settings, $moderators, $doLimitOne;
global $attachment, $attachment_size, $attachment_name, $HTTP_POST_FILES, $modSettings, $isAnnouncement;
global $linkcalendar, $month, $day, $year, $evtitle, $span, $timeoffset;