Current time: 11-25-2024, 08:25 PM 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: #16
RE: [Add User] -- insert a control
Need Help Tongue

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 ... Smile ( 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 Big Grin ... no dirs are created :/

So .. if somebody sees an error Tongue ... contact me plz Tongue

Ryu !
(This post was last modified: 06-12-2007 11:42 PM by Ryuuku.)
06-12-2007 11:41 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 - Ryuuku - 06-12-2007 11:41 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

Forum Jump:


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