summaryrefslogtreecommitdiff
path: root/plugins/new_user_dialog
diff options
context:
space:
mode:
authortill <till@php.net>2010-03-20 14:20:01 +0000
committertill <till@php.net>2010-03-20 14:20:01 +0000
commit63a3dc5fde5a3ceed4f03c19c5015aab19050bee (patch)
tree50aafccdad5fe36c59f10d194298c35f046afd2f /plugins/new_user_dialog
parent0f8ff20ae2e8c949d58b9ca02bda95e388f7d142 (diff)
moved plugins
Diffstat (limited to 'plugins/new_user_dialog')
-rw-r--r--plugins/new_user_dialog/localization/cs_CZ.inc7
-rw-r--r--plugins/new_user_dialog/localization/de_CH.inc7
-rw-r--r--plugins/new_user_dialog/localization/de_DE.inc7
-rw-r--r--plugins/new_user_dialog/localization/en_US.inc7
-rw-r--r--plugins/new_user_dialog/localization/es_ES.inc7
-rw-r--r--plugins/new_user_dialog/localization/et_EE.inc7
-rw-r--r--plugins/new_user_dialog/localization/it_IT.inc7
-rw-r--r--plugins/new_user_dialog/localization/pl_PL.inc7
-rw-r--r--plugins/new_user_dialog/localization/ru_RU.inc7
-rw-r--r--plugins/new_user_dialog/localization/sv_SE.inc7
-rw-r--r--plugins/new_user_dialog/localization/zh_TW.inc7
-rw-r--r--plugins/new_user_dialog/new_user_dialog.php109
-rw-r--r--plugins/new_user_dialog/newuserdialog.css59
13 files changed, 0 insertions, 245 deletions
diff --git a/plugins/new_user_dialog/localization/cs_CZ.inc b/plugins/new_user_dialog/localization/cs_CZ.inc
deleted file mode 100644
index fe05e6aae..000000000
--- a/plugins/new_user_dialog/localization/cs_CZ.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Prosím doplňte své jméno a e-mail';
-$labels['identitydialoghint'] = 'Tento dialog se objeví pouze při prvním přihlášení.';
-
-?>
diff --git a/plugins/new_user_dialog/localization/de_CH.inc b/plugins/new_user_dialog/localization/de_CH.inc
deleted file mode 100644
index d2a1310d0..000000000
--- a/plugins/new_user_dialog/localization/de_CH.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Bitte vervollständigen Sie Ihre Absender-Informationen';
-$labels['identitydialoghint'] = 'Dieser Dialog erscheint nur einmal beim ersten Login.';
-
-?> \ No newline at end of file
diff --git a/plugins/new_user_dialog/localization/de_DE.inc b/plugins/new_user_dialog/localization/de_DE.inc
deleted file mode 100644
index d2a1310d0..000000000
--- a/plugins/new_user_dialog/localization/de_DE.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Bitte vervollständigen Sie Ihre Absender-Informationen';
-$labels['identitydialoghint'] = 'Dieser Dialog erscheint nur einmal beim ersten Login.';
-
-?> \ No newline at end of file
diff --git a/plugins/new_user_dialog/localization/en_US.inc b/plugins/new_user_dialog/localization/en_US.inc
deleted file mode 100644
index d9f531ba7..000000000
--- a/plugins/new_user_dialog/localization/en_US.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Please complete your sender identity';
-$labels['identitydialoghint'] = 'This box only appears once at the first login.';
-
-?> \ No newline at end of file
diff --git a/plugins/new_user_dialog/localization/es_ES.inc b/plugins/new_user_dialog/localization/es_ES.inc
deleted file mode 100644
index 73f47f25a..000000000
--- a/plugins/new_user_dialog/localization/es_ES.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Por favor completa tus datos';
-$labels['identitydialoghint'] = 'Este diálogo sólo aparece la primera vez que te conectas.';
-
-?>
diff --git a/plugins/new_user_dialog/localization/et_EE.inc b/plugins/new_user_dialog/localization/et_EE.inc
deleted file mode 100644
index 7c6b3f20d..000000000
--- a/plugins/new_user_dialog/localization/et_EE.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Palun täida oma saatja identiteet';
-$labels['identitydialoghint'] = 'See kast ilmub ainult esimesel sisselogimisel.';
-
-?>
diff --git a/plugins/new_user_dialog/localization/it_IT.inc b/plugins/new_user_dialog/localization/it_IT.inc
deleted file mode 100644
index 6c834a9c8..000000000
--- a/plugins/new_user_dialog/localization/it_IT.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Per favore completa le informazioni riguardo la tua identità';
-$labels['identitydialoghint'] = 'Questa finestra comparirà una volta sola al primo accesso';
-
-?>
diff --git a/plugins/new_user_dialog/localization/pl_PL.inc b/plugins/new_user_dialog/localization/pl_PL.inc
deleted file mode 100644
index a385836a4..000000000
--- a/plugins/new_user_dialog/localization/pl_PL.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Uzupełnij tożsamość nadawcy';
-$labels['identitydialoghint'] = 'To okno pojawia się tylko przy pierwszym logowaniu.';
-
-?>
diff --git a/plugins/new_user_dialog/localization/ru_RU.inc b/plugins/new_user_dialog/localization/ru_RU.inc
deleted file mode 100644
index d1eb28e71..000000000
--- a/plugins/new_user_dialog/localization/ru_RU.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Пожалуйста, укажите Ваше имя.';
-$labels['identitydialoghint'] = 'Данное сообщение отображается только при первом входе.';
-
-?>
diff --git a/plugins/new_user_dialog/localization/sv_SE.inc b/plugins/new_user_dialog/localization/sv_SE.inc
deleted file mode 100644
index b3e665ef1..000000000
--- a/plugins/new_user_dialog/localization/sv_SE.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = 'Vänligen fyll i namn och avsändaradress under personliga inställningar';
-$labels['identitydialoghint'] = 'Informationen visas endast vid första inloggningen.';
-
-?> \ No newline at end of file
diff --git a/plugins/new_user_dialog/localization/zh_TW.inc b/plugins/new_user_dialog/localization/zh_TW.inc
deleted file mode 100644
index 87261f9cd..000000000
--- a/plugins/new_user_dialog/localization/zh_TW.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['identitydialogtitle'] = '請完成您的身份資訊';
-$labels['identitydialoghint'] = '此視窗只會於第一次登入時出現。';
-
-?>
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php
deleted file mode 100644
index 006cb2711..000000000
--- a/plugins/new_user_dialog/new_user_dialog.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-
-/**
- * Present identities settings dialog to new users
- *
- * When a new user is created, this plugin checks the default identity
- * and sets a session flag in case it is incomplete. An overlay box will appear
- * on the screen until the user has reviewed/completed his identity.
- *
- * @version 1.0
- * @author Thomas Bruederli
- */
-class new_user_dialog extends rcube_plugin
-{
- public $task = 'login|mail';
-
- function init()
- {
- $this->add_hook('create_identity', array($this, 'create_identity'));
-
- // register additional hooks if session flag is set
- if ($_SESSION['plugin.newuserdialog']) {
- $this->add_hook('render_page', array($this, 'render_page'));
- $this->register_action('plugin.newusersave', array($this, 'save_data'));
- }
- }
-
- /**
- * Check newly created identity at first login
- */
- function create_identity($p)
- {
- // set session flag when a new user was created and the default identity seems to be incomplete
- if ($p['login'] && !$p['complete'])
- $_SESSION['plugin.newuserdialog'] = true;
- }
-
- /**
- * Callback function when HTML page is rendered
- * We'll add an overlay box here.
- */
- function render_page($p)
- {
- if ($_SESSION['plugin.newuserdialog']) {
- $this->add_texts('localization');
-
- $rcmail = rcmail::get_instance();
- $identity = $rcmail->user->get_identity();
- $identities_level = intval($rcmail->config->get('identities_level', 0));
-
- // compose user-identity dialog
- $table = new html_table(array('cols' => 2));
-
- $table->add('title', $this->gettext('name'));
- $table->add(null, html::tag('input', array('type' => "text", 'name' => "_name", 'value' => $identity['name'])));
-
- $table->add('title', $this->gettext('email'));
- $table->add(null, html::tag('input', array('type' => "text", 'name' => "_email", 'value' => $identity['email'], 'disabled' => ($identities_level == 1 || $identities_level == 3))));
-
- // add overlay input box to html page
- $rcmail->output->add_footer(html::div(array('id' => "newuseroverlay"),
- html::tag('form', array(
- 'action' => $rcmail->url('plugin.newusersave'),
- 'method' => "post"),
- html::tag('h3', null, Q($this->gettext('identitydialogtitle'))) .
- html::p('hint', Q($this->gettext('identitydialoghint'))) .
- $table->show() .
- html::p(array('class' => "formbuttons"),
- html::tag('input', array('type' => "submit", 'class' => "button mainaction", 'value' => $this->gettext('save'))))
- )
- ));
-
- $this->include_stylesheet('newuserdialog.css');
- }
- }
-
- /**
- * Handler for submitted form
- *
- * Check fields and save to default identity if valid.
- * Afterwards the session flag is removed and we're done.
- */
- function save_data()
- {
- $rcmail = rcmail::get_instance();
- $identity = $rcmail->user->get_identity();
- $identities_level = intval($rcmail->config->get('identities_level', 0));
-
- $save_data = array(
- 'name' => get_input_value('_name', RCUBE_INPUT_POST),
- 'email' => get_input_value('_email', RCUBE_INPUT_POST),
- );
-
- // don't let the user alter the e-mail address if disabled by config
- if ($identities_level == 1 || $identities_level == 3)
- $save_data['email'] = $identity['email'];
-
- // save data if not empty
- if (!empty($save_data['name']) && !empty($save_data['email'])) {
- $rcmail->user->update_identity($identity['identity_id'], $save_data);
- $rcmail->session->remove('plugin.newuserdialog');
- }
-
- $rcmail->output->redirect('');
- }
-
-}
-
-?> \ No newline at end of file
diff --git a/plugins/new_user_dialog/newuserdialog.css b/plugins/new_user_dialog/newuserdialog.css
deleted file mode 100644
index c03e6fd42..000000000
--- a/plugins/new_user_dialog/newuserdialog.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/** Styles for the new-user-dialog overlay box */
-
-#newuseroverlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 10000;
- background: rgba(0,0,0,0.5) !important;
- background: #333;
-
- /** IE hacks */
- filter: alpha(opacity=90);
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
- width: expression(document.documentElement.clientWidth+'px');
- height: expression(document.documentElement.clientHeight+'px');
-}
-
-#newuseroverlay h3 {
- color: #333;
- font-size: normal;
- margin-top: 0.5em;
- margin-bottom: 0;
-}
-
-#newuseroverlay p.hint {
- margin-top: 0.5em;
- font-style: italic;
-}
-
-#newuseroverlay form {
- width: 32em;
- margin: 8em auto;
- padding: 1em 2em;
- background: #F6F6F6;
- border: 2px solid #555;
- border-radius: 6px;
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
-}
-
-#newuseroverlay table td.title
-{
- color: #666;
- text-align: right;
- padding-right: 1em;
- white-space: nowrap;
-}
-
-#newuseroverlay table td input
-{
- width: 20em;
-}
-
-#newuseroverlay .formbuttons {
- margin-top: 1.5em;
- text-align: center;
-} \ No newline at end of file