Ignore:
Timestamp:
03/29/06 16:15:16 (7 years ago)
Author:
nahuel
Message:

On rajoute un test lors de l'ajout d'un domaine, on regarde si un sous domaine n'existe pas déjà
Closes: 312

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bureau/class/m_dom.php

    r904 r927  
    206206    } 
    207207    $db->query("SELECT compte FROM domaines WHERE domaine='$domain';"); 
     208    if ($db->num_rows()) { 
     209      $err->raise("dom",8); 
     210      return false; 
     211    } 
     212    $db->query("SELECT compte FROM `sub_domaines` WHERE sub != "" AND concat( sub, ".", domaine )='$domain' OR domaine='$domain';"); 
    208213    if ($db->num_rows()) { 
    209214      $err->raise("dom",8); 
Note: See TracChangeset for help on using the changeset viewer.