예제 #1
0
//---------------------------------------------End of Initialization-------------------------------------------------
///MODULE1
$modules = $currentUser->getModules();
// Include module languages
foreach ($modules as $module) {
    // The $setLanguage variable is defined in globals.php
    $mod_lang_file = $module->getLanguageFile($setLanguage);
    if (is_file($mod_lang_file)) {
        require_once $mod_lang_file;
    }
}
if (G_VERSIONTYPE != 'community') {
    #cpp#ifndef COMMUNITY
    //Import information from Facebook
    if (isset($_SESSION['facebook_details'])) {
        EfrontFacebook::importFbInfo($_SESSION['facebook_details'], $currentUser);
    }
}
#cpp#endif
/***Check if the chat configuration exists - if not create it***/
if (!isset($horizontal_inframe_version) || !$horizontal_inframe_version) {
    /***** TOP MENU WITH AVATAR AND NAME *****/
    try {
        if (isset($_SESSION['facebook_details']['pic'])) {
            $avatar['path'] = $_SESSION['facebook_details']['pic'];
            $smarty->assign("T_ABSOLUTE_AVATAR_PATH", 1);
            $smarty->assign("T_AVATAR", $_SESSION['facebook_details']['pic']);
        } else {
            $avatar = new EfrontFile($currentUser->user['avatar']);
            $smarty->assign("T_AVATAR", $currentUser->user['avatar']);
        }