"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/maintenance/create_update_node.php" between
fogproject-1.5.6.tar.gz and fogproject-1.5.7.tar.gz

About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn\PKG_DESCR_TTrsquo;t use any boot disks, or CDs; everything is done via TFTP and PXE.

create_update_node.php  (fogproject-1.5.6):create_update_node.php  (fogproject-1.5.7)
skipping to change at line 62 skipping to change at line 62
->set('pass', trim($_POST['pass'])) ->set('pass', trim($_POST['pass']))
->set('interface', trim($_POST['interface'])) ->set('interface', trim($_POST['interface']))
->set('bandwidth', trim($_POST['bandwidth'])) ->set('bandwidth', trim($_POST['bandwidth']))
->set('webroot', trim($_POST['webroot'])) ->set('webroot', trim($_POST['webroot']))
->set('isEnabled', '1') ->set('isEnabled', '1')
->save(); ->save();
} elseif (isset($_POST['nodePass'])) { } elseif (isset($_POST['nodePass'])) {
foreach ((array)FOGCore::getClass('StorageNodeManager') foreach ((array)FOGCore::getClass('StorageNodeManager')
->find(array('ip' => $_POST['ip'])) as &$Node ->find(array('ip' => $_POST['ip'])) as &$Node
) { ) {
if ($Node->get('pass') === trim($_POST['pass'])) { if (($Node->get('pass') === trim($_POST['pass'])) &&
($Node->get('user') === trim($_POST['user']))) {
continue; continue;
} }
$Node $Node
->set('pass', trim($_POST['pass'])) ->set('pass', trim($_POST['pass']))
->set('user', trim($_POST['user'])) ->set('user', trim($_POST['user']))
->save(); ->save();
unset($Node); unset($Node);
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)