Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 56ddd78b38
Fetching contributors…

Cannot retrieve contributors at this time

file 670 lines (583 sloc) 22.644 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670
# This code is a part of Slash, and is released under the GPL.
# Copyright 1997-2003 by Open Source Development Network. See README
# and COPYING for more information, or see http://slashcode.com/.
# $Id$

package Slash::Apache::User;

use strict;
use Time::HiRes;
use Apache;
use Apache::Constants qw(:common M_GET REDIRECT);
use Apache::Cookie;
use Apache::Request ();
use Apache::File;
use Apache::ModuleConfig;
use AutoLoader ();
use DynaLoader ();
use Slash::Apache ();
use Slash::Display;
use Slash::Utility;
use URI ();
use vars qw($REVISION $VERSION @ISA @QUOTES $USER_MATCH $request_start_time);

@ISA = qw(DynaLoader);
$VERSION = '2.003000'; # v2.3.0
($REVISION) = ' $Revision$ ' =~ /\$Revision:\s+([^\s]+)/;

bootstrap Slash::Apache::User $VERSION;

# BENDER: Oh, so, just 'cause a robot wants to kill humans
# that makes him a radical?

$USER_MATCH = $Slash::Apache::USER_MATCH;

sub SlashEnableENV ($$$) {
my($cfg, $params, $flag) = @_;
$cfg->{env} = $flag;
}

sub SlashAuthAll ($$$) {
my($cfg, $params, $flag) = @_;
$cfg->{auth} = $flag;
}

# see below for more info on this var
my $srand_called;

