$vbulletin->input->clean_array_gpc('p', array('field1' => TYPE_STR, 'field2', TYPE_STR)); $newpost['field1'] =& $vbulletin->GPC['field1']; $newpost['field2'] =& $vbulletin->GPC['field2'];
$this->validfields['field1'] = array(TYPE_STR, REQ_NO); $this->validfields['field2'] = array(TYPE_STR, REQ_NO);
if ($type == 'thread) { $dataman->setr('field1', $post['field1']); $dataman->setr('field2', $post['field2']); }