> if anyone is interested in beta testing this,
Robin, you could try to learn Perl in your free time, rather than coming
up with crap like this.
> www.infusedlight.net/cgi-bin/bbs.pl - please report bugs
Well, the whole script is one colossal bug.
I especially found:
$key = "$userparam$string$about$string$nick$string$aim$string$icq$string
$hobbies$string$favoritethings$string$webtitle$string${websiteaddress}
private\n" if $privateparam;
No wonder you have spelling errors sprinkled at various points in the
scripts. Who has the ocular dexterity to decipher this?
Sinan.
> "robin" <ro...@infusedlight.net> wrote in
news:1110087761.522984.103340
> @f14g2000cwb.googlegroups.com:
...
> Well, the whole script is one colossal bug.
>
> I especially found:
>
> $key =
...
I am sorry, I did a partial paste. Here is the interesting bit from
bbs.pl:
if ($psplit2[0] eq $userparam)
{
$key = "$userparam$string$about$string$nick$string$aim$string$icq
$string$hobbies$string$favoritethings$string$webtitle$string
${websiteaddress}private\n" if $privateparam;
$key="$userparam$string$about$string$nick$string$aim$string$icq
$string$hobbies$string$favoritethings$string$webtitle$string
${websiteaddress}\n" if ! $privateparam;
}
Please do not attempt to explain this as the explanation might be even
more painful than looking at the actual code.
No wonder you have spelling errors sprinkled at various points in the
scripts. Who has the ocular dexterity to decipher this?
A couple of recommendations:
* Look into the CGI::Application module (or any of its descendants).
* For my elementary needs, I have found CGI::Application coupled with
CGI::Application::Session, Class::DBI (w/ sqlite) and HTML::Template to
be a wonderful combination.
* And, I cannot stress this enough, please do consider thinking before
programming.
* Do read the documentation for the modules you are using.
* Your code is sprinkled with crap like this:
my $hobbies = param ('fivehobbies');
$hobbies =~ s/>/&gt;/gm;
$hobbies =~ s/</&lt;/gm;
$hobbies =~ s/>/>/mg;
$hobbies =~ s/</</mg;
WTF? Use the HTML::Entities module:
#! /usr/bin/perl
use CGI;
use HTML::Entities;
my $cgi = CGI->new;
if(defined (my $value = $cgi->param('value'))) {
print $cgi->header, encode_entities($value);
} else {
print $cgi->header, <<HTML
<html>
<body>
<form>
<input type="text" size="20" name="value">
<input type="submit">
</form>
</body>
</html>
HTML
;
}
__END__
Sinan.
other question:
where did you shred your brain?
--
perl -e '$|=1;&p(7.74.117.115.116.32);&s();&p(97.110.111);&p(116.104.101
.114);&s;&p(32.112.101.114.108);&s();&p(32.104.97.99.107.101.114.10);sub
s{sleep 1};sub p(){print "@_"}'
Eh, everyone could download it. Or why you placed a download link on
your website?
regards,
fabian
> please do not hack my script. thanks.
> -robin
It is not everyday that I meet someone with IQ lower than the room
temperature.
If you don't want people to see your code (perfectly understandable given
the way you code), then you should not place a public link to download the
source code.
If you don't want people to evaluate your code, then you shouldn't ask
people to test it.
Sinan.
> I'm an idiot.-robin
Congrats - you've finally said something we can all agree with.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Robin, do you ever worry some potential 'client' of yours may search
Usenet for postings form you to learn more about you before hiring you?
Maybe you should.
I knew if I restrained myself, someone would pick up the slack... :-)
dha
--
David H. Adler - <d...@panix.com> - http://www.panix.com/~dha/
Jackdaws love my big sphinx of quartz.
Phillip Newton's replacement for The quick brown fox jumps over
the lazy dog.