Activity Stream
48,167 MEMBERS
61030 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    porndex.eu massprchecker.com

    Default 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

    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

  2.   Sponsored Links

  3.     
    #2
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    Code 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!

  4.     
    #3
    Member
    Website's:
    porndex.eu massprchecker.com
    Top 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

  5.     
    #4
    Probation
    I don't see an error anyway.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error Detected in sitemap XML. How to remove error?
    By Bobby3711 in forum Web Application/Script Support
    Replies: 1
    Last Post: 21st Mar 2012, 03:51 PM
  2. Rapidleech error: Error openning rar process
    By tractor3231 in forum Server Management
    Replies: 13
    Last Post: 14th Dec 2011, 04:35 AM
  3. HTTP Error 500 (Internal Server Error):
    By joshmoore in forum Technical Help Desk Support
    Replies: 4
    Last Post: 25th Nov 2011, 03:59 AM
  4. wtf happened? (ipb 3.23 skin error causes fatal error)
    By mrHunt in forum Technical Help Desk Support
    Replies: 1
    Last Post: 25th Nov 2011, 03:55 AM
  5. Adding Domain Error in cPanel (Error from park wrapper:)
    By Ryza in forum General Discussion
    Replies: 0
    Last Post: 20th Feb 2011, 01:57 AM

Tags for this Thread

BE SOCIAL