Code Hunter: The UBB™ Game - 11/27/2002 8:44 PM
Think you know your UBB™ code? Prove it!
Code Hunter is a new UBBDev Contest/Game.
Here are the rules. Below are 5 snippets of code from random UBB files. It is your job to identify them. You will have 1 week to get you guesses in. The person who gets the most right, first is the winner for the week and will receive a special avatar.
Entries must be mailed to codehunter@ubbdev.com. DO NOT post responses in the forums, they will be deleted and you will be ineligible to participate in future games. Moderators and Administrators are welcome to play, however, Charles Capps, Ted O'Neill and Dave Dreezer are not
In your entry you must identify the following:
Good luck...this code is based on version 6.3.1.2. If you are not running that version, you can still play by downloading a clean copy from the Infopop members area. Same goes for those with modified boards...a clean copy might be easier to use.
Deadline to participate is Wednesday, December 4, 12:01am UBBDev time. One entrant per registered user. Good luck!
Snippet #1
Snippet #3
Snippet #5
Note: all code is Copyright Infopop Corporation, 2002 and is used here with permission.
Code Hunter is a new UBBDev Contest/Game.
Here are the rules. Below are 5 snippets of code from random UBB files. It is your job to identify them. You will have 1 week to get you guesses in. The person who gets the most right, first is the winner for the week and will receive a special avatar.
Entries must be mailed to codehunter@ubbdev.com. DO NOT post responses in the forums, they will be deleted and you will be ineligible to participate in future games. Moderators and Administrators are welcome to play, however, Charles Capps, Ted O'Neill and Dave Dreezer are not
In your entry you must identify the following:
- The file name
- where it can be located (i.e. subroutine, module, line number)
- what you think it does
Good luck...this code is based on version 6.3.1.2. If you are not running that version, you can still play by downloading a clean copy from the Infopop members area. Same goes for those with modified boards...a clean copy might be easier to use.
Deadline to participate is Wednesday, December 4, 12:01am UBBDev time. One entrant per registered user. Good luck!
Snippet #1
Quote
code:
Snippet #2
Code
my $stringification = ""; # *twitch*
$stringification .= qq!%pm_user_index = (n!;
Snippet #2
code:
[qb][/qb]Code&SafeGetThreadData2($forum_from, $topic_from);
&SafeGetThreadData2($forum_to, $topic_to);
Quote
code:
Snippet #4
Code
$sc->{options} = undef;
foreach my $n (1 .. $sc->{opts}) {
$in{"q$n" . "name$quest"} = &strip_lead_trail_whitespace($in{"q$n" . "name$quest"});
Snippet #4
code:
[qb][/qb]Codemy ($whole, $dec) = split (/./, $_[0]);
if ($dec > 49) { $whole++; }
return ($whole);
}
Code
if (&FileExists("$vars_config{MembersPath}/user_posts/$in{u}.cgi")) {
@posts = &OpenFileAsArray("$vars_config{MembersPath}/user_posts/$in{u}.cgi");
}