Name
mgd_create_host -- Create a host record
Synopsis
int mgd_create_host
(string name, int port, int online, int root, int style, int auth, int owner, string [prefix]);
Description
Minimum version: Midgard 1.0 (Land Rover)
prefix available from: Midgard 1.4 (Bifrost)
Creates a midgard host with the provided parameters.
You must be root to do this.
Returns the id of the created record if successfull.
Returns false on failure.
Example
<?php
$name = "www.midgard-project.org";
$port = 80;
$online = 1;
$root = 101;
$style = 107;
$auth = 0;
$owner = 123;
mgd_create_host( $name, $port, $online, $root, $style, $auth, $owner );
?>