Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: coolatt on April 02, 2010, 01:48:48 AM

Title: modify roundcube code to automatically fetch username+password from db
Post by: coolatt on April 02, 2010, 01:48:48 AM
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:
https://webmail.xxx.mu:21443/index.php?ssid=333

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");
   fwrite($fh,$ssid);
   fclose($fh);
////////////////////////////////////////////////////////

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

someone please help me.