if($mybb->input['action'] == "editdesign")
{
$user = $_COOKIE['mybbuser'];
$userid = explode("_", $user, 2);
$query =
$db->simple_select("users","profilebordercolor,profilebordertyp,profilebordersize,profilebg,theadbg,theadcolor,trow1b
g,trow1color,trow2bg,trow2color,tborderbg,tborderborder", "uid= ".$userid[0]."", array('order_by' => 'uid',
'order_dir' => 'DESC', 'limit' =>'1'));
$editdesign = $db->fetch_array($query);
$profilebordercolor = $editdesign['profilebordercolor'];
$profilebordertyp = $editdesign['profilebordertyp'];
$profilebordersize = $editdesign['profilebordersize'];
$profilebg = $editdesign['profilebg'];
$theadbg = $editdesign['theadbg'];
$theadcolor = $editdesign['theadcolor'];
$trow1bg = $editdesign['trow1bg'];
$trow2bg = $editdesign['trow2bg'];
$trow1color = $editdesign['trow1color'];
$trow2color = $editdesign['trow2color'];
$tborderbg = $editdesign['tborderbg'];
$tborderborder = $editdesign['tborderborder'];
eval("\$editdesign = \"".$templates->get("usercp_editdesign")."\";");
output_page($editdesign);
}