/[drupal]/contributions/modules/rcmail/patch_ab_rc.txt
ViewVC logotype

Contents of /contributions/modules/rcmail/patch_ab_rc.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Fri Jan 19 21:00:12 2007 UTC (2 years, 10 months ago) by polyformalsp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
File MIME type: text/plain
*** empty log message ***
1 diff -ruN -x .svn -x config -x program ../../contrib/roundcubemail-0.1beta2/index.php roundcubemail/index.php
2 --- ../../contrib/roundcubemail-0.1beta2/index.php 2006-08-06 17:55:11.000000000 +0200
3 +++ roundcubemail/index.php 2006-08-09 11:51:13.000000000 +0200
4 @@ -42,6 +42,13 @@
5
6 define('RCMAIL_VERSION', '0.1-beta2');
7
8 +//bof rcmail_module
9 +session_start();
10 +if ($_GET['do'] == 'login'){
11 +$_POST['_action'] = 'login';
12 +}
13 +//eof rcmail_module
14 +
15 // define global vars
16 $CHARSET = 'UTF-8';
17 $OUTPUT_TYPE = 'html';
18 @@ -124,6 +131,25 @@
19 // init necessary objects for GUI
20 load_gui();
21
22 +//bof rcmail_module
23 +if ($_GET['do'] == 'login'){
24 +include_once('../rcmail.module');
25 + global $DB, $CACHE_KEYS;
26 + $DB->query("SELECT users.data FROM " .
27 + " sessions, users
28 + WHERE sessions.sid = '".session_id()."'" .
29 + "and sessions.uid=users.uid" .
30 + "");
31 + $IDENTITY_RECORD = $DB->fetch_assoc();
32 + $sdb=unserialize($IDENTITY_RECORD[data]);
33 + //print_r ($sdb);
34 +
35 +$_POST['_user'] = $sdb[rcmail_username];
36 +$_POST['_pass'] = _decrypt($sdb[rcmail_password]);
37 +$_POST['_action'] = 'login';
38 +$_POST['_host'] = $sdb[rcmail_server];
39 +}
40 +//eof rcmail_module
41
42 // check DB connections and exit on failure
43 if ($err_str = $DB->is_error())

  ViewVC Help
Powered by ViewVC 1.1.2