| 1 |
<?php |
<?php |
| 2 |
// $Id: hostmaster.profile,v 1.50 2009/10/20 10:06:52 adrian Exp $ |
// $Id: hostmaster.profile,v 1.51 2009/11/13 16:48:00 adrian Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Return an array of the modules to be enabled when this profile is installed. |
* Return an array of the modules to be enabled when this profile is installed. |
| 243 |
$node = new stdClass(); |
$node = new stdClass(); |
| 244 |
$node->uid = 1; |
$node->uid = 1; |
| 245 |
$node->type = 'web_server'; |
$node->type = 'web_server'; |
| 246 |
$hostname = explode(':', $_SERVER['HTTP_HOST'], 2); |
$node->title = $_SERVER['HTTP_HOST']; |
|
$node->title = $hostname[0]; |
|
|
$node->ports = !empty($hostname[1]) ? $hostname[1] : '80'; |
|
| 247 |
$node->script_user = HOSTING_DEFAULT_SCRIPT_USER; |
$node->script_user = HOSTING_DEFAULT_SCRIPT_USER; |
| 248 |
$node->web_group = HOSTING_DEFAULT_WEB_GROUP; |
$node->web_group = HOSTING_DEFAULT_WEB_GROUP; |
| 249 |
$node->status = 1; |
$node->status = 1; |