Voila je vien de l´installer ( pour un logiciel) et voila il faut que je le program ( mettre la bonne base de donnez ! ) quelqun peut m´aider voici le script :
- ###############################################
- #########
- XtraStats Commish Util for FHL
- v0.99.2.0
#
- ( c) 1999, Wynn Fenwick, All rights reserved.
- ( c) 2001, Frederic Hurtubise, All rights reserved.
#
- Email: frederic@hurtubise.net
- Website: TBD
#
- Rights of licence:
- - Re-distribution of this software is prohibited.
- - Requestors of the software should be forwarded to me directly.
- - Modification of this software without notification to Frederic Hurtubise
- ( frederic@hurtubise) is prohibited.
- - Use of this software without credit to author on program output
- is prohibited.
#
- This doesn´t mean you won´t be able to modify the program. I just want
- to be notified. Maybe your ideas are good enough to be included in the
- next version!
- ###############################################
- ##########
package XtraStats::LeechFiles;
use LWP::UserAgent;
use HTTP::Request;
use strict;
$|++;
sub Go
{
my $ua = new LWP::UserAgent;
my $url_part =
"$XtraStats::Config::LeagueURL$XtraStats::Config::
LeaguePrefix";
my $req = new HTTP::Request(´GET´, "${url_part}Schedule.html") || die ( "$! ${url_part}Schedule.html");
my $res = $ua->request($req);
my $content = $res->content();
open ( FILE,
">$XtraStats::Config::InDirectory${XtraStats::Conf
ig::LeaguePrefix}Schedule.html") || die ( "$!
${XtraStats::Config::LeaguePrefix}Schedule.html");
print FILE $content;
close FILE;
my $lastday;
while ( $content =~ s/<A
HREF=$XtraStats::Config::LeaguePrefix(\d+)\.html>/
/g)
{
$lastday = $1;
}
print "\n-=> Leeching boxscores\n";
for ( my $i = 1; $i <= $lastday; $i++)
{
if ( !-e
"$XtraStats::Config::InDirectory$XtraStats::Config
::LeaguePrefix$i.html")
{
print "." if $XtraStats::Config::Verbose;
my $req = new HTTP::Request(´GET´, "${url_part}$i.html") || die ( "$! ${url_part}$i.html");;
my $res = $ua->request($req);
my $content = $res->content();
open ( FILE,
">$XtraStats::Config::InDirectory$XtraStats::Confi
g::LeaguePrefix$i.html") || die ( "$! $XtraStats::Config::LeaguePrefix$i.html");
print FILE $content;
close FILE;
}
}
print "\n<=- Leeching boxscores\n";
print "\n-=> Leeching player files\n";
foreach my $file ( qw(TeamScoring PlayerVitals Rosters Standings))
{
print "." if $XtraStats::Config::Verbose;
my $req = new HTTP::Request(´GET´, "${url_part}$file.html");
my $res = $ua->request($req);
my $content = $res->content();
open ( FILE,
">$XtraStats::Config::InDirectory$XtraStats::Confi
g::LeaguePrefix$file.html") || die ( "$! $XtraStats::Config::LeaguePrefix$file.html");
print FILE $content;
close FILE;
}
print "\n<=- Leeching player files\n";
}
666;
voila ! Pouvez m´aider car la je ne comprend vraiment rien !