HEX
Server: Apache/2.2.22
System: Linux server1.blueharbor.com 3.10.0-1160.90.1.vz7.200.7 #1 SMP Wed Jul 12 12:00:44 MSK 2023 x86_64
User: locglobe (1004)
PHP: 5.6.37
Disabled: NONE
Upload Files
File: //usr/local/cwpsrv/var/services/roundcube_13-10-2021.bak/plugins/userinfo/userinfo.js
/* Show user-info plugin script */

if (window.rcmail) {
  rcmail.addEventListener('init', function() {
    // <span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span>
    var tab = $('<span>').attr('id', 'settingstabpluginuserinfo').addClass('tablink');

    $('<a>').attr('href', rcmail.env.comm_path + '&_action=plugin.userinfo')
      .text(rcmail.get_label('userinfo', 'userinfo'))
      .click(function(e) { return rcmail.command('plugin.userinfo', '', this, e); })
      .appendTo(tab);

    // add button and register command
    rcmail.add_element(tab, 'tabs');
    rcmail.register_command('plugin.userinfo', function() { rcmail.goto_url('plugin.userinfo') }, true);
  })
}