Need Help
File : ispcp-dmn-mngr
My function :
------------------------------------------------------------------------------------------------------------------------------------------
Code:
## Egroupware Control Checkbox
sub egw_ctrl_dmn {
my ($rs, $rdata) = ('', '');
my ($dmn_data) = @_;
my $dmn_name = @$dmn_data[1];
my $dmn_egw = @$dmn_data[21];
my $sql = "select domain_egw from domain where domain_name = $dmn_name";
($rs, $rdata) = doSQL($sql);
if ($sql eq 'yes') {
mkdir ('/tmp/egw_ctrl1',0777) ;
} elsif ($sql eq 'no') {
mkdir ('/tmp/egw_ctrl2', 0777) ;
}
} # Fin Fonction egw_ctrl_dmn
------------------------------------------------------------------------------------------------------------------------------------------
So when i execute ispcp-dmn-mngr ... there is no syntax error ...
( i think )
In call my function in function dmn_mngr_engine like this :
------------------------------------------------------------------------------------------------------------------------------------------
Code:
if ($dmn_status eq 'toadd') {
$rs = dmn_add_data($entry);
&egw_ctrl_dmn($entry); # <<<<<< My Call Function : )
$timestamp = time();
if ($rs == 0) {
$sql = "update domain set domain_status='ok' where domain_id = $dmn_id";
------------------------------------------------------------------------------------------------------------------------------------------
New user is well inserted ...
Status domain turn well on OK
i think my function isn't executed
... no dirs are created :/
So .. if somebody sees an error
... contact me plz
Ryu !