Changeset 2449 in subversion


Ignore:
Timestamp:
May 2, 2009 4:11:45 PM (4 years ago)
Author:
alec
Message:
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/INSTALL

    r2296 r2449  
    7171* SQLite 
    7272-------- 
    73 Sqlite requires specifically php5 (sqlite in php4 currently doesn't 
    74 work with roundcube), and you need sqlite 2 (preferably 2.8) to setup 
    75 the sqlite db (sqlite 3.x also doesn't work at the moment). Here is 
     73You need sqlite 2 (preferably 2.8) to setup the sqlite db  
     74(sqlite 3.x also doesn't work at the moment). Here is 
    7675an example how you can setup the sqlite.db for roundcube: 
    7776 
  • trunk/roundcubemail/installer/config.php

    r2438 r2449  
    270270echo '<label for="cfgdbhost">Database server (omit for sqlite)</label><br />'; 
    271271echo $input_dbname->show($RCI->is_post ? $_POST['_dbname'] : $dsnw['database']); 
    272 echo '<label for="cfgdbname">Database name</label><br />'; 
     272echo '<label for="cfgdbname">Database name (use a path and filename for sqlite)</label><br />'; 
    273273echo $input_dbuser->show($RCI->is_post ? $_POST['_dbuser'] : $dsnw['username']); 
    274274echo '<label for="cfgdbuser">Database user name (needs write permissions)(omit for sqlite)</label><br />'; 
  • trunk/roundcubemail/program/include/rcube_mdb2.php

    r2406 r2449  
    586586 
    587587    if (strlen($data)) 
    588       sqlite_exec($dbh->connection, $data); 
     588      if (!sqlite_exec($dbh->connection, $data, $error) || MDB2::isError($dbh))  
     589        raise_error(array('code' => 500, 'type' => 'db', 
     590            'line' => __LINE__, 'file' => __FILE__, 'message' => $error), TRUE, FALSE);  
    589591    } 
    590592 
Note: See TracChangeset for help on using the changeset viewer.