Results 1 to 4 of 4
-
20th May 2012, 04:46 PM #1OPMemberWebsite's:
porndex.eu massprchecker.comCan anyone see an error in this ......?
This is rules.php from a torrent script, but it just hangs and sends the server load sky high, just wondered if anyone can see a loop or the reason why its does it?
Cheers
RR
Code:<? /***********************************************/ /*=========[TS Special Edition v.5.6]==========*/ /*=============[Special Thanks To]=============*/ /* DrNet - wWw.SpecialCoders.CoM */ /* Vinson - wWw.Decode4u.CoM */ /* MrDecoder - wWw.Fearless-Releases.CoM */ /* Fynnon - wWw.BvList.CoM */ /***********************************************/ require_once 'global.php'; gzip (); dbconn (); define ('R_VERSION', '0.6 '); define ('NcodeImageResizer', true); include_once INC_PATH . '/functions_security.php'; stdhead (); $res = sql_query ('SELECT title,text,usergroups FROM rules ORDER BY id'); while ($rules = mysql_fetch_assoc ($res)) { if (((($rules['usergroups'] == '[0]' OR $rules['usergroups'] == '0') OR ($CURUSER AND ($CURUSER['usergroup'] === $rules['usergroups'] OR '[' . $CURUSER['usergroup'] . '].' === $rules['usergroups']))) OR ($CURUSER['usergroup'] AND preg_match ('#\\[' . $CURUSER['usergroup'] . '\\]#U', $rules['usergroups'])))) { echo ' <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td class="thead">' . $rules['title'] . '</td> </tr> <tr> <td align="left">' . format_comment ($rules['text']) . '</td> </tr> </table> '; continue; } else { continue; } } stdfoot (); ?>
roadrunner Reviewed by roadrunner on . Can anyone see an error in this ......? This is rules.php from a torrent script, but it just hangs and sends the server load sky high, just wondered if anyone can see a loop or the reason why its does it? Cheers RR <? /***********************************************/ /*===================*/ /*==========================*/ /* DrNet - wWw.SpecialCoders.CoM */ Rating: 5
-
20th May 2012, 04:52 PM #2(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comCode looks fine.
There's nothing there to cause infinite loops or timeouts (unless there's a huge amount of rules, then it may hang).
The problem is probably elsewhere, could be one of the following:
- Some bug in global.php
- dbconn() hanging because it can't connect to the DB (timeout)
- DB under extreme load, in which case the query may timeout
Either way it'll be caused by one of those custom functions or something in the included files, nothing in this file in particular.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
20th May 2012, 05:06 PM #3OPMemberWebsite's:
porndex.eu massprchecker.comTop man & thanks for that, I coudnt see anything wrong either, but thought best to ask someone that knows shit loads more than I do.
Cheers
RR
-
20th May 2012, 06:12 PM #4Probation
I don't see an error anyway.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Error Detected in sitemap XML. How to remove error?
By Bobby3711 in forum Web Application/Script SupportReplies: 1Last Post: 21st Mar 2012, 03:51 PM -
Rapidleech error: Error openning rar process
By tractor3231 in forum Server ManagementReplies: 13Last Post: 14th Dec 2011, 04:35 AM -
HTTP Error 500 (Internal Server Error):
By joshmoore in forum Technical Help Desk SupportReplies: 4Last Post: 25th Nov 2011, 03:59 AM -
wtf happened? (ipb 3.23 skin error causes fatal error)
By mrHunt in forum Technical Help Desk SupportReplies: 1Last Post: 25th Nov 2011, 03:55 AM -
Adding Domain Error in cPanel (Error from park wrapper:)
By Ryza in forum General DiscussionReplies: 0Last Post: 20th Feb 2011, 01:57 AM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...