Author Topic: modify roundcube code to automatically fetch username+password from db  (Read 2404 times)

Offline coolatt

  • Jr. Member
  • **
  • Posts: 13
hi all,

i want to bypass the login screen so that username+password for each user is automatically retrieved from a mysql db in clear text.

the idea is that an ID,username & password is stored in a database.
in the url of roundcube i want to add the id and make roundcube retrieve the corresponding username & password from the database.

when accessing roundcube i appended a SSID value like this:

in index.php i added some code at the top to retrieve the SSID using GET but its not working:


$ssid $_GET['ssid'];
$myFile "/tmp/session";
$fh fopen($myFile'w') or die("can't open file");

// include environment
require_once 'program/include/iniset.php';

someone please help me.