$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)) { $usercss->save(); $vbulletin->url = "profile.php?" . $vbulletin->session->vars['sessionurl'] . "do=customize"; eval(print_standard_redirect('usercss_saved')); } else { if (!empty($usercss->error)) { standard_error(implode("<br />", $usercss->error));
// ####################################################################### if ($_REQUEST['do'] == 'customize') { $cssdisplayinfo = $usercss->build_display_array(); $errors = ''; // if we don't have errors, the displayed values are the existing ones // otherwise, use the form submission if (!defined('HAVE_ERRORS')) { if ($vbulletin->GPC['copyprofilecss'] AND ($vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_profile_styling'])) { $profileusercss = new vB_UserCSS($vbulletin, $vbulletin->userinfo['userid']); $selectors_saved = $profileusercss->existing; $usercss_profile_preview = $profileusercss->build_css($profileusercss->fetch_effective()); $usercss_profile_preview = str_replace('/*sessionurl*/', $vbulletin->session->vars['sessionurl_js'], $usercss_profile_preview); $usercss_profile_preview = process_replacement_vars($usercss_profile_preview); unset($profileusercss); define('VBBLOG_NOUSERCSS', true); } else { $selectors_saved = $usercss->existing; } } ($hook = vBulletinHook::fetch_hook('blog_customize_start')) ? eval($hook) : false; $usercssbits = ''; foreach ($cssdisplayinfo AS $selectorname => $selectorinfo)