# handler method
sub handler {
my($r) = @_;

return DECLINED unless $r->is_main;

$request_start_time = Time::HiRes::time;

# Ok, this will make it so that we can reliably use Apache->request
Apache->request($r);

my $cfg = Apache::ModuleConfig->get($r);
my $dbcfg = Apache::ModuleConfig->get($r, 'Slash::Apache');
my $constants = getCurrentStatic();
my $slashdb = $dbcfg->{slashdb};
my $apr = Apache::Request->new($r);

$r->header_out('X-Powered-By' => "Slash $Slash::VERSION");
random($r);

# let pass unless / or .pl
my $uri = $r->uri;
if ($constants->{rootdir}) {
my $path = URI->new($constants->{rootdir})->path;
$uri =~ s/^\Q$path//;
}

my $is_ssl = Slash::Apache::ConnectionIsSSL();

$slashdb->sqlConnect;

my $method = $r->method;
# Don't remove this. This solves a known bug in Apache -- brian
$r->method('GET');

my $form = filter_params($apr);
$form->{query_apache} = $apr;
@{$form}{keys %{$constants->{form_override}}} =
values %{$constants->{form_override}};
my $cookies = Apache::Cookie->fetch;

# So we are either going to pick the user up from
# the form, a cookie, or they will be anonymous
my $uid;
my $op = $form->{op} || '';

if (($op eq 'userlogin' || $form->{rlogin}) && length($form->{upasswd}) > 1) {
my $tmpuid = $slashdb->getUserUID($form->{unickname});
($uid, my($newpass)) = userLogin($tmpuid, $form->{upasswd});

# here we want to redirect only if the user has posted via
# GET, and the user has logged in successfully

if ($method eq 'GET' && $uid && ! isAnon($uid)) {
$form->{returnto} =~ s/%3D/=/;
$form->{returnto} =~ s/%3F/?/;
my $absolutedir = $is_ssl
? $constants->{absolutedir_secure}
: $constants->{absolutedir};
$form->{returnto} = url2abs(($newpass
? "$constants->{rootdir}/users.pl?op=changepasswd" .
# XXX This "note" field is ignored now...
# right? - Jamie 2002/09/17
"&note=Please+change+your+password+now!"
: $form->{returnto}
? $form->{returnto}
: $uri),
$absolutedir
);
# not working ... move out into users.pl and index.pl
# I may know why this is the case, we may need
# to send a custom errormessage. -Brian
# $r->err_header_out(Location => $newurl);
# return REDIRECT;
}

} elsif ($op eq 'userclose') {
# It may be faster to just let the delete fail then test -Brian
# well, uid is undef here ... can't use it to test
# until it is defined :-) -- pudge
# Went boom without if. --Brian
# When did we comment out this? This means that even
# if an author logs out, the other authors will
# not know about it. Bad....
#$slashdb->deleteSession(); # if $slashdb->getUser($uid, 'seclev') >= 99;
delete $cookies->{user};
setCookie('user', '');

} elsif ($cookies->{user} and $cookies->{user}->value) {
my($tmpuid, $password) = eatUserCookie($cookies->{user}->value);
($uid, my($cookpasswd)) =
$slashdb->getUserAuthenticate($tmpuid, $password);

if ($uid) {
# set cookie every time, in case session_login
# value changes, or time is almost expired on
# saved cookie, or password changes, or ...

# can't set it every time, it upsets people.
# we need to set it only if password or
# session_login changes. -- pudge

# setCookie('user', bakeUserCookie($uid, $cookpasswd),
# $slashdb->getUser($uid, 'session_login')
# );
} else {
$uid = $constants->{anonymous_coward_uid};
delete $cookies->{user};
setCookie('user', '');
}
}

# This has happened to me a couple of times.
delete $cookies->{user} if ($cookies->{user} and !($cookies->{user}->value));

$uid = $constants->{anonymous_coward_uid} unless defined $uid;

# Ok, yes we could use %ENV here, but if we did and
# if someone ever wrote a module in another language
# or just a cheesy CGI, they would never see it.
$r->subprocess_env(SLASH_USER => $uid);

# This is only used if you have used the directive
# to disallow logins to your site.
# I need to complete this as a feature. -Brian
# This is not the way to abort processing... we can take a look
# at this later maybe. -Jamie 2002/10/02
# return DECLINED if $cfg->{auth} && isAnon($uid);

# this needs to get called once per child ... might as well
# have it called here. -- pudge
srand(time ^ ($$ + ($$ << 15))) unless $srand_called;
$srand_called ||= 1;

# If this uid is marked as banned, deny them access.
my $banlist = $slashdb->getBanList();
if ($banlist->{$uid}) {
$r->custom_response(FORBIDDEN,
slashDisplay('bannedtext_uid', { }, { Return => 1} )
);
return FORBIDDEN;
}

my $user = prepareUser($uid, $form, $uri, $cookies, $method);
# "_dynamic_page" or any hash key name beginning with _ or .
# cannot be accessed from templates -- pudge
if ($uri =~ /\.pl$/ || $uri =~ /\.tmpl$/) {
$user->{state}{_dynamic_page} = 1;
}
$user->{state}{ssl} = $is_ssl;
createCurrentUser($user);
createCurrentForm($form);

# If the user is connecting over SSL, make sure this is allowed.
# If allow_nonadmin_ssl is 0, then only admins are allowed in.
# If allow_nonadmin_ssl is 1, then anyone is allowed in.
# If allow_nonadmin_ssl is 2, then admins and subscribers are allowed in.
my $redirect_to_nonssl = 0;
if ($is_ssl && !(
                        # If the user is trying to log in, they are always
# allowed to make the attempt on the SSL server.
# Logging in means the users.pl script and either
# an empty op or the 'userlogin' op.
                        $uri =~ m{^/users\.pl}
                        && (!$form->{op} || $form->{op} eq 'userlogin')
                )
) {
my $ans = $constants->{allow_nonadmin_ssl};
if ($ans == 1) {
# It's OK, anyone is allowed to use the SSL server.
} elsif ($ans == 0) {
# Only admins are allowed in -- but note the special
# case where this is an admin who has lost privs due
# to a cleartext password having been sent. Those
# admin accounts are allowed in over SSL even though
# the rest of the system might not consider them
# "admins" right now.
if ($user->{seclev} > 1 || $user->{state}{lostprivs}) {
# It's an admin, this is fine.
} else {
# Not an admin, SSL access forbidden.
$redirect_to_nonssl = 1;
}
} elsif ($ans == 2) {
# Admins are allowed in, per the above case, but
# also subscribers are allowed in.
if ($user->{seclev} > 1 || $user->{state}{lostprivs}
|| $user->{is_subscriber}) {
                                # It's an admin or a subscriber, this is fine.
                        } else {
                                # Not an admin or subscriber, SSL access forbidden.
                                $redirect_to_nonssl = 1;
                        }
}
}
if ($redirect_to_nonssl) {
# User is not authorized to connect to the SSL webserver.
# Redirect them to the non-SSL URL.
my $newloc = $uri;
$newloc .= "?" . $r->args if $r->args;
$r->err_header_out(Location =>
URI->new_abs($newloc, $constants->{absolutedir}));
return REDIRECT;
}

createCurrentCookie($cookies);
createEnv($r) if $cfg->{env};
authors($r) if $form->{'slashcode_authors'};

# a special test mode for getting a new template
# object (hence, fresh cache) for each request
if ($constants->{template_cache_request}) {
undef $dbcfg->{template};
}

# Weird hack for getCurrentCache() till I can code up proper logic for it
{
my $cache = getCurrentCache();
if (!$cache->{_cache_time} || ((time() - $cache->{_cache_time}) > $constants->{apache_cache})) {
# we can't do $cache = {}, because that won't
# overwrite the actual ref stored in $cfg->{cache}
%{$cache} = ();
$cache->{_cache_time} = time();
}
}

return OK;
}

