Author Topic: Problems with autologin plugin  (Read 2094 times)

Offline mbutubuntu

  • Newbie
  • *
  • Posts: 3
Problems with autologin plugin
« on: May 17, 2010, 06:23:02 PM »
Hello folks, this is my autologin index.php:

Code: [Select]
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;>
<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; />
<title>Benvenuto</title>
</head>
<body>
<?php

$_SESSION
['userpassword'] = strrev(base64_encode('keykey'.$_POST['_pass']));
$_SESSION['_user'] = strrev(base64_encode('keykey'.$_POST['_user']));

echo 
'<form name=&quot;roundcubelogin&quot; action=&quot;http://mail.mydomain.com/?_task=mail&quot; method=&quot;post&quot; target=&quot;roundcube&quot;>
<input type=&quot;hidden&quot; name=&quot;_timezone&quot; value=&quot;_default_&quot; />
<input type=&quot;hidden&quot; name=&quot;_task&quot; value=&quot;mail&quot; />
<input type=&quot;hidden&quot; name=&quot;_autologin&quot; value=&quot;1&quot; />
<input type=&quot;hidden&quot; name=&quot;_user&quot; value=&quot;myusername&quot; />
<input type=&quot;hidden&quot; name=&quot;_host&quot; value=&quot;http://mydomain.it:143&quot; />
<input type=&quot;hidden&quot; name=&quot;_pass&quot; value=&quot;mypassword&quot; />
</form>'
;
?>


<a href=&quot;#&quot; onclick=&quot;document.forms.roundcubelogin.submit()&quot;>linktext image</a>
</body>
</html>


but it doesn't work, can you help me??

best regards