fetch_all_by_available_icon(2, true) as $bbcode) { $bbcode['perm'] = explode("\t", $bbcode['perm']); if(in_array('', $bbcode['perm']) || !$bbcode['perm']) { continue; } $i++; $tag = $bbcode['tag']; $bbcode['i'] = $i; $bbcode['explanation'] = dhtmlspecialchars(trim($bbcode['explanation'])); $bbcode['prompt'] = addcslashes($bbcode['prompt'], '\\\''); unset($bbcode['tag']); foreach($bbcode['perm'] as $groupid) { $data[$groupid][$tag] = $bbcode; } } savecache('bbcodes_display', $data); } ?>