<tr><tdstyle="width: 50%; text-align: justify"><labelfor="recipients"><?php__("If you want to send emails received on this address to other addresses, even outside this server, enter those recipients here.");?></label></td><td>(<?php__("one recipient per line");?>)<br/><textareaclass="int"cols="32"rows="5"name="recipients"id="recipients"><?phpecho$recipients;?></textarea></td></tr>
* vrifie la presence d'un champs mx valide sur un serveur DNS
*
*/
*/
functioncheckmx($domaine,$mx){
//initialise variables
$mxhosts=array();
...
...
@@ -685,11 +671,11 @@ class m_dom {
returnfalse;
}
$db->next_record();
$r["id"]=$db->Record["id"];
$r["dns"]=$db->Record["gesdns"];
$r["dns_action"]=$db->Record["dns_action"];
$r["dns_result"]=$db->Record["dns_result"];
$r["mail"]=$db->Record["gesmx"];
// $r["mx"]=$db->Record["mx"]; // le champs mx n'existe plus dans domaines
$r['noerase']=$db->Record['noerase'];
$db->free();
$db->query("select count(*) as cnt from sub_domaines where compte='$cuid' and domaine='$dom'");
...
...
@@ -698,7 +684,6 @@ class m_dom {
$db->free();
$db->query("select sd.*, dt.description as type_desc, dt.only_dns from sub_domaines sd, domaines_type dt where compte='$cuid' and domaine='$dom' and upper(dt.name)=upper(sd.type) order by sd.sub,sd.type");
$type = " and valeur=\"".mysql_real_escape_string($value)."\"";
}
if ( ! empty($type)) {
$type = " and type=\"".mysql_real_escape_string($type)."\"";
}
*/
$db->query("select sd.*, dt.description as type_desc, dt.only_dns from sub_domaines sd, domaines_type dt where compte='$cuid' and domaine='$dom' and sub='$sub' and ( length('$type')=0 or type='$type') and (length('$value')=0 or '$value'=valeur) and upper(dt.name)=upper(sd.type);");
if($db->num_rows()==0){
$err->raise("dom",14);
...
...
@@ -778,7 +749,6 @@ class m_dom {
global$db,$err,$cuid;
// check the type we can have in domaines_type.target
$db->query("SELECT a.id, a.address, a.password, a.`enabled`, a.mail_action, d.domaine AS domain, m.quota, m.quota*1024*1024 AS quotabytes, m.bytes AS used, NOT ISNULL(m.id) AS islocal, a.type, r.recipients, m.lastlogin
FROM (address a LEFT JOIN mailbox m ON m.address_id=a.id) LEFT JOIN recipient r ON r.address_id=a.id, domaines d
WHERE $where AND d.id=a.domain_id
LIMIT $offset,$count;");
WHERE $where AND d.id=a.domain_id $limit;");
if(!$db->next_record()){
$err->raise("mail",_("No mail found for this query"));
returnfalse;
...
...
@@ -152,7 +151,7 @@ class m_mail {
$details=$db->Record;
// if necessary, fill the typedata with data from hooks ...
if($details["type"]){
$result=$hooks->invoke("mail_get_details",array($details["id"]));// Will fill typedata if necessary
$result=$hooks->invoke("hook_mail_get_details",array($details["id"]));// Will fill typedata if necessary