In Reply To:
[root@neptun tools]# perl import.pl --type=UBB5 --source=
/html/cgi-bin/ubb --clear-database --add-bad-email
In Reply To:
The Dir Info of the
cgi/ubb/ directory is the following:
Did you mean cgi-bin/ubb?
All the code is doing there is:
Code:
if (-f $self->{source} . '/UltBB.setup') {
$conf = $self->{source} . '/UltBB.setup';
}
elsif (-f $self->{source} . '/cgi-bin/UltBB.setup') {
$conf = $self->{source} . '/cgi-bin/UltBB.setup';
}
else {
$self->{error} = 'Cannot locate UBB configuration file (UltBB.setup).';
return 0;
}
$self->{source} is the value of the --source option, so all it's doing is checking for the UltBB.setup file in the source directory as well as cgi-bin, otherwise it gives you the error you got. Are you sure you got the path to UBB correct?
Adrian