########################################################
sub createEnv {
my($r) = @_;

my $user = getCurrentUser();
my $form = getCurrentForm();

while (my($key, $val) = each %$user) {
$r->subprocess_env("USER_$key" => $val);
}

while (my($key, $val) = each %$form) {
$r->subprocess_env("FORM_$key" => $val);
}

}

########################################################
# These are very import, do not delete these
sub random {
my($r) = @_;
my $quote = $QUOTES[int(rand(@QUOTES))];
(my($who), $quote) = split(/: */, $quote, 2);
$r->header_out("X-$who" => $quote);
}

sub authors {
my($r) = @_;
$r->header_out('X-Author-Krow' => "You can't grep a dead tree.");
$r->header_out('X-Author-Pudge' => "Bite me.");
$r->header_out('X-Author-CaptTofu' => "I like Tofu.");
$r->header_out('X-Author-Jamie' => "I also enjoy tofu.");
}

########################################################
sub userLogin {
my($name, $passwd) = @_;
my $r = Apache->request;
my $slashdb = getCurrentDB();

# Do we want to allow logins with encrypted passwords? -- pudge
# $passwd = substr $passwd, 0, 20;
my($uid, $cookpasswd, $newpass) =
$slashdb->getUserAuthenticate($name, $passwd); #, 1

if (!isAnon($uid)) {
setCookie('user', bakeUserCookie($uid, $cookpasswd),
$slashdb->getUser($uid, 'session_login'));
return($uid, $newpass);
} else {
return getCurrentStatic('anonymous_coward_uid');
}
}

