diff options
Diffstat (limited to 'plugins/userinfo')
-rw-r--r-- | plugins/userinfo/localization/de_CH.inc | 9 | ||||
-rw-r--r-- | plugins/userinfo/localization/en_US.inc | 9 | ||||
-rw-r--r-- | plugins/userinfo/localization/et_EE.inc | 9 | ||||
-rw-r--r-- | plugins/userinfo/localization/pl_PL.inc | 9 | ||||
-rw-r--r-- | plugins/userinfo/userinfo.js | 16 | ||||
-rw-r--r-- | plugins/userinfo/userinfo.php | 53 |
6 files changed, 0 insertions, 105 deletions
diff --git a/plugins/userinfo/localization/de_CH.inc b/plugins/userinfo/localization/de_CH.inc deleted file mode 100644 index 5f236b66c..000000000 --- a/plugins/userinfo/localization/de_CH.inc +++ /dev/null @@ -1,9 +0,0 @@ -<?php - -$labels = array(); -$labels['userinfo'] = 'Benutzerinfo'; -$labels['created'] = 'Erstellt'; -$labels['lastlogin'] = 'Letztes Login'; -$labels['defaultidentity'] = 'Standard-Absender'; - -?>
\ No newline at end of file diff --git a/plugins/userinfo/localization/en_US.inc b/plugins/userinfo/localization/en_US.inc deleted file mode 100644 index 1a2fd9016..000000000 --- a/plugins/userinfo/localization/en_US.inc +++ /dev/null @@ -1,9 +0,0 @@ -<?php - -$labels = array(); -$labels['userinfo'] = 'User info'; -$labels['created'] = 'Created'; -$labels['lastlogin'] = 'Last Login'; -$labels['defaultidentity'] = 'Default Identity'; - -?>
\ No newline at end of file diff --git a/plugins/userinfo/localization/et_EE.inc b/plugins/userinfo/localization/et_EE.inc deleted file mode 100644 index 97830b45c..000000000 --- a/plugins/userinfo/localization/et_EE.inc +++ /dev/null @@ -1,9 +0,0 @@ -<?php - -$labels = array(); -$labels['userinfo'] = 'Kasutaja info'; -$labels['created'] = 'Loodud'; -$labels['lastlogin'] = 'Viimane logimine'; -$labels['defaultidentity'] = 'Vaikeidentiteet'; - -?> diff --git a/plugins/userinfo/localization/pl_PL.inc b/plugins/userinfo/localization/pl_PL.inc deleted file mode 100644 index 6b03c32e7..000000000 --- a/plugins/userinfo/localization/pl_PL.inc +++ /dev/null @@ -1,9 +0,0 @@ -<?php - -$labels = array(); -$labels['userinfo'] = 'Informacje'; -$labels['created'] = 'Utworzony'; -$labels['lastlogin'] = 'Ostatnie logowanie'; -$labels['defaultidentity'] = 'Domyślna tożsamość'; - -?> diff --git a/plugins/userinfo/userinfo.js b/plugins/userinfo/userinfo.js deleted file mode 100644 index 70a5085b3..000000000 --- a/plugins/userinfo/userinfo.js +++ /dev/null @@ -1,16 +0,0 @@ -/* Show user-info plugin script */ - -if (window.rcmail) { - rcmail.addEventListener('init', function(evt) { - // <span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span> - var tab = $('<span>').attr('id', 'settingstabpluginuserinfo').addClass('tablink'); - - var button = $('<a>').attr('href', rcmail.env.comm_path+'&_action=plugin.userinfo').html(rcmail.gettext('userinfo', 'userinfo')).appendTo(tab); - button.bind('click', function(e){ return rcmail.command('plugin.userinfo', this) }); - - // add button and register command - rcmail.add_element(tab, 'tabs'); - rcmail.register_command('plugin.userinfo', function(){ rcmail.goto_url('plugin.userinfo') }, true); - }) -} - diff --git a/plugins/userinfo/userinfo.php b/plugins/userinfo/userinfo.php deleted file mode 100644 index 0f1b18cd9..000000000 --- a/plugins/userinfo/userinfo.php +++ /dev/null @@ -1,53 +0,0 @@ -<?php - -/** - * Sample plugin that adds a new tab to the settings section - * to display some information about the current user - */ -class userinfo extends rcube_plugin -{ - public $task = 'settings'; - - function init() - { - $this->add_texts('localization/', array('userinfo')); - $this->register_action('plugin.userinfo', array($this, 'infostep')); - $this->include_script('userinfo.js'); - } - - function infostep() - { - $this->register_handler('plugin.body', array($this, 'infohtml')); - rcmail::get_instance()->output->send('plugin'); - } - - function infohtml() - { - $rcmail = rcmail::get_instance(); - $user = $rcmail->user; - - $table = new html_table(array('cols' => 2, 'cellpadding' => 3)); - - $table->add('title', 'ID'); - $table->add('', Q($user->ID)); - - $table->add('title', Q($this->gettext('username'))); - $table->add('', Q($user->data['username'])); - - $table->add('title', Q($this->gettext('server'))); - $table->add('', Q($user->data['mail_host'])); - - $table->add('title', Q($this->gettext('created'))); - $table->add('', Q($user->data['created'])); - - $table->add('title', Q($this->gettext('lastlogin'))); - $table->add('', Q($user->data['last_login'])); - - $identity = $user->get_identity(); - $table->add('title', Q($this->gettext('defaultidentity'))); - $table->add('', Q($identity['name'] . ' <' . $identity['email'] . '>')); - - return html::tag('h4', null, Q('Infos for ' . $user->get_username())) . $table->show(); - } - -}
\ No newline at end of file |