1) 
i tested to insert a control in page rau3.php     ( function add_user_data ) 
After the 'insert into domain '  ... it seems bad plac eto insert it ... 
=> Some error php  with unexpected variable .. 
2) 
I tested to a control in page ispcp-dmn-mngr  ( sub dmn_mngr_engine ) 
At the moment  of the update of toad statuts  .. .    i insert this 
if ($dmn_status eq 'toadd') {
        $rs = dmn_add_data($entry);
        $timestamp = time();
        if ($rs == 0) {
            $sql = "update domain set domain_status='ok' where domain_id = $dmn_id";
                         
my $egw_ctrl = "select domain_egw from domain where domain_name = $dmn_name;";
if ( $egw_ctrl = 'yes' ) { 
                                mkdir ("egw_ctrl1",0777) ;
                        } else { 
                                mkdir ("egw_ctrl2",0777) ;
                        }            
        } else {
            my ($sub_name, $msg) = split(/$main::el_sep/, pop_el(\@main::el));
            $msg =~ s/\'/\\\'/g;
            $sql = "update domain set domain_status='$sub_name | $msg' where domain_id = $dmn_id;";
         }
=> no error when the user is inserted ... but the status of the new user stay to 'Toadd'    

   no change on "ok"

 Somebody see an error ?  
Ryu !