From a3644638aaf0418598196a870204e0b632a4c8ad Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Fri, 17 Apr 2015 06:28:40 -0400 Subject: [PATCH] Allow preference sections to define CSS class names --- plugins/autologon/autologon.php | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/autologon/autologon.php b/plugins/autologon/autologon.php index bc3d2ee..9c7d5b6 100644 --- a/plugins/autologon/autologon.php +++ b/plugins/autologon/autologon.php @@ -3,6 +3,9 @@ /** * Sample plugin to try out some hooks. * This performs an automatic login if accessed from localhost + * + * @license GNU GPLv3+ + * @author Thomas Bruederli */ class autologon extends rcube_plugin { @@ -16,8 +19,6 @@ function startup($args) { - $rcmail = rcmail::get_instance(); - // change action to login if (empty($_SESSION['user_id']) && !empty($_GET['_autologin']) && $this->is_localhost()) $args['action'] = 'login'; @@ -31,8 +32,10 @@ $args['user'] = 'me'; $args['pass'] = '******'; $args['host'] = 'localhost'; + $args['cookiecheck'] = false; + $args['valid'] = true; } - + return $args; } -- Gitblit v1.9.1