I'm BacK ^ ^
So ! .. All was ok but my boss wwant other thing
Actually .. i have my function in file ispcp-dmn-mngr .... and was called when status = toadd ... It works well
My boss wants to me to place my function in a new file : ex : engine/ispcp2egw_dmn_add
So ... of course ... my script doesn't execute anymore
So i made the following changes :
File : ispcp_common_code.pl
Code:
#####
# Ajout pour Egroupware
$main::ispcp2egw_dmn_add = "$main::root_dir/engine/ispcp2egw_dmn_add";
$main::ispcp2egw_dmn_del = "$main::root_dir/engine/ispcp2egw_dmn_del";
#####
File : ispcp.conf
Code:
#############
# Ajout des triggers pour Egroupware
ispcp2egw_dmn_add = /var/www/ispcp/engine/ispcp2egw_dmn_add
ispcp2egw_dmn_del = /var/www/ispcp/engine/ispcp2egw_dmn_del
File : ispcp-dmn-mngr
Code:
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 $ispcp2egw_dmn_add = $main::cfg{'ispcp2egw_dmn_add'};
$rs = system`$ispcp2egw_dmn_add`; ### <<<< My call script !!
Result : All is ok except my script ispcp2egw_dmn_add which isn't executed :/
My helper ? An idea ?