From 5375e84b75eb23e730f9fd44d042a413970bdc7f Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 16 Aug 2011 19:44:01 +0000 Subject: Copying plugins into 0.6 release branch --- plugins/userinfo/localization/cs_CZ.inc | 27 ++++++++++++++++ plugins/userinfo/localization/da_DK.inc | 9 ++++++ plugins/userinfo/localization/de_CH.inc | 9 ++++++ plugins/userinfo/localization/en_US.inc | 9 ++++++ plugins/userinfo/localization/es_ES.inc | 9 ++++++ plugins/userinfo/localization/et_EE.inc | 9 ++++++ plugins/userinfo/localization/gl_ES.inc | 9 ++++++ plugins/userinfo/localization/ja_JP.inc | 11 +++++++ plugins/userinfo/localization/pl_PL.inc | 9 ++++++ plugins/userinfo/localization/pt_BR.inc | 9 ++++++ plugins/userinfo/localization/pt_PT.inc | 9 ++++++ plugins/userinfo/localization/ru_RU.inc | 9 ++++++ plugins/userinfo/localization/sv_SE.inc | 9 ++++++ plugins/userinfo/localization/zh_TW.inc | 9 ++++++ plugins/userinfo/userinfo.js | 16 ++++++++++ plugins/userinfo/userinfo.php | 55 +++++++++++++++++++++++++++++++++ 16 files changed, 217 insertions(+) create mode 100644 plugins/userinfo/localization/cs_CZ.inc create mode 100644 plugins/userinfo/localization/da_DK.inc create mode 100644 plugins/userinfo/localization/de_CH.inc create mode 100644 plugins/userinfo/localization/en_US.inc create mode 100644 plugins/userinfo/localization/es_ES.inc create mode 100644 plugins/userinfo/localization/et_EE.inc create mode 100644 plugins/userinfo/localization/gl_ES.inc create mode 100644 plugins/userinfo/localization/ja_JP.inc create mode 100644 plugins/userinfo/localization/pl_PL.inc create mode 100644 plugins/userinfo/localization/pt_BR.inc create mode 100644 plugins/userinfo/localization/pt_PT.inc create mode 100644 plugins/userinfo/localization/ru_RU.inc create mode 100644 plugins/userinfo/localization/sv_SE.inc create mode 100644 plugins/userinfo/localization/zh_TW.inc create mode 100644 plugins/userinfo/userinfo.js create mode 100644 plugins/userinfo/userinfo.php (limited to 'plugins/userinfo') diff --git a/plugins/userinfo/localization/cs_CZ.inc b/plugins/userinfo/localization/cs_CZ.inc new file mode 100644 index 000000000..20cd4ae9b --- /dev/null +++ b/plugins/userinfo/localization/cs_CZ.inc @@ -0,0 +1,27 @@ + | ++-----------------------------------------------------------------------+ + +@version $Id: labels.inc 2993 2009-09-26 18:32:07Z alec $ + +*/ + +$labels = array(); +$labels['infosfor'] = 'Informace pro'; +$labels['userinfo'] = 'Uživatel'; +$labels['created'] = 'Vytvořen'; +$labels['lastlogin'] = 'Naspoledy přihlášen'; +$labels['defaultidentity'] = 'Výchozí identita'; + +?> \ No newline at end of file diff --git a/plugins/userinfo/localization/da_DK.inc b/plugins/userinfo/localization/da_DK.inc new file mode 100644 index 000000000..0fed30935 --- /dev/null +++ b/plugins/userinfo/localization/da_DK.inc @@ -0,0 +1,9 @@ + diff --git a/plugins/userinfo/localization/de_CH.inc b/plugins/userinfo/localization/de_CH.inc new file mode 100644 index 000000000..5f236b66c --- /dev/null +++ b/plugins/userinfo/localization/de_CH.inc @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/en_US.inc b/plugins/userinfo/localization/en_US.inc new file mode 100644 index 000000000..1a2fd9016 --- /dev/null +++ b/plugins/userinfo/localization/en_US.inc @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/es_ES.inc b/plugins/userinfo/localization/es_ES.inc new file mode 100644 index 000000000..dd6662fc0 --- /dev/null +++ b/plugins/userinfo/localization/es_ES.inc @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/et_EE.inc b/plugins/userinfo/localization/et_EE.inc new file mode 100644 index 000000000..97830b45c --- /dev/null +++ b/plugins/userinfo/localization/et_EE.inc @@ -0,0 +1,9 @@ + diff --git a/plugins/userinfo/localization/gl_ES.inc b/plugins/userinfo/localization/gl_ES.inc new file mode 100644 index 000000000..bf285d37f --- /dev/null +++ b/plugins/userinfo/localization/gl_ES.inc @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/ja_JP.inc b/plugins/userinfo/localization/ja_JP.inc new file mode 100644 index 000000000..1fd4eaf51 --- /dev/null +++ b/plugins/userinfo/localization/ja_JP.inc @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/pl_PL.inc b/plugins/userinfo/localization/pl_PL.inc new file mode 100644 index 000000000..6b03c32e7 --- /dev/null +++ b/plugins/userinfo/localization/pl_PL.inc @@ -0,0 +1,9 @@ + diff --git a/plugins/userinfo/localization/pt_BR.inc b/plugins/userinfo/localization/pt_BR.inc new file mode 100644 index 000000000..4ca54eb94 --- /dev/null +++ b/plugins/userinfo/localization/pt_BR.inc @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/pt_PT.inc b/plugins/userinfo/localization/pt_PT.inc new file mode 100644 index 000000000..45009f9f4 --- /dev/null +++ b/plugins/userinfo/localization/pt_PT.inc @@ -0,0 +1,9 @@ + diff --git a/plugins/userinfo/localization/ru_RU.inc b/plugins/userinfo/localization/ru_RU.inc new file mode 100644 index 000000000..0e7ed4f8a --- /dev/null +++ b/plugins/userinfo/localization/ru_RU.inc @@ -0,0 +1,9 @@ + diff --git a/plugins/userinfo/localization/sv_SE.inc b/plugins/userinfo/localization/sv_SE.inc new file mode 100644 index 000000000..a34923a88 --- /dev/null +++ b/plugins/userinfo/localization/sv_SE.inc @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/plugins/userinfo/localization/zh_TW.inc b/plugins/userinfo/localization/zh_TW.inc new file mode 100644 index 000000000..d3124459e --- /dev/null +++ b/plugins/userinfo/localization/zh_TW.inc @@ -0,0 +1,9 @@ + diff --git a/plugins/userinfo/userinfo.js b/plugins/userinfo/userinfo.js new file mode 100644 index 000000000..70a5085b3 --- /dev/null +++ b/plugins/userinfo/userinfo.js @@ -0,0 +1,16 @@ +/* Show user-info plugin script */ + +if (window.rcmail) { + rcmail.addEventListener('init', function(evt) { + // + var tab = $('').attr('id', 'settingstabpluginuserinfo').addClass('tablink'); + + var button = $('').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 new file mode 100644 index 000000000..efb65f51d --- /dev/null +++ b/plugins/userinfo/userinfo.php @@ -0,0 +1,55 @@ +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(); + } + +} -- cgit v1.2.3