$vbulletin->input->clean_array_gpc('p', array( 'ranklevel' => TYPE_UINT, 'minposts' => TYPE_UINT, 'rankimg' => TYPE_STR, 'usergroupid' => TYPE_INT, 'doinsert' => TYPE_STR, 'rankhtml' => TYPE_NOTRIM, 'stack' => TYPE_UINT, 'display' => TYPE_UINT, ));
'rankorder' => TYPE_UINT,
$db->query_write(" UPDATE " . TABLE_PREFIX . "ranks SET ranklevel = " . $vbulletin->GPC['ranklevel'] . ", minposts = " . $vbulletin->GPC['minposts'] . ", rankimg = '" . $db->escape_string($vbulletin->GPC['rankimg']) . "', usergroupid = " . $vbulletin->GPC['usergroupid'] . ", type = $type, stack = " . $vbulletin->GPC['stack'] . ", display = " . $vbulletin->GPC['display'] . " WHERE rankid = " . $vbulletin->GPC['rankid'] . " ");
$db->query_write(" UPDATE " . TABLE_PREFIX . "ranks SET ranklevel = " . $vbulletin->GPC['ranklevel'] . ", minposts = " . $vbulletin->GPC['minposts'] . ", rankimg = '" . $db->escape_string($vbulletin->GPC['rankimg']) . "', usergroupid = " . $vbulletin->GPC['usergroupid'] . ", type = $type, stack = " . $vbulletin->GPC['stack'] . ", display = " . $vbulletin->GPC['display'] . ", rankorder = " . $vbulletin->GPC['rankorder'] . " WHERE rankid = " . $vbulletin->GPC['rankid'] . " ");