// Common functions
require_once 'plc_functions.php';
-require_once 'plc_sorts.php';
include 'plc_objects.php';
$basename=PLC_NAME."-BootCD.usb";
}
- $api->UpdateNode( $hostname, array( "boot_state" => 'disable',
+ $api->UpdateNode( $hostname, array( "boot_state" => 'disabled',
"version" => $this->get_bootcd_version() ) );
/* exits on success */
$success = $this->deliver_bootmedium($node_id, $boot_action, $basename);
}
$hostname= $node_detail['hostname'];
- $return= $api->GetNodeNetworks( array( "node_id" => $node_id ), NULL );
+ $return= $api->GetInterfaces( array( "node_id" => $node_id ), NULL );
$can_gen_config= 1;
$data['has_primary']= 0;
}
if ($action != 'download-node-floppy')
{
- $api->UpdateNode( $hostname, array( "boot_state" => 'disable',
+ $api->UpdateNode( $hostname, array( "boot_state" => 'disabled',
"version" => $this->get_bootcd_version() ) );
}
/* exits on success */
function deliver_bootmedium($node_id, $action, $filename)
{
global $api;
- ini_set("memory_limit","300M");
+ ini_set("memory_limit","450M");
$options = array();
switch ($action) {
case "node-usb-partition":