From 1bfa2d157f1bc896347c0ff30eebcb17a189f9d5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 26 Jun 2012 00:49:56 -0300 Subject: Adding login_info roundcube plugin --- .../plugins/login_info/CAcert-ssl-security.png | Bin 0 -> 1038 bytes files/roundcube/plugins/login_info/README | 1 + .../plugins/login_info/config.inc.php.dist | 26 ++++++++++++++ files/roundcube/plugins/login_info/login_info.php | 39 +++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 files/roundcube/plugins/login_info/CAcert-ssl-security.png create mode 100644 files/roundcube/plugins/login_info/README create mode 100644 files/roundcube/plugins/login_info/config.inc.php.dist create mode 100755 files/roundcube/plugins/login_info/login_info.php (limited to 'files') diff --git a/files/roundcube/plugins/login_info/CAcert-ssl-security.png b/files/roundcube/plugins/login_info/CAcert-ssl-security.png new file mode 100644 index 0000000..20532c8 Binary files /dev/null and b/files/roundcube/plugins/login_info/CAcert-ssl-security.png differ diff --git a/files/roundcube/plugins/login_info/README b/files/roundcube/plugins/login_info/README new file mode 100644 index 0000000..49099f6 --- /dev/null +++ b/files/roundcube/plugins/login_info/README @@ -0,0 +1 @@ +http://www.std-soft.com/bfaq/52-cat-webmail/107-text-auf-der-login-seite-einblenden.html diff --git a/files/roundcube/plugins/login_info/config.inc.php.dist b/files/roundcube/plugins/login_info/config.inc.php.dist new file mode 100644 index 0000000..1009847 --- /dev/null +++ b/files/roundcube/plugins/login_info/config.inc.php.dist @@ -0,0 +1,26 @@ + +Aus Sicherheitsgründen ist ab hier nur noch ein gesicherter (https) Zugang möglich.
+Sollte Ihr Browser vorher einen Fehler oder eine Warnung vor dieser Seite angezeigt +haben, klicken Sie bitte einmalig vor dem Einloggen auf die zwei folgenden Links und +installieren die beiden Zertifikate von www.cacert.org
+
    +
  1. CAcert Root Zertifikat (Class 1)
  2. +
  3. CAcert Root Zertifikat (Class 3)
  4. +
+ +EOT; + +?> \ No newline at end of file diff --git a/files/roundcube/plugins/login_info/login_info.php b/files/roundcube/plugins/login_info/login_info.php new file mode 100755 index 0000000..865e8a3 --- /dev/null +++ b/files/roundcube/plugins/login_info/login_info.php @@ -0,0 +1,39 @@ +add_hook('template_object_loginform', array($this, 'add_login_info')); + } + + public function add_login_info($arg) + { + $rcmail = rcmail::get_instance(); + $this->load_config(); + + if ( $rcmail->config->get('login_info') ) + $rcmail->output->add_footer( $rcmail->config->get('login_info') ); + + return $arg; + } +} + +?> -- cgit v1.2.3