Esempio n. 1
0
        die($threadContent);
    }
    //refresh time testing  for unread messages
    if (wf_CheckGet(array('timecheckunread'))) {
        $unreadMessageCount = im_CheckForUnreadMessages();
        if ($unreadMessageCount) {
            die(json_encode(array('messagesCount' => $unreadMessageCount)));
        }
    }
    if (!wf_checkGet(array('avatarcontrol'))) {
        //display main grid
        $mainGrid = im_MainWindow();
        show_window(__('Instant messaging service'), $mainGrid);
        //update notification area
        $darkVoid = new DarkVoid();
        $darkVoid->flushCache();
    } else {
        //avatar control and mail change form
        show_window(__('Avatar control'), im_AvatarControlForm());
    }
    //refresh container
    if ($altcfg['UBIM_REFRESH']) {
        im_RefreshContainer($altcfg['UBIM_REFRESH']);
    }
    // direct link thread loader
    if (wf_CheckGet(array('gothread'))) {
        show_window('', im_ThreadLoad($_GET['gothread']));
    }
} else {
    show_error(__('You cant control this module'));
}
Esempio n. 2
0
 /**
  * Renders instant messenger notification
  * 
  * @return void
  */
 protected function loadUbim()
 {
     //refresh IM container with notify
     if ($this->altCfg['TB_UBIM']) {
         if ($this->altCfg['TB_UBIM_REFRESH']) {
             if (cfr('UBIM')) {
                 im_RefreshContainer($this->altCfg['TB_UBIM_REFRESH']);
             }
         }
     }
 }
Esempio n. 3
0
    if (isset($_COOKIE['tb_iconsize'])) {
        $currentsize = vf($_COOKIE['tb_iconsize'], 3);
    } else {
        $currentsize = $billing_config['TASKBAR_ICON_SIZE'];
    }
    $resizeinputs = wf_SelectorAC('iconsize', $iconsizes, '', $currentsize, false);
    $resizeform = wf_Form('', 'POST', $resizeinputs);
    if ($altconf['TB_ICONCUSTOMSIZE']) {
        $taskbar .= '<br>' . $resizeform;
    }
    // new tickets notify
    $ticketnotify = '';
    show_window(__('Taskbar') . ' ' . $ticketnotify, $taskbar);
    //refresh IM container with notify
    if ($altconf['TB_UBIM']) {
        if ($altconf['TB_UBIM_REFRESH']) {
            if (cfr('UBIM')) {
                im_RefreshContainer($altconf['TB_UBIM_REFRESH']);
            }
        }
    }
    //sticky notes support
    if (isset($altconf['STICKY_NOTES_ENABLED'])) {
        if ($altconf['STICKY_NOTES_ENABLED']) {
            $stickyNotes = new StickyNotes(true);
            show_window('', $stickyNotes->renderTaskbarNotify());
        }
    }
} else {
    show_error(__('Access denied'));
}