I already try to setup update index.cgi and index_dl.pmPilgrimX182 wrote:
Here goes quick hack for ya: in index.cgi findthen uncomment 1st line and replace 2nd line withCode: Select all
#my $cond = $ses->getUser ? "usr_id=".$ses->getUserId : "ip=INET_ATON('".$ses->getIP."')"; my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE ip=INET_ATON(?) AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
Code: Select all
my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE $cond AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
with this code
Code: Select all
my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE $cond AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
and the result still error
Software error:
Global symbol "$cond" requires explicit package name at index.cgi line 2229.
BEGIN not safe after errors--compilation aborted at index.cgi line 2932.
For help, please send mail to the webmaster (webmaster@yourdomain), giving this error message and the time and date of the error.