########################################################
sub userdir_handler {
my($r) = @_;

my $constants = getCurrentStatic();

# note that, contrary to the RFC, a + in this handler
# will be treated as a space; the only way to get a +
# is to encode it, such as %2B
my $uri = $r->the_request;
$uri =~ s/^\S+\s+//;
$uri =~ s/\s+\S+$//;
$uri =~ s/\+/ /g;
my $saveuri = $uri;
$uri =~ s/%([a-fA-F0-9]{2})/pack('C', hex($1))/ge;

if ($constants->{rootdir}) {
my $path = URI->new($constants->{rootdir})->path;
$uri =~ s/^\Q$path//;
}

# /my/ or /my can match, but not /mything
if (($saveuri =~ m[^/(?:%7[eE]|~)/] && $uri =~ m[^/~/(.+)]) or ($uri =~ m[^/my (?: /(.*) | /? ) $]x)) {
my $match = $1;
if ($r->header_in('Cookie') =~ $USER_MATCH) {
my($op, $extra) = split /\//, $match, 2;
if ($op eq 'journal') {
my $args;
if ($extra && $extra =~ /^\d+$/) {
$args = "id=$extra&op=edit";
} elsif ($extra && $extra eq 'friends') {
$args = "op=friendview";
} else {
$args = "op=list";
}
$r->args($args);
$r->uri('/journal.pl');
$r->filename($constants->{basedir} . '/journal.pl');
} elsif ($op eq 'discussions') {
$r->args("op=personal_index");
$r->uri('/comments.pl');
$r->filename($constants->{basedir} . '/comments.pl');
} elsif ($op eq 'inbox') {
$r->args("op=list");
$r->uri('/messages.pl');
$r->filename($constants->{basedir} . '/messages.pl');
} elsif ($op eq 'messages') { # XXX change to be same as /inbox, move this to /my/preferences/messages
$r->args("op=display_prefs");
$r->uri('/messages.pl');
$r->filename($constants->{basedir} . '/messages.pl');
} elsif ($op eq 'friends') {
if ($extra eq 'friends') {
$r->args("op=fof");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} elsif ($extra eq 'foes') {
$r->args("op=eof");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} else {
$r->args("op=friends");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
}
} elsif ($op eq 'foes') {
$r->args("op=foes");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} elsif ($op eq 'fans') {
$r->args("op=fans");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} elsif ($op eq 'freaks') {
$r->args("op=freaks");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} elsif ($op eq 'zoo') {
$r->args("op=all");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} elsif ($op eq 'comments') {
$r->args("op=editcomm");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
} elsif ($op eq 'homepage') {
$r->args("op=edithome");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
} elsif ($op eq 'password') {
$r->args("op=changepasswd");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
} elsif ($op eq 'logout') {
$r->args("op=userclose");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
} elsif ($op eq 'misc') {
$r->args("op=editmiscopts");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
} elsif ($op eq 'amigos') {
$r->args("op=friendview");
$r->uri('/journal.pl');
$r->filename($constants->{basedir} . '/journal.pl');
} else {
$r->args("op=edituser");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
}
return OK;
} else {
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
return OK;
}
}

# assuming Apache/mod_perl is decoding the URL in ->uri before
# returning it, we have to re-encode it with fixparam(). that
# will change if somehow Apache/mod_perl no longer decodes before
# returning the data. -- pudge
if ($saveuri =~ m[^/(?:%7[eE]|~)(.+)]) {
my($nick, $op, $extra) = split /\//, $1, 4;
for ($nick, $op, $extra) {
s/%([a-fA-F0-9]{2})/pack('C', hex($1))/ge;
}

my $slashdb = getCurrentDB();
my $uid = $slashdb->getUserUID($nick);
$nick = fixparam($nick); # make safe to pass back to script

# maybe we should refactor this code a bit ...
# have a hash that points op to args and script name -- pudge
# e.g.:
# my %ops = ( journal => ['/journal.pl', 'op=display'], ... );
# $r->args($ops{$op}[1] . "&nick=$nick");
# $r->uri($ops{$op}[0]);
# $r->filename($constants->{basedir} . $ops{$op}[0]);
# Not against it, or something like it. This is getting a bit long.
# I would rather prefer it did not turn out like ops have though. -Brian
# what do you mean? -- pudge

unless ($uid) {
$r->args("op=no_user");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');

} elsif ($op eq 'journal') {
my $args = "op=display&nick=$nick&uid=$uid";
if ($extra && $extra =~ /^\d+$/) {
$args .= "&id=$extra";
} elsif ($extra && $extra =~ /^rss$/) {
$args .= "&content_type=rss";
} elsif ($extra && $extra =~ /^friends$/) {
$args =~ s/display/friendview/;
}
$r->args($args);
$r->uri('/journal.pl');
$r->filename($constants->{basedir} . '/journal.pl');

} elsif ($op eq 'discussions') {
$r->args("op=creator_index&nick=$nick&uid=$uid");
$r->uri('/comments.pl');
$r->filename($constants->{basedir} . '/comments.pl');

} elsif ($op eq 'pubkey') {
$r->args("nick=$nick&uid=$uid");
$r->uri('/pubkey.pl');
$r->filename($constants->{basedir} . '/pubkey.pl');

} elsif ($op eq 'submissions') {
$r->args("nick=$nick&op=usersubmissions&uid=$uid");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');

} elsif ($op eq 'comments') {
$r->args("nick=$nick&op=usercomments&uid=$uid");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');

} elsif ($op eq 'friends') {
if ($extra eq 'friends') {
$r->args("op=fof&nick=$nick&uid=$uid");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} elsif ($extra eq 'foes') {
$r->args("op=eof&nick=$nick&uid=$uid");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
} else {
$r->args("op=friends&nick=$nick&uid=$uid");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');
}
} elsif ($op eq 'fans') {
$r->args("op=fans&nick=$nick&uid=$uid");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');

} elsif ($op eq 'freaks') {
$r->args("op=freaks&nick=$nick&uid=$uid");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');

} elsif ($op eq 'foes') {
$r->args("op=foes&nick=$nick&uid=$uid");
$r->uri('/zoo.pl');
$r->filename($constants->{basedir} . '/zoo.pl');

} elsif ($op eq 'amigos') {
$r->args("op=friendview&nick=$nick&uid=$uid");
$r->uri('/journal.pl');
$r->filename($constants->{basedir} . '/journal.pl');

} else {
$r->args("nick=$nick&uid=$uid");
$r->uri('/users.pl');
$r->filename($constants->{basedir} . '/users.pl');
}

return OK;
}

return DECLINED;
}



