$allowedlist = $allowedfonts; break; case 'border_width': $allowedlist = $allowedborderwidths; break; case 'padding': $allowedlist = $allowedpaddings; break; } if (isset($allowedlist)) { if (!in_array($value, $allowedlist) and $value != '') { $usercss->invalid["{$selectorname}"]["{$property}"] = ' usercsserror '; continue; } } $usercss->parse($selectorname, $property, $value); } } ($hook = vBulletinHook::fetch_hook('profile_docustomize_process')) ? eval($hook) : false; if ($vbulletin->GPC['ajax']) { // AJAX means get the preview $effective_css = $usercss->build_css($usercss->fetch_effective()); $effective_css = str_replace('/*sessionurl*/', $vbulletin->session->vars['sessionurl_js'], $effective_css); require_once DIR . '/includes/class_xml.php'; $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml'); $xml->add_group('preview'); $xml->add_tag('css', process_replacement_vars($effective_css)); $xml->close_group(); $xml->print_xml(); } if (empty($usercss->error) and empty($usercss->invalid)) {