HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Skip navigation

Flood control irritation

Title Flood control irritation
Description If you make some kind of post, then get an error message due to some kind of safe error (for instance, the CAPTCHA value was entered wrong), flood control makes you wait before you may continue.
Affects OCF users
Fix Change lines 766-774 of sources/global2.php from:

Code

   if ((array_key_exists('MSN_DB',$GLOBALS)) && (!is_null($GLOBALS['MSN_DB'])))
   {
      $GLOBALS['FORUM_DB']=$GLOBALS['MSN_DB'];
      $GLOBALS['MSN_DB']=NULL;
   }

   global $EXITING;
   if ((!function_exists('do_header')) || ($EXITING==1)) critical_error('EMERGENCY',is_object($text)?$text->evaluate():$text);
   $EXITING=1;
to:

Code

   if ((array_key_exists('MSN_DB',$GLOBALS)) && (!is_null($GLOBALS['MSN_DB'])))
   {
      $GLOBALS['FORUM_DB']=$GLOBALS['MSN_DB'];
      $GLOBALS['MSN_DB']=NULL;
   }

   if (get_forum_type()=='ocf')
   {
      $restrict_answer=ocf_get_best_group_property($GLOBALS['FORUM_DRIVER']->get_members_groups(get_member()),'flood_control_submit_secs');
      $GLOBALS['SITE_DB']->query_update('f_members',array('m_last_submit_time'=>time()-$restrict_answer-1),array('id'=>get_member()),'',1);
   }

   global $EXITING;
   if ((!function_exists('do_header')) || ($EXITING==1)) critical_error('EMERGENCY',is_object($text)?$text->evaluate():$text);
   $EXITING=1;


Trackbacks

There have been no trackbacks yet


There have been no comments yet


Make comment
Your name: (join or login)
Subject:
Your message: