$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css'; if ($vbulletin->options['storecssasfile'] AND write_css_file($cssfilename, $css)) { $QUERY[] = "css = '" . $vbulletin->db->escape_string("<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfilename\" id=\"vbulletin_css\" />") . "'"; }
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css'; $cssfilepath = $vbulletin->options['bburl'].'/'.$cssfilename; if ($vbulletin->options['storecssasfile'] AND write_css_file($cssfilename, $css)) { $QUERY[] = "css = '" . $vbulletin->db->escape_string("<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfilepath\" id=\"vbulletin_css\" />") . "'"; }