Take a look at the sample auto login plugin and adapted it to your needs autologon.php in trunk/plugins/autologon
I have activated that plugin in main.inc, how am I supposed to access that class?
I tried creating a php file in the main webmail folder, then added the start of index.php:
require_once 'program/include/iniset.php';
$RCMAIL = rcmail::get_instance();
$startup = $RCMAIL->plugins->exec_hook('startup', array('task' => $RCMAIL->task, 'action' => $RCMAIL->action));
$RCMAIL->set_task($startup['task']);
$RCMAIL->action = $startup['action'];
then created a object of the autologon.php class:
$login_attempt = new autologon();
But it fails, keeps saying:
Warning: Missing argument 1 for rcube_plugin::__construct(), called in /.../webmail/autologon.php on line 55 and defined in /.../webmail/program/include/rcube_plugin.php on line 74
After that I thought to then executed the init, startup and authenticate methods on the created object.
I did edit the autologon.php file for now to allow external access and only allow one specific account to be used(user/pw).
What am I doing wrong?