I replied to a post using the FAST REPLY option. Tried to edit the post right after and got the error below. Once I changed to another page and came back the error went away. Not sure if it's a glitch or an issue on my side. Maybe the issue can be replicated and checked on.
CODE | extra == "showedits") { $find = $this->admincp->code_edit("Find:","if ( $ ibforums->input['CODE'] != \"08\" and $ ibforums->input['CODE'] != \"09\" and $ ibforums->input['CODE'] != \"14\" and $ ibforums->input['CODE'] != \"15\" ) { if ( $ ibforums->vars['flood_control'] > 0 ) { if ($ ibforums->member['g_avoid_flood'] != 1) "); $addabove = $this->admincp->code_edit("Add Above:","if(($ ibforums->vars['flood_control'] > 0) && ($ ibforums->member['g_avoid_flood'] != 1) && (time()-$ ibforums->member['last_post'] < $ ibforums->vars['flood_control'])) { require_once(\"./sources/store/store_module.php\"); $ storemodule = new runjob(); $ storemodule->item_runjob('ownchange/item_bypassflood'); } "); $unfind = $this->admincp->code_edit("Find:","require(\"./sources/storeitems/ownchange/item_bypassflood.php\"); $ run = new item; $ run->run_job(); "); $html .= $SKIN->add_td_row(array("Before you can add this item you have to make the following edit. ")); $html .= $SKIN->add_td_row(array("If you installed this already, please do these edits first.")); $html .= $SKIN->add_td_row(array("Open ./sources/Post.php ")); $html .= $unfind; $html .= $SKIN->add_td_row(array("Remove that.")); $html .= $SKIN->add_td_row(array("Save and reupload Post.php and then continue with the below.")); $html .= $SKIN->add_td_row(array("Open ./sources/Post.php ")); $html .= $find; $html .= $addabove; $html .= $SKIN->add_td_row(array("Save and reupload Post.php and you are done.")); } return $html; } function run_job(){ global $ibforums,$DB; $DB->query("SELECT inv.i_id FROM ibf_store_inventory as inv LEFT JOIN ibf_store_shopstock as stock ON (stock.id = stock.id) WHERE inv.owner_id = '{$ibforums->member['id']}' AND stock.module = 'ownchange/item_bypassflood' LIMIT 1"); if($DB->get_num_rows()) { $ibforums->vars['flood_control'] = 0; $ibforums->member['g_avoid_flood'] = 1; } return true; } } ?> |
|