I have a little problem, I'm using a custom PHP page to include another file in my website. There are two stylesheets associated with this file, and I would like to use one or the other depending on the users theme. The style sheet is obviously just for the file that I am calling with the "include" code. However, I can't for the life of me get this to work on a custom page. The code im using at the moment is;
<?php
if ($user_info['theme'] == 9)
echo "<link href=\"abc/blue.css\" rel=\"stylesheet\" type=\"text/css\" />";
else echo "<link href=\"abc/grey.css\" rel=\"stylesheet\" type=\"text/css\" />";
include 'abc/scrape.php';
?>
However this doesn't work as it doesn't seem to be getting anything from the $user_info variable. I have tried using the code in a page not part of SimplePortal/SMF by using the "require_once('forum/SSI.php');" and that worked fine, changing style sheets whenever I switched between two themes, the require thing doesn't work in SimplePortal though. What I'm asking is, is it actually possible to do this in a custom php page in SimplePortal? If so, where exactly am I going wrong? Sorry if this is in the wrong forum, I figured this would be the best place to put it.
Thanks in advance,