########################################################
#
sub DESTROY { }

@QUOTES = split(/\n/, <<'EOT');
Bender:Fry, of all the friends I've had ... you're the first.
Bender:I hate people who love me. And they hate me.
Bender:Oh no! Not the magnet!
Bender:Bender's a genius!
Bender:Well I don't have anything else planned for today, let's get drunk!
Bender:Oh, so, just 'cause a robot wants to kill humans that makes him a radical?
Bender:There's nothing wrong with murder, just as long as you let Bender whet his beak.
Bender:Bite my shiny, metal ass!
Bender:Lick my frozen, metal ass!
Bender:The laws of science be a harsh mistress.
Bender:In the event of an emergency, my ass can be used as a flotation device.
Bender:Like most of life's problems, this one can be solved with bending.
Bender:Honey, I wouldn't talk about taste if I was wearing a lime green tank top.
Bender:A woman like that you gotta romance first!
Bender:OK, but I don't want anyone thinking we're robosexuals.
Bender:Hey Fry, I'm steering with my ass!
Bender:Care to contribute to the Anti-Mugging-You Fund?
Bender:Want me to smack the corpse around a little?
Bender:My full name is Bender Bending Rodriguez.
Bender:My life, and by extension everyone else's, is meaningless.
Bender:I'm tired of this room and everyone in it!
Bender:Wait! My cheating unit malfunctioned! You gotta give me a do-over!
Bender:Gimme your biggest, strongest, cheapest drink.
Bender:I'm a fraud. A poor, lazy, sexy fraud.
Bender:Ahhh, functional.
Bender:Since I love you all so much, I'd like to give everyone hugs.
Bender:There! That oughtta convert a few tailgaters.
Bender:But-- those girls don't wear cases! You can see their bare circuits!
Bender:They're tormenting me with uptempo singing and dancing!
Bender:Comedy's a dead art form. Now tragedy -- THAT'S funny.
Bender:Nothing like a warm fire and a super-soaker of fine cognac.
Bender:Yes! I got the most! I win X-Mas!
Bender:I'm one of those lazy, homeless bums I've been hearing about.
Bender:Shooting DNA at each other to make babies. I find it offensive!
Bender:We're both expressible as the sum of two cubes!
Bender:Stupid anti-pimping laws!
Bender:Float like a floatbox, sting like an automatic stingin' machine.
Bender:Crippling pain? That's not covered by my insurance fraud.
Bender:Let's commence preparations for rumbling!
Bender:Woohoo, I'm popular!
Bender:Ah crap, I'm some sort of robot!
Bender:When will man learn that all races are equally inferior to robots?
Bender:Curse my natural showmanship!
Bender:I'm not allowed to sing. Court order.
Bender:Boy, who knew a cooler could also make a handy wang coffin?
Bender:I'm so embarrassed. I wish everybody else was dead.
Bender:Professor! Make a women out of me!
Fry:There's a lot about my face you don't know.
Fry:Drugs are for losers. And hypnosis is for losers with big weird eyebrows.
Fry:These new hands are great. I'm gonna break them in tonight.
Fry:I refuse to testify on the grounds that my organs will be chopped up into a patty.
Fry:Leela, there's nothing wrong with anything.
Fry:Augh, I am so unlucky. I've run over black cats that were luckier than me.
Fry:Leela, Bender, we're going grave-robbing.
Fry:Where's Captain Bender? Off catastrophizing some other planet?
Fry:People said I was dumb but I proved them!
Fry:It's like a party in my mouth and everyone's throwing up.
Fry:Nowadays people aren't interested in art that's not tattooed on fat guys.
Fry:I don't regret this, but I both rue and lament it.
Fry:I'm never gonna get used to the thirty-first century. Caffeinated bacon?
Fry:They're great! They're like sex except I'm having them.
Fry:No, no, I was just picking my nose.
Fry:How can I live my life if I can't tell good from evil?
Fry:That's a chick show. I prefer programs of the genre: World's Blankiest Blank.
Fry:But this is HDTV. It's got better resolution than the real world.
Fry:I'm gonna be a science fiction hero, just like Uhura, or Captain Janeway, or Xena!
Fry:Make up some feelings and tell her you have them.
Fry:I'm not a robot like you. I don't like having disks crammed into me... unless they're Oreos, and then only in the mouth.
Fry:Sweet justice! Sweet, juicy justice!
Fry:I must be a robot. Why else would human women refuse to date me?
Fry:Hey look, it's that guy you are!
Fry:That doesn't look like an "L", unless you count lower case.
Fry:Hardy Boys: too easy. Nancy Drew: too hard!
Fry:I'm going to continue never washing this cheek again.
Fry:I haven't had time off since I was twenty-one through twenty-four.
Fry:The spoon's in the foot powder.
Fry:You mean Bender is the evil Bender? I'm shocked! Shocked! Well not that shocked.
Fry:I'm literally angry with rage!
Fry:The butter in my pocket is melting!
Fry:Stop abducting me!
EOT

1;

__END__

=head1 NAME

Slash::Apache::User - Apache Authenticate for Slash user

=head1 SYNOPSIS

use Slash::Apache::User;

=head1 DESCRIPTION

This is the user authenication system for Slash. This is
where you want to be if you want to modify slashcode's
method of authenication. The rest of Slash depends
on finding the UID of the user in the SLASH_USER
environmental variable.

=head1 SEE ALSO

Slash(3), Slash::Apache(3).

=cut
Something went wrong with that request. Please try again.