summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-10-07 14:17:08 +0000
committerthomascube <thomas@roundcube.net>2005-10-07 14:17:08 +0000
commit42b11351497ce67e96a0465c76694632cdfb3ecb (patch)
treee70135646b2422dccab017cb9f6999ad50e91564 /program
parent597170feb25f5c2e5a90a9c0b1fd62001f169afb (diff)
Several bugfixes and feature improvements
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc60
-rwxr-xr-xprogram/include/rcube_db.inc52
-rw-r--r--program/include/rcube_imap.inc23
-rw-r--r--program/include/session.inc9
-rw-r--r--program/js/app.js3
-rw-r--r--program/js/common.js9
-rw-r--r--program/lib/imap.inc2
-rw-r--r--program/localization/nl/labels.inc173
-rw-r--r--program/localization/nl/messages.inc56
-rw-r--r--program/steps/settings/func.inc13
10 files changed, 342 insertions, 58 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 0a63b685b..e2e7a00be 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -55,9 +55,10 @@ function rcmail_startup($task='mail')
// prepare DB connection
$DB = new rcube_db($CONFIG['db_dsnw'], $CONFIG['db_dsnr']);
+ $DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql';
// we can use the database for storing session data
- if (is_object($DB))
+ if (is_object($DB) && $DB->db_provider!='sqlite')
include_once('include/session.inc');
@@ -232,26 +233,43 @@ function load_gui()
function rcmail_login($user, $pass, $host=NULL)
{
global $CONFIG, $IMAP, $DB, $sess_user_lang;
+ $user_id = NULL;
if (!$host)
$host = $CONFIG['default_host'];
- // exit if IMAP login failed
- if (!($imap_login = $IMAP->connect($host, $user, $pass)))
- return FALSE;
-
// query if user already registered
- $sql_result = $DB->query(sprintf("SELECT user_id, language, preferences
- FROM %s
- WHERE username='%s' AND mail_host='%s'",
+ $sql_result = $DB->query(sprintf("SELECT user_id, username, language, preferences
+ FROM %s
+ WHERE mail_host='%s' AND (username='%s' OR alias='%s')",
get_table_name('users'),
- $user, $host));
+ addslashes($host),
+ addslashes($user),
+ addslashes($user)));
- // user already registered
+ // user already registered -> overwrite username
if ($sql_arr = $DB->fetch_assoc($sql_result))
{
$user_id = $sql_arr['user_id'];
-
+ $user = $sql_arr['username'];
+ }
+
+ // parse $host URL
+ $a_host = parse_url($host);
+ if ($a_host['host'])
+ {
+ $host = $a_host['host'];
+ $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? TRUE : FALSE;
+ $imap_port = isset($a_host['post']) ? $a_host['post'] : ($imap_ssl ? 993 : $CONFIG['default_port']);
+ }
+
+ // exit if IMAP login failed
+ if (!($imap_login = $IMAP->connect($host, $user, $pass, $imap_port, $imap_ssl)))
+ return FALSE;
+
+ // user already registered
+ if ($user_id && !empty($sql_arr))
+ {
// get user prefs
if (strlen($sql_arr['preferences']))
{
@@ -303,7 +321,8 @@ function rcmail_create_user($user, $host)
(created, last_login, username, mail_host)
VALUES (NOW(), NOW(), '%s', '%s')",
get_table_name('users'),
- $user, $host));
+ addslashes($user),
+ addslashes($host)));
if ($user_id = $DB->insert_id())
{
@@ -316,8 +335,8 @@ function rcmail_create_user($user, $host)
VALUES (%d, '1', '%s', '%s')",
get_table_name('identities'),
$user_id,
- $user_name,
- $user_email));
+ addslashes($user_name),
+ addslashes($user_email)));
// get existing mailboxes
$a_mailboxes = $IMAP->list_mailboxes();
@@ -330,6 +349,14 @@ function rcmail_create_user($user, $host)
if ($CONFIG['trash_mbox'] && !in_array_nocase($CONFIG['trash_mbox'], $a_mailboxes))
$IMAP->create_mailbox($CONFIG['trash_mbox'], TRUE);
}
+ else
+ {
+ raise_error(array('code' => 500,
+ 'type' => 'php',
+ 'line' => __LINE__,
+ 'file' => __FILE__,
+ 'message' => "Failed to create new user"), TRUE, FALSE);
+ }
return $user_id;
}
@@ -963,7 +990,10 @@ function rcmail_login_form($attrib)
if (is_array($CONFIG['default_host']))
{
$select_host = new select(array('name' => '_host'));
- $select_host->add($CONFIG['default_host']);
+
+ foreach ($CONFIG['default_host'] as $key => $value)
+ $select_host->add($value, (is_numeric($key) ? $value : $key));
+
$fields['host'] = $select_host->show($_POST['_host']);
}
else if (!strlen($CONFIG['default_host']))
diff --git a/program/include/rcube_db.inc b/program/include/rcube_db.inc
index 9c76cb340..7d9d1bb95 100755
--- a/program/include/rcube_db.inc
+++ b/program/include/rcube_db.inc
@@ -40,6 +40,9 @@ class rcube_db
$this->db_dsnw = $db_dsnw;
$this->db_dsnr = $db_dsnr;
+
+ $dsn_array = DB::parseDSN($db_dsnw);
+ $this->db_provider = $dsn_array['phptype'];
}
// PHP 4 compatibility
@@ -51,22 +54,21 @@ class rcube_db
// Connect to specific database
function dsn_connect($dsn)
{
- $dsn_array = DB::parseDSN($dsn);
- $this->db_provider = $dsn_array['phptype'];
-
// Use persistent connections if available
$dbh = DB::connect($dsn, array('persistent' => $true));
-
+
if (DB::isError($dbh))
raise_error(array('code' => 500,
'type' => 'db',
'line' => __LINE__,
'file' => __FILE__,
'message' => $dbh->getMessage()), TRUE, FALSE);
+
else if ($this->db_provider=='sqlite')
{
- if (!is_file($dsn_array['database']) || !filesize($dsn_array['database']))
- $this->_sqlite_create_database($dbh, 'SQL/sqlite.initial.sql');
+ $dsn_array = DB::parseDSN($dsn);
+ if (!filesize($dsn_array['database']) && !empty($this->sqlite_initials))
+ $this->_sqlite_create_database($dbh, $this->sqlite_initials);
}
return $dbh;
@@ -75,8 +77,9 @@ class rcube_db
// Connect to appropiate databse
function db_connect ($mode)
{
+ $this->db_mode = $mode;
+
// Already connected
-
if ($this->db_connected)
{
// no replication, current connection is ok
@@ -96,7 +99,6 @@ class rcube_db
$this->db_handle = $this->dsn_connect($dsn);
$this->db_connected = true;
- $this->db_mode = $mode;
}
// Query database (read operations)
@@ -117,7 +119,8 @@ class rcube_db
$result = $this->db_handle->query($query);
if (DB::isError($result))
- raise_error(array('code' => 500, 'type' => 'db',
+ raise_error(array('code' => 500,
+ 'type' => 'db',
'line' => __LINE__,
'file' => __FILE__,
'message' => $result->getMessage()), TRUE, FALSE);
@@ -127,7 +130,7 @@ class rcube_db
function db_execute ($query)
{
- db_connect('w');
+ $this->db_connect('w');
if ($this->db_provider == 'sqlite')
$query = $this->_sqlite_prepare_query($query);
@@ -159,7 +162,7 @@ class rcube_db
function insert_id($sequence = '')
{
- if (!$this->db_link || $this->db_mode=='r')
+ if (!$this->db_handle || $this->db_mode=='r')
return FALSE;
switch($this->db_provider)
@@ -167,13 +170,14 @@ class rcube_db
case 'pgsql':
// PostgreSQL uses sequences
$result =& $this->db_handle->getOne("SELECT CURRVAL('$sequence')");
- if (DB::isError($result))
+ if (DB::isError($result)) {
raise_error( array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
'message' => $result->getMessage()), TRUE, TRUE);
+ }
return $result;
case 'mysql': // This is unfortuneate
- return mysql_insert_id($this->db_handle);
+ return mysql_insert_id();
case 'sqlite':
return sqlite_last_insert_rowid($this->db_handle->connection);
@@ -189,8 +193,11 @@ class rcube_db
$result = $this->_get_result($res_id);
if (DB::isError($result))
+ {
raise_error( array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
- 'message' => $this->db_link->getMessage()), TRUE, TRUE);
+ 'message' => $this->db_link->getMessage()), TRUE, FALSE);
+ return FALSE;
+ }
return $result->fetchRow(DB_FETCHMODE_ASSOC);
}
@@ -231,16 +238,15 @@ class rcube_db
if (empty($fileName) || !is_string($fileName))
return ;
- $fd = fopen($fileName, 'r');
- if (!$fd)
- return ;
-
$data = '';
- while ($line = fgets($fd, 4096))
- $data .= $line;
-
- fclose($fd);
- sqlite_exec($dbh->connection, $data);
+ if ($fd = fopen($fileName, 'r'))
+ {
+ $data = fread($fd, filesize($fileName));
+ fclose($fd);
+ }
+
+ if (strlen($data))
+ sqlite_exec($dbh->connection, $data);
}
// transform a query so that it is sqlite2 compliant
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index 127409dc8..21434167b 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -24,9 +24,6 @@
require_once('lib/imap.inc');
require_once('lib/mime.inc');
-// check for Open-SSL support in PHP build
-//$ICL_SSL = TRUE;
-//$ICL_PORT = 993;
class rcube_imap
{
@@ -75,15 +72,29 @@ class rcube_imap
}
- function connect($host, $user, $pass, $port=143)
+ function connect($host, $user, $pass, $port=143, $use_ssl=FALSE)
{
- global $ICL_PORT;
+ global $ICL_PORT, $CONFIG;
+
+ // check for Open-SSL support in PHP build
+ if ($use_ssl && in_array('openssl', get_loaded_extensions()))
+ $ICL_SSL = TRUE;
$ICL_PORT = $port;
- $this->conn = iil_Connect($host, $user, $pass);
+ $this->conn = iil_Connect($host, $user, $pass, array('imap' => 'check'));
$this->host = $host;
$this->user = $user;
$this->pass = $pass;
+
+ if ($this->conn && ($CONFIG['debug_level'] & 8))
+ print $this->conn->message;
+
+ else if (!$this->conn && $GLOBALS['iil_error'])
+ {
+ raise_error(array('code' => 403,
+ 'type' => 'imap',
+ 'message' => $GLOBALS['iil_error']), TRUE, FALSE);
+ }
return $this->conn ? TRUE : FALSE;
}
diff --git a/program/include/session.inc b/program/include/session.inc
index 35970c80f..ca2b0b4ce 100644
--- a/program/include/session.inc
+++ b/program/include/session.inc
@@ -38,7 +38,7 @@ function sess_read($key)
{
global $DB, $SESS_CHANGED;
- $sql_result = $DB->query(sprintf("SELECT vars, UNIX_TIMESTAMP(changed) AS changed
+ $sql_result = $DB->query(sprintf("SELECT vars, ip, UNIX_TIMESTAMP(changed) AS changed
FROM %s
WHERE sess_id='%s'",
get_table_name('session'),
@@ -81,11 +81,12 @@ function sess_write($key, $vars)
else
{
$DB->query(sprintf("INSERT INTO %s
- (sess_id, vars, created, changed)
- VALUES ('%s', '%s', NOW(), NOW())",
+ (sess_id, vars, ip, created, changed)
+ VALUES ('%s', '%s', '%s', NOW(), NOW())",
get_table_name('session'),
$key,
- $vars));
+ $vars,
+ $_SERVER['REMOTE_ADDR']));
}
return TRUE;
diff --git a/program/js/app.js b/program/js/app.js
index 30d870475..3182ce365 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -76,7 +76,8 @@ function rcube_webmail()
this.task = this.env.task;
// check browser
- if (!(bw.dom && ((bw.ie && bw.vendver>=5.5 && !bw.opera) || (bw.mz && bw.vendver>=1) || (bw.safari && bw.vendver>=125) || (bw.opera && bw.vendver>=8))))
+ if (!(bw.dom && ((bw.ie && bw.vendver>=5.5 && !bw.opera) || (bw.mz && bw.vendver>=1) || (bw.safari && bw.vendver>=125) ||
+ (bw.opera && bw.vendver>=8) || (bw.konq && bw.vendver>=3.4))))
{
location.href = this.env.comm_path+'&_action=error&_code=0x199';
return;
diff --git a/program/js/common.js b/program/js/common.js
index 5263a87ab..2d2c2e925 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -47,8 +47,8 @@ function roundcube_browser()
this.ns4 = (this.ns && parseInt(this.ver)==4);
this.ns6 = (this.ns && parseInt(this.vendver)==6); // (this.mz && this.ns) ? true : false;
this.ns7 = (this.ns && parseInt(this.vendver)==7); // this.agent.indexOf('Netscape/7')>0);
- this.safari = this.agent.toLowerCase().indexOf('safari')>0;
- this.konq = (this.agent.toLowerCase().indexOf('konqueror')>0);
+ this.safari = (this.agent.toLowerCase().indexOf('safari')>0 || this.agent.toLowerCase().indexOf('applewebkit')>0);
+ this.konq = (this.agent.toLowerCase().indexOf('konqueror')>0);
this.opera = (window.opera) ? true : false;
this.opera5 = (this.opera5 && this.agent.indexOf('Opera 5')>0) ? true : false;
@@ -58,11 +58,14 @@ function roundcube_browser()
if(this.opera && window.RegExp)
this.vendver = (/opera(\s|\/)([0-9\.]+)/i.test(navigator.userAgent)) ? parseFloat(RegExp.$2) : -1;
else if(!this.vendver && this.safari)
- this.vendver = (/safari\/([0-9]+)/i.test(this.agent)) ? parseInt(RegExp.$1) : 0;
+ this.vendver = (/(safari|applewebkit)\/([0-9]+)/i.test(this.agent)) ? parseInt(RegExp.$2) : 0;
else if((!this.vendver && this.mz) || this.agent.indexOf('Camino')>0)
this.vendver = (/rv:([0-9\.]+)/.test(this.agent)) ? parseFloat(RegExp.$1) : 0;
else if(this.ie && window.RegExp)
this.vendver = (/msie\s+([0-9\.]+)/i.test(this.agent)) ? parseFloat(RegExp.$1) : 0;
+ else if(this.konq && window.RegExp)
+ this.vendver = (/khtml\/([0-9\.]+)/i.test(this.agent)) ? parseFloat(RegExp.$1) : 0;
+
// get real language out of safari's user agent
if(this.safari && (/;\s+([a-z]{2})-[a-z]{2}\)/i.test(this.agent)))
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 9ee476ee1..75b0abb21 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -345,6 +345,7 @@ function iil_Connect($host, $user, $password){
fputs($conn->fp, "cp01 CAPABILITY\r\n");
do{
$line = trim(chop(iil_ReadLine($conn->fp, 100)));
+ $conn->message.="$line\n";
$a = explode(" ", $line);
if ($line[0]=="*"){
while ( list($k, $w) = each($a) ){
@@ -362,6 +363,7 @@ function iil_Connect($host, $user, $password){
//do CRAM-MD5 authentication
fputs($conn->fp, "a000 AUTHENTICATE CRAM-MD5\r\n");
$line = trim(chop(iil_ReadLine($conn->fp, 1024)));
+ $conn->message.="$line\n";
if ($line[0]=="+"){
$conn->message.='Got challenge: '.htmlspecialchars($line)."\n";
//got a challenge string, try CRAM-5
diff --git a/program/localization/nl/labels.inc b/program/localization/nl/labels.inc
new file mode 100644
index 000000000..c2001003e
--- /dev/null
+++ b/program/localization/nl/labels.inc
@@ -0,0 +1,173 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | language/nl/labels.inc |
+ | |
+ | Language file of the RoundCube Webmail client |
+ | Copyright (C) 2005, RoundQube Dev. - Switzerland |
+ | Licensed under the GNU GPL |
+ | |
+ +-----------------------------------------------------------------------+
+ | Author: Jasper Slits <jaspersl@xs4all.nl> |
+ +-----------------------------------------------------------------------+
+
+ $Id$
+
+*/
+
+$labels = array();
+
+// login page
+$labels['username'] = 'Gebruikersnaam';
+$labels['password'] = 'Wachtwoord';
+$labels['server'] = 'Server';
+$labels['login'] = 'Log in';
+
+// taskbar
+$labels['logout'] = 'Log uit';
+$labels['mail'] = 'E-Mail';
+$labels['settings'] = 'Persoonlijke Instellingen';
+$labels['addressbook'] = 'Adres boek';
+
+// mailbox names
+$labels['inbox'] = 'Inbox';
+$labels['sent'] = 'Sent';
+$labels['trash'] = 'Trash';
+$labels['drafts'] = 'Drafts';
+$labels['junk'] = 'Junk';
+
+// message listing
+$labels['subject'] = 'Onderwerp';
+$labels['from'] = 'Afzender';
+$labels['to'] = 'Ontvangen';
+$labels['cc'] = 'Copy';
+$labels['bcc'] = 'Bcc';
+$labels['replyto'] = 'Reply-To';
+$labels['date'] = 'Datum';
+$labels['size'] = 'Grootte';
+$labels['priority'] = 'Prioriiteit';
+$labels['organization'] = 'Organisatie';
+
+// aliases
+$labels['reply-to'] = $labels['replyto'];
+
+$labels['mailboxlist'] = 'Mappen';
+$labels['messagesfromto'] = 'Berichten $from tot $to van $count';
+$labels['messagenrof'] = 'Bericht $nr van $count';
+
+$labels['moveto'] = 'verplaats naar...';
+$labels['download'] = 'download';
+
+$labels['filename'] = 'Bestandsnaam';
+$labels['filesize'] = 'Bestandsgrootte';
+
+$labels['preferhtml'] = 'HTML voorkeur';
+$labels['htmlmessage'] = 'HTML Bericht';
+$labels['prettydate'] = 'Uitgebreide datum';
+
+$labels['addtoaddressbook'] = 'Toevoegen aan adresboek';
+
+// weekdays short
+$labels['sun'] = 'Zo';
+$labels['mon'] = 'Ma';
+$labels['tue'] = 'Di';
+$labels['wed'] = 'Wo';
+$labels['thu'] = 'Do';
+$labels['fri'] = 'Vr';
+$labels['sat'] = 'Za';
+
+// weekdays long
+$labels['sunday'] = 'Zondag';
+$labels['monday'] = 'Maandag';
+$labels['tuesday'] = 'Dinsdag';
+$labels['wednesday'] = 'Woensdag';
+$labels['thursday'] = 'Donderdag';
+$labels['friday'] = 'Vrijdag';
+$labels['saturday'] = 'Zaterdag';
+
+$labels['today'] = 'Vandaag';
+
+// toolbar buttons
+$labels['writenewmessage'] = 'Schrijf een nieuw bericht';
+$labels['replytomessage'] = 'Beantwoord het bericht';
+$labels['forwardmessage'] = 'Doorsturen van bericht';
+$labels['deletemessage'] = 'Verplaats bericht naar prullenbak';
+$labels['printmessage'] = 'Print dit bericht';
+$labels['previousmessages'] = 'Toon vorige lijst met berichten';
+$labels['nextmessages'] = 'Toon volgende lijst met berichten';
+$labels['backtolist'] = 'Terug naar berichtoverzicht';
+
+$labels['select'] = 'Selecteer';
+$labels['all'] = 'Alle';
+$labels['none'] = 'Geen';
+$labels['unread'] = 'Ongelezen';
+
+// message compose
+$labels['compose'] = 'Creeer een nieuw message';
+$labels['sendmessage'] = 'Verstuur het bericht nu';
+$labels['addattachment'] = 'Voeg een bijlage toe';
+
+$labels['attachments'] = 'Bijlage';
+$labels['upload'] = 'Toevoegen';
+$labels['close'] = 'Sluit';
+
+$labels['low'] = 'Laag';
+$labels['lowest'] = 'Laagste';
+$labels['normal'] = 'Normaal';
+$labels['high'] = 'Hoog';
+$labels['highest'] = 'Hoogste';
+
+$labels['showimages'] = 'Afbeeldingen weergeven';
+
+
+// address boook
+$labels['name'] = 'Weergave naam';
+$labels['firstname'] = 'Voornaam';
+$labels['surname'] = 'Achternaam';
+$labels['email'] = 'E-Mail';
+
+$labels['addcontact'] = 'Nieuw contactpersoon toevoegen';
+$labels['editcontact'] = 'Wijzig contactpersoon';
+
+$labels['edit'] = 'Wijzig';
+$labels['cancel'] = 'Annuleren';
+$labels['save'] = 'Opslaan';
+$labels['delete'] = 'Verwijder';
+
+$labels['newcontact'] = 'Creeer nieuwe contactpersoon';
+$labels['deletecontact'] = 'Verwijder geselecteerde contactpersonen';
+$labels['composeto'] = 'Verstuur bericht aan';
+$labels['contactsfromto'] = 'Contactpersonen $from tot $to van $count';
+
+
+// settings
+$labels['settingsfor'] = 'Instellingen voor';
+
+$labels['preferences'] = 'Voorkeuren';
+$labels['userpreferences'] = 'Gebruikersvoorkeuren';
+$labels['editpreferences'] = 'Wijzig gebruikersvoorkeur';
+
+$labels['identities'] = 'Identiteit';
+$labels['manageidentities'] = 'Beheer identiteiten voor dit account';
+$labels['newidentity'] = 'Nieuwe identiteit';
+
+$labels['newitem'] = 'Nieuw item';
+$labels['edititem'] = 'Wijzig item';
+
+$labels['setdefault'] = 'Standaard instelling';
+$labels['language'] = 'Taal';
+$labels['timezone'] = 'Tijd zone';
+$labels['pagesize'] = 'Berichten per pagina';
+
+
+$labels['folders'] = 'Mappen';
+$labels['foldername'] = 'Map naam';
+$labels['subscribed'] = 'Subscribed';
+$labels['create'] = 'Creeren';
+$labels['createfolder'] = 'Maak nieuwe map';
+$labels['deletefolder'] = 'Verwijder map';
+$labels['managefolders'] = 'Beheer mappen';
+
+
+?> \ No newline at end of file
diff --git a/program/localization/nl/messages.inc b/program/localization/nl/messages.inc
new file mode 100644
index 000000000..cc5ad47a1
--- /dev/null
+++ b/program/localization/nl/messages.inc
@@ -0,0 +1,56 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | language/nl/messages.inc |
+ | |
+ | Language file of the RoundCube Webmail client |
+ | Copyright (C) 2005, RoundCube Dev. - Switzerland |
+ | Licensed under the GNU GPL |
+ | |
+ +-----------------------------------------------------------------------+
+ | Author: Jasper Slits <jaspersl@xs4all.nl> |
+ +-----------------------------------------------------------------------+
+
+ $Id$
+
+*/
+
+$messages = array();
+
+$messages['loginfailed'] = 'Login mislukt';
+
+$messages['cookiesdisabled'] = 'Je browser accepteert geen cookies';
+
+$messages['sessionerror'] = 'Je sessie is ongeldig of verlopen';
+
+$messages['imaperror'] = 'Verbinding met IMAP-server mislukt';
+
+$messages['nomessagesfound'] = 'Geen berichten gevonden in Postvak IN';
+
+$messages['loggedout'] = 'Je bent succesvol uitgelegd. Tot ziens!';
+
+$messages['mailboxempty'] = 'Postbak is leeg';
+
+$messages['loadingdata'] = 'Ophalen gegevens...';
+
+$messages['messagesent'] = 'Bericht succesvol verzonden';
+
+$messages['successfullysaved'] = 'Succesvol opgeslagen';
+
+$messages['addedsuccessfully'] = 'Contactpersoon succesvol toegevoegd aan het adresboek';
+
+$messages['contactexists'] = 'Een contactpersoon met dit e-mail adres bestaat al';
+
+$messages['blockedimages'] = 'Om je privacy te beschermen zijn externe afbeeldingen zijn geblokkeerd in dit bericht.';
+
+$messages['encryptedmessage'] = 'Dit is een versleuteld bericht en kan niet worden weergegeven. Sorry!';
+
+$messages['nocontactsfound'] = 'Geen contactpersonen gevonden';
+
+$messages['sendingfailed'] = 'Versturen van het bericht is mislukt';
+
+$messages['errorsaving'] = 'Er is een fout opgetreden bij het opslaan';
+
+
+?> \ No newline at end of file
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 60b1056dd..4e1e345fa 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -57,12 +57,13 @@ function rcmail_user_prefs_form($attrib)
$select_lang->add('Deutsch', 'de');
$select_lang->add('English', 'en');
$select_lang->add('Espanol', 'es');
- $select_lang->add('Franais', 'fr');
+ $select_lang->add('Fran&ccedil;ais', 'fr');
$select_lang->add('Italiano', 'it');
+ $select_lang->add('Nederlands', 'nl');
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n",
$field_id,
- rcube_label('language'),
+ rep_specialchars_output(rcube_label('language')),
$select_lang->show($sess_user_lang));
@@ -99,7 +100,7 @@ function rcmail_user_prefs_form($attrib)
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n",
$field_id,
- rcube_label('timezone'),
+ rep_specialchars_output(rcube_label('timezone')),
$select_timezone->show($CONFIG['timezone']));
@@ -109,7 +110,7 @@ function rcmail_user_prefs_form($attrib)
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n",
$field_id,
- rcube_label('pagesize'),
+ rep_specialchars_output(rcube_label('pagesize')),
$input_pagesize->show($CONFIG['pagesize']));
// show checkbox for HTML/plaintext messages
@@ -118,7 +119,7 @@ function rcmail_user_prefs_form($attrib)
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n",
$field_id,
- rcube_label('preferhtml'),
+ rep_specialchars_output(rcube_label('preferhtml')),
$input_pagesize->show($CONFIG['prefer_html']?1:0));
// MM: Show checkbox for toggling 'pretty dates'
@@ -127,7 +128,7 @@ function rcmail_user_prefs_form($attrib)
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n",
$field_id,
- rcube_label('prettydate'),
+ rep_specialchars_output(rcube_label('prettydate')),
$input_prettydate->show($CONFIG['prettydate']?1:0));