Ejemplo n.º 1
0
$GLOBALS['TEMPLATES'] = $GLOBALS['BASE_DIR'] . '/templates';
/*******************[End Site Constants]*****************/
/*******************[Common Includes]**********************/
require_once PSU_BASE_DIR . '/webapp/my/includes/MyPortal.class.php';
/*******************[End Common Includes]**********************/
/*******************[Authentication Stuff]*****************/
IDMObject::authN();
/*******************[End Authentication Stuff]*****************/
/*******************[Database Connections]*****************/
$GLOBALS['MY'] = PSU::db('myplymouth');
/*******************[End Database Connections]*****************/
$theme = new PSUTheme($GLOBALS['MY']);
function isAdmin()
{
    return IDMObject::authZ('permission', 'theme_admin');
}
//end isAdmin
$theme_level = array('basic', 'holiday', 'event');
if (isAdmin()) {
    $theme_level[] = 'admin';
}
//end if
if ($_SESSION['username'] == 'nrporter') {
    $theme_level[] = 'extreme';
    $theme_level[] = 'dev';
}
//end if
$valid_themes = $theme->getThemes($theme_level);
$portal = new MyPortal($_SESSION['wp_id']);
$GLOBALS['fluid'] = $portal->is_fluid();
$GLOBALS['disabled_chat'] = $portal->is_chat_disabled();