#!/usr/bin/perl -w ############################################################################### # authors.pl - this code displays information about site authors # # Copyright (C) 1997 Rob "CmdrTaco" Malda # malda@slashdot.org # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # $Id: authors.pl,v 1.1.1.1 2000/10/05 21:22:12 alessio Exp $ ############################################################################### use strict; use lib '../'; use vars '%I'; use vars '%L'; use Slash; sub main { *I = getSlashConf(); *L = \%Slash::L; getSlash(); my $SECT=getSection($I{F}{section}); header("$I{sitename}: $L{The_Authors}", $SECT->{section}); titlebar("98%","$L{The_Authors}"); print $L{I_keep_getting_asked_Who_are_you_guys_}; my $c = sqlSelectMany("count(*) as c, stories.aid as aid, url, copy", "stories, authors", "authors.aid=stories.aid", " GROUP BY aid ORDER BY c DESC"); while(my $A = $c->fetchrow_hashref) { next if $A->{c} < 1; print <$A->{c} $A->{aid} EOT print qq![ edit ] ! if $I{U}{aseclev} > 1000; print $A->{copy}; } $c->finish; printf <
$L{generated_on_} %s

EOT writelog("authors"); footer($I{F}{ssi}); } main(); $I{dbh}->disconnect if $I{dbh};