Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports
Author Message
mangaman
New Member
New Member


Joined: Sep 13, 2004
Posts: 16

PostPosted: Thu Nov 04, 2004 5:35 pm Reply with quote

the error I get is:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/mangaman/public_html/admin/modules/sentinel/ABBlockedIPDeleteSave.php on line 40

It seems to still delete the IP because when I went to delete the address from the nsnst_blocked_ips table using phpmyadmin it wasn't there. So I went back to the Display Blocked IP's page and sure enough it was gone, I tryed deleting some more and I still get that error but they are still deleted. Just wanted to let you know.

_________________
"Technological progress is like an axe in the hands of a pathological criminal." -- Albert Einstein
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Thu Nov 04, 2004 9:30 pm Reply with quote

Here's what's happening, it timing out searching your htaccess file for the ip being deleted.
Code:
        $testip = "deny from $xIPs\n";

        $ipfile = file($abconfig['htaccess_path']);
        $i = 0;
        while ($i <= count($ipfile)) {
          if ($testip == $ipfile[$i]) { $ipfile[$i] = ""; }
          $doip = $doip.$ipfile[$i];
          $i++;
        }
        fwrite($doit, $doip);


If we change this to:
Code:
        $testip = "deny from $xIPs\n";

        $ipfile = file($abconfig['htaccess_path']);
        $ipfile = implode("", $ipfile);
        $ipfile = str_replace($testip, "", $ipfile);
        $doit = fopen($abconfig['htaccess_path'], "w");
        fwrite($doit, $ipfile);


It will no longer time out as it takes the array of $ipfile and converts it into a string of $ipfile and then just does a string replacement Smile

---EDIT----
I'll update the downloads tonite for this as well. I'll also check the other files that interact with the htaccess file and make sure they use the same system instead of search line by line in htaccess Smile

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©