diff --git a/bureau/admin/adm_doms.php b/bureau/admin/adm_doms.php index ce303dfa..78fdf5e8 100644 --- a/bureau/admin/adm_doms.php +++ b/bureau/admin/adm_doms.php @@ -78,9 +78,9 @@ for($i=0;$i"; } ?> -
- +" target="_blank"> checkcreator($c[$i]['uid'])) { diff --git a/bureau/class/m_quota.php b/bureau/class/m_quota.php index 69f3d46a..d088ba2f 100644 --- a/bureau/class/m_quota.php +++ b/bureau/class/m_quota.php @@ -257,7 +257,7 @@ class m_quota { // We check that this ressource exists for this client : $db->query("SELECT * FROM quotas WHERE uid= ? AND name= ? ", array($cuid, $ressource)); if ($db->num_rows()) { - $db->query("UPDATE quotas SET total= e WHERE uid= ? AND name= ?;", array($size, $cuid, $ressource)); + $db->query("UPDATE quotas SET total= ? WHERE uid= ? AND name= ?;", array($size, $cuid, $ressource)); } else { $db->query("INSERT INTO quotas (uid,name,total) VALUES (?, ?, ?);", array($cuid, $ressource, $size)); } diff --git a/bureau/locales/fr_FR/LC_MESSAGES/alternc b/bureau/locales/fr_FR/LC_MESSAGES/alternc index b957d4bd..ea31b432 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/alternc +++ b/bureau/locales/fr_FR/LC_MESSAGES/alternc @@ -6090,7 +6090,7 @@ msgstr "Quotas du compte AlternC" #: ../class/m_quota.php:78 #, php-format msgid "%s%% of %s" -msgstr "%s% de %s" +msgstr "%s%% de %s" #: ../class/m_quota.php:78 ../class/m_quota.php:106 ../class/m_quota.php:197 msgid "quota_" diff --git a/roundcube/class/m_roundcube.php b/roundcube/class/m_roundcube.php index 719b53d7..1475820e 100644 --- a/roundcube/class/m_roundcube.php +++ b/roundcube/class/m_roundcube.php @@ -45,7 +45,7 @@ class m_roundcube { if (count($expl)>=2) { list($host,$dompart)=$expl; // We search for a 'squirrelmail' subdomain in that domain - $db->query("SELECT * FROM sub_domaines s WHERE s.domaine='".addslashes($dompart)."' AND s.type='roundcube';"); + $db->query("SELECT * FROM sub_domaines s WHERE s.domaine=? AND s.type='roundcube';",array($dompart)); if ($db->next_record()) { $domain=$db->Record; return "http://".$domain["sub"].(($domain["sub"])?".":"").$domain["domaine"]; @@ -97,17 +97,17 @@ class m_roundcube { break; } - $req = $dbh->query("SELECT user_id FROM users WHERE username = '$fullmail'"); + $req = $dbh->query("SELECT user_id FROM users WHERE username = ?;",array($fullmail)); foreach ( $req->fetchAll() as $t ) { if (empty($t['user_id'])) continue ; $rcuser_id=$t['user_id']; - $dbh->query("DELETE from contactgroupmembers where contactgroup_id in (select contactgroup_id from contactgroups where user_id = $rcuser_id) ; "); - $dbh->query("DELETE from contactgroups where user_id = $rcuser_id ; "); - $dbh->query("DELETE from contacts where user_id = $rcuser_id ; "); - $dbh->query("DELETE from identities where user_id = $rcuser_id ; "); - $dbh->query("DELETE from users where user_id = $rcuser_id ; "); + $dbh->query("DELETE from contactgroupmembers where contactgroup_id in (select contactgroup_id from contactgroups where user_id = ?) ; ",array($rcuser_id)); + $dbh->query("DELETE from contactgroups where user_id = ? ; ",array($rcuser_id)); + $dbh->query("DELETE from contacts where user_id = ? ; ",array($rcuser_id)); + $dbh->query("DELETE from identities where user_id = ? ; ",array($rcuser_id)); + $dbh->query("DELETE from users where user_id = ? ; ",array($rcuser_id)); } //foreach } diff --git a/squirrelmail/class/m_squirrelmail.php b/squirrelmail/class/m_squirrelmail.php index 2dd30944..19998f82 100644 --- a/squirrelmail/class/m_squirrelmail.php +++ b/squirrelmail/class/m_squirrelmail.php @@ -45,7 +45,7 @@ class m_squirrelmail { if (count($expl)>=2) { list($host,$dompart)=$expl; // We search for a 'squirrelmail' subdomain in that domain - $db->query("SELECT * FROM sub_domaines s WHERE s.domaine='".addslashes($dompart)."' AND s.type='squirrelmail';"); + $db->query("SELECT * FROM sub_domaines s WHERE s.domaine= ? AND s.type='squirrelmail';",array($dompart)); if ($db->next_record()) { $domain=$db->Record; return "http://".$domain["sub"].(($domain["sub"])?".":"").$domain["domaine"];