// Get session and API handles
require_once 'plc_session.php';
-global $plc, $api;
+require_once 'plc_api.php';
+global $plc, $api, $adm;
//print header
require_once 'plc_drupal.php';
case 'reboot-node-with-pcu': {
$node_id=intval($_POST['node_id']);
$hostname= $_POST['hostname'];
+ $test = $_POST['test'];
+ settype($test, "boolean");
- $ret = $api->RebootNodeWithPCU( $node_id );
+ $ret = $api->RebootNodeWithPCU( $node_id, $test );
$error= $api->error();
if( empty( $error ) ) {
}
}
if ($success) {
- $api->NotifyPersons($notify_person_ids,$notify_subject,$notify_body);
+ $adm->NotifyPersons($notify_person_ids,$notify_subject,$notify_body);
drupal_set_message ("Deleted $counter person(s)");
}
else
}
}
if ($success) {
- $api->NotifyPersons($notify_person_ids,$notify_subject,$notify_body);
+ $adm->NotifyPersons($notify_person_ids,$notify_subject,$notify_body);
drupal_set_message ("Added $counter person(s)");
}
else