update($_G['tid'], array('moderated'=>1, 'stamp'=>$_GET['stamp'])); if($modaction == 'SPA' && $_G['cache']['stamps'][$_GET['stamp']]['icon']) { C::t('forum_thread')->update($_G['tid'], array('icon'=>$_G['cache']['stamps'][$_GET['stamp']]['icon'])); C::t('forum_threadhidelog')->delete_by_tid($_G['tid']); } elseif($modaction == 'SPD' && $_G['cache']['stamps'][$thread['stamp']]['icon'] == $thread['icon']) { C::t('forum_thread')->update($_G['tid'], array('icon'=>-1)); } C::t('common_member_secwhite')->add($thread['authorid']); $resultarray = array( 'redirect' => "forum.php?mod=viewthread&tid=$_G[tid]&page=$page", 'reasonpm' => ($sendreasonpm ? array('data' => array($thread), 'var' => 'thread', 'notictype' => 'post', 'item' => $_GET['stamp'] !== '' ? 'reason_stamp_update' : 'reason_stamp_delete') : array()), 'reasonvar' => array('tid' => $thread['tid'], 'subject' => $thread['subject'], 'modaction' => $modaction, 'reason' => $reason, 'stamp' => $_G['cache']['stamps'][$stamp]['text']), 'modaction' => $modaction, 'modlog' => $thread ); $modpostsnum = 1; updatemodlog($_G['tid'], $modaction, 0, 0, '', $modaction == 'SPA' ? $_GET['stamp'] : 0); } ?>