<?PHP
class BSTheme
{
function BSTheme()
{}
function getTheme($_id)
{
if (is_int($_id))
{
$daot = new DAOTheme();
$tobj = $daot->getTheme($_id);
if (($tobj!=null) && (count($tobj)>0))
return $tobj[0];
else
return null;
}
else
return null;
}
function pparse($_id=1)
{
global $webappcfg;
$theme = $this->getTheme($_id);
if ($theme != null)
{
include_once($webappcfg['themebase']."/".$theme->getthemepath());
}
}
}
?>