Current time: 05-17-2024, 07:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
[Add User] -- insert a control
Author Message
Ryuuku Offline
Junior Member
*

Posts: 55
Joined: Apr 2007
Reputation: 0
Post: #29
RE: [Add User] -- insert a control
I'm BacK ^ ^

So ! .. All was ok but my boss wwant other thing Tongue

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 Tongue

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 ? Tongue
(This post was last modified: 06-14-2007 07:33 PM by Ryuuku.)
06-14-2007 07:32 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[Add User] -- insert a control - Ryuuku - 06-07-2007, 06:57 PM
RE: [Add User] -- insert a control - BeNe - 06-13-2007, 03:32 AM
RE: [Add User] -- insert a control - BeNe - 06-14-2007, 06:01 AM
RE: [Add User] -- insert a control - Ryuuku - 06-14-2007 07:32 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)