/[drupal]/contributions/profiles/hostmaster/hostmaster.profile
ViewVC logotype

Diff of /contributions/profiles/hostmaster/hostmaster.profile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.51, Fri Nov 13 16:48:00 2009 UTC revision 1.52, Fri Nov 13 21:40:05 2009 UTC
# Line 1  Line 1 
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.
# Line 243  function hostmaster_bootstrap() { Line 243  function hostmaster_bootstrap() {
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;

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

  ViewVC Help
Powered by ViewVC 1.1.2