- added form to add new froxlor-clients (no deploy etc.)

- implemented function to return all active client-id's for inserttask-function (task for all clients+master)
This commit is contained in:
Michael Kaufmann (d00p)
2010-10-19 14:35:33 +00:00
parent c0b19fa2b2
commit b2ea0cb666
5 changed files with 116 additions and 8 deletions

View File

@@ -52,14 +52,16 @@ function inserttask()
// if server_id = -1 then add this task for EVERY froxlor-client
if($server_id == -1)
{
// @TODO implement function to get number of froxlor-clients
/*
$numclients = getNumberOfFroxlorClients();
foreach($numclients as $froxclient_id)
{
inserttask($type, implode(', ', $taskparams), $froxclient_id);
$numclients = froxlorclient::getFroxlorClients($db);
if(is_array($numclients)
&& count($numclients) > 0
) {
foreach($numclients as $froxclient_id)
{
inserttask($type, implode(', ', $taskparams), $froxclient_id);
}
}
*/
// also for the master
inserttask($type, implode(', ', $taskparams), 0);
return;