/[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.50, Tue Oct 20 10:06:52 2009 UTC revision 1.51, Fri Nov 13 16:48:00 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: hostmaster.profile,v 1.49 2009/09/23 02:06:57 adrian Exp $  // $Id: hostmaster.profile,v 1.50 2009/10/20 10:06:52 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    $node->title = $_SERVER['HTTP_HOST'];    $hostname = explode(':', $_SERVER['HTTP_HOST'], 2);
247      $node->title = $hostname[0];
248      $node->ports = !empty($hostname[1]) ? $hostname[1] : '80';
249    $node->script_user = HOSTING_DEFAULT_SCRIPT_USER;    $node->script_user = HOSTING_DEFAULT_SCRIPT_USER;
250    $node->web_group = HOSTING_DEFAULT_WEB_GROUP;    $node->web_group = HOSTING_DEFAULT_WEB_GROUP;
251    $node->status = 1;    $node->status = 1;

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

  ViewVC Help
Powered by ViewVC 1.1.2