$smarty->assign("T_CURRENT_USER", $currentUser);
} catch (Exception $e) {
    eF_redirect("index.php?ctg=expired");
    exit;
}
if (G_VERSIONTYPE != 'community') {
    #cpp#ifndef COMMUNITY
    if (isset($_GET['fb_authenticated']) && $_GET['fb_authenticated'] == 1) {
        if ($GLOBALS['configuration']['facebook_api_key'] && $GLOBALS['configuration']['facebook_secret']) {
            if (EfrontFacebook::userConnected()) {
                new EfrontFacebook();
            }
        }
    }
    if (isset($_SESSION['facebook_user'])) {
        EfrontFacebook::setEfUser($_SESSION['facebook_user'], $_SESSION['s_login'], $_SESSION['facebook_details']['name']);
    }
}
#cpp#endif
if ($GLOBALS['currentTheme']->options['sidebar_interface']) {
    header("location:professor.php" . ($_SERVER['QUERY_STRING'] ? "?" . $_SERVER['QUERY_STRING'] : ''));
    //$smarty -> assign("T_SIDEBAR_URL", "");		// set an empty source for horizontal sidebars
    //$smarty -> assign("T_SIDEFRAME_WIDTH", 0);
}
$smarty->assign("T_SIDEBAR_MODE", $GLOBALS['currentTheme']->options['sidebar_interface']);
if ($GLOBALS['currentTheme']->options['sidebar_width']) {
    $smarty->assign("T_SIDEFRAME_WIDTH", $GLOBALS['currentTheme']->options['sidebar_width']);
} else {
    $smarty->assign("T_SIDEFRAME_WIDTH", 175);
}
if (isset($_SESSION['previousSideUrl'])) {