ispCP - Board - Support
[Add User] -- insert a control - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: [Add User] -- insert a control (/thread-757.html)

Pages: 1 2 3 4


RE: [Add User] -- insert a control - Ryuuku - 06-13-2007 01:20 AM

Code:
Code:
if ($dmn_egw eq 'yes') {
                mkdir ('/tmp/egw_ctrl1',0777) ;
        } elsif ($dmn_egw eq 'no') {
                mkdir ('/tmp/egw_ctrl2', 0777) ;
        }

Oh My Godd !! It Works Tongue

/Joxi <<<< (k) hahahhaha Big Grin

Thx for all !!!


RE: [Add User] -- insert a control - BeNe - 06-13-2007 03:32 AM

Time for a Reputation for Joximu or not ? Wink
Can you write every change down - so that i can put it in the Wiki ?
Like - Howto install eGroupware on ispCP with user binding.


RE: [Add User] -- insert a control - joximu - 06-13-2007 06:37 AM

Hi BeNe

wait a moment - I'll try to fix ticket 387 and then there will be a small change in how to get the content of the newly added table fields...

Hope I'll get it this week...

/Joximu


RE: [Add User] -- insert a control - Ryuuku - 06-13-2007 05:31 PM

BeNe Wrote:Time for a Reputation for Joximu or not ? Wink

If i could do it ... tell me how ... and i'll add un reput point for Joximu Smile


BeNe Wrote:Can you write every change down - so that i can put it in the Wiki ?
Like - Howto install eGroupware on ispCP with user binding.

Hummm .. it's not finished yet ^^ ... I've all scripts (bash) ready for a first installation on a server Debian-Etch ..
So now .. i'm develloping functions in PERL which will be integer in IspCP engine (ispcp-dmn-mngr).

So i still have many works to finish to close my project ^^ Smile


RE: [Add User] -- insert a control - xister - 06-13-2007 06:12 PM

Ryuuku Wrote:If i could do it ... tell me how ... and i'll add un reput point for Joximu Smile

Click on the Username and then on the word "vote" Smile


RE: [Add User] -- insert a control - Ryuuku - 06-13-2007 10:59 PM

Vote Added

Your reputation vote has successfully been added for this user.


Tongue


RE: [Add User] -- insert a control - joximu - 06-14-2007 04:40 AM

Thanx!

your helper ... Big Grin


RE: [Add User] -- insert a control - BeNe - 06-14-2007 06:01 AM

and both sides are happy Cool
The community rulZ on ispCP....


RE: [Add User] -- insert a control - Ryuuku - 06-14-2007 07:32 PM

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


RE: [Add User] -- insert a control - Ryuuku - 06-14-2007 09:59 PM

Don't manage to execute my script yet Sad

IspCP Team ... Maybe some help ?