Hi First off let me say that roundcube is an excelent webmail client! I first sent this question to the users mailing list but since no one responded I sent it here hoping there's an easy answer to it. I'm tring to integrate roundcube into Xoops and want to use $user and $pass set from Xoops (it's from another routine which allows each user to have multiple accounts), is it possible to set a default $user and $pass the same way as $host can be set through $CONFIG['default_host']?
Thank you
Lenny Lino
I still think the following approach will be the best: (quoting from a previous mail of mine)
It probably works if you do the following:
$_POST['_user'] = 'username'; $_POST['_pass'] = 'password'; $_POST['_action'] = 'login'; require 'roundcubemail/index.php';
This is very ugly though, overwritting superglobal values; but it works ;)
Regards, Sjon
kaotik wrote:
Hi First off let me say that roundcube is an excelent webmail client! I first sent this question to the users mailing list but since no one responded I sent it here hoping there's an easy answer to it. I'm tring to integrate roundcube into Xoops and want to use $user and $pass set from Xoops (it's from another routine which allows each user to have multiple accounts), is it possible to set a default $user and $pass the same way as $host can be set through $CONFIG['default_host']?
Thank you
Lenny Lino
This still doesn't seem to work for me. It uses username but the password field comes up blank. I also tried using an "iframe" instead of doing a "require". The same thing happened; user ok but no pass. Is there something I'm doing wrong? Is there an alternative solution?
Thank you
On 2/5/06, Sjon roundcube.net@spider007.net wrote:
I still think the following approach will be the best: (quoting from a previous mail of mine)
It probably works if you do the following:
$_POST['_user'] = 'username'; $_POST['_pass'] = 'password'; $_POST['_action'] = 'login'; require 'roundcubemail/index.php';
This is very ugly though, overwritting superglobal values; but it works
;)
Regards, Sjon
kaotik wrote:
Hi First off let me say that roundcube is an excelent webmail client! I first sent this question to the users mailing list but since no one responded I sent it here hoping there's an easy answer to it. I'm tring to integrate roundcube into Xoops and want to use $user and $pass set from Xoops (it's from another routine which allows each user to have multiple accounts), is it possible to set a default $user and $pass the same way as $host can be set through $CONFIG['default_host']?
Thank you
Lenny Lino
I still can't get the default password to work, can someone help me please?
Thanks
On 2/6/06, kaotik kaotik1@gmail.com wrote:
This still doesn't seem to work for me. It uses username but the password field comes up blank. I also tried using an "iframe" instead of doing a "require". The same thing happened; user ok but no pass. Is there something I'm doing wrong? Is there an alternative solution?
Thank you
On 2/5/06, Sjon roundcube.net@spider007.net wrote:
I still think the following approach will be the best: (quoting from a previous mail of mine)
It probably works if you do the following:
$_POST['_user'] = 'username'; $_POST['_pass'] = 'password'; $_POST['_action'] = 'login'; require 'roundcubemail/index.php';
This is very ugly though, overwritting superglobal values; but it
works ;)
Regards, Sjon
kaotik wrote:
Hi First off let me say that roundcube is an excelent webmail client! I first sent this question to the users mailing list but since no one responded I sent it here hoping there's an easy answer to it. I'm tring to integrate roundcube into Xoops and want to use $user and $pass set from Xoops (it's from another routine which allows each user to have multiple accounts), is it possible to set a default $user and $pass the same way as $host can be set through
$CONFIG['default_host']?
Thank you
Lenny Lino
here's another odd thing that happens: when I set in index.php: $_POST['_user'] = 'username'; $_POST['_pass'] = 'password'; $_POST['_action'] = 'login';
It never finishes loading.
OK, I got it working but I had to comment out part of the code in index.php:
/*-------------------------------------* // try to log in if ($_action=='login' && $_task=='mail') { $host = $_POST['_host'] ? $_POST['_host'] : $CONFIG['default_host'];
// check if client supports cookies if (empty($_COOKIE)) { show_message("cookiesdisabled", 'warning'); } else if (isset($kuser) && isset($kpass) && rcmail_login($kuser, $kpass, $host)) { // send redirect header("Location: $COMM_PATH"); exit; } else { show_message("loginfailed", 'warning'); $_SESSION['user_id'] = ''; } }
// end session else if ($_action=='logout' && isset($_SESSION['user_id'])) { show_message('loggedout'); rcmail_kill_session(); }
// check session cookie and auth string else if ($_action!='login' && $sess_auth && $_SESSION['user_id']) { if ($_auth !== $sess_auth || $_auth != rcmail_auth_hash($_SESSION['client_id'], $_SESSION['auth_time']) || ($CONFIG['session_lifetime'] && isset($SESS_CHANGED) && $SESS_CHANGED
/*-------------------------------------*/
On Saturday 11 February 2006 16:02, kaotik wrote:
here's another odd thing that happens: when I set in index.php: $_POST['_user'] = 'username'; $_POST['_pass'] = 'password'; $_POST['_action'] = 'login';
It never finishes loading.
Thats because its an infinate loop of logging in. What i did is this (in index.php):
if ($_GET['do'] == 'login'){ $_POST['_user.. .....etc (pass) ...etc (action) }
open roundcube as www.webserver.com/roundcube/?do=login