This is rough and untested....
You would need to require main.inc.php.
Then use the authenticate function - like this:
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_StyleSheet"); <br /> $stylesheet = $user['U_StyleSheet'];<br /><br />// -----------------<br />// If they don't have a stylesheet defined, use the default<br /> if ((!$stylesheet) || ($stylesheet == "usedefault")) {<br /> $stylesheet = $theme['stylesheet'];<br /> }<br />
Then echo something like this:
echo <<<OUTPUT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="/forum/stylesheets/
$stylesheet.css" type="text/css" />
<link rel="shortcut icon" href="/forum/images/favicon.ico" />
<title>Whatever</title>
</head>
<body>
Your Page
</body>
</html>
OUTPUT;
You get the idea.

I *think* that should do it.
