Current time: 06-03-2025, 12:36 AM Hello There, Guest! (LoginRegister)


Post Reply 
Automatic subdomain creation PLUS more...
Author Message
bulforce Offline
Junior Member
*

Posts: 63
Joined: Oct 2007
Reputation: 0
Post: #7
RE: Automatic subdomain creation PLUS more...
Just to let you know that i have some problems so i decide to upgrade ispcp to the latest nightly and now the commands are working good. I have few more questions if somebody can help me will be great.

1st
i have a file .../gui/tools/builder/adder.php that consist just of a modified subdomain add form. The data from the form is passed to modified copy of subdomain_add.php file that i am keeping in the same ..../builder/ dir.

I want to wrap my code in ispcp-sub-mngr with some if statement because now every subdomain i create no mather trough where is getting equiped with my cms files.
Here is the code:

Quote: foreach (@files) {
# ignore . and .. :
next if ($_ eq "." || $_ eq "..");
$rs = setfmode("$sub_dir/htdocs/images/$_", $sys_user, $sys_group, 0644);
return $rs if ($rs != 0);
}
## LINE 1524
## MOD "DEPLOY CMS"
$rs = sys_command("$main::cfg{'CMD_CP'} -rp $main::cfg{'GUI_ROOT_DIR'}/domain_default_page/cms-pakage/* $sub_dir/htdocs/");
return $rs if ($rs != 0);
## Files were copied
$rs = sys_command("$main::cfg{'CMD_RM'} -rf $sub_dir/htdocs/images $sub_dir/htdocs/index.html");
return $rs if ($rs != 0);

## END "DEPLOY CMS"


}

push_el(\@main::el, 'sub_add_httpd_file_data()', 'Ending...');

return 0;


2nd
Any ideas where should i start the automatic mysql db creation and the initial dump of data?

Thank you
(This post was last modified: 02-06-2009 08:51 AM by bulforce.)
02-06-2009 08:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Automatic subdomain creation PLUS more... - bulforce - 02-06-2009 08:50 AM

Forum Jump:


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