"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/lib/plugins/site/hooks/addsitehost.hook.php" between
fogproject-1.5.5.tar.gz and fogproject-1.5.6.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’t use any boot disks, or CDs; everything is done via TFTP and PXE.

addsitehost.hook.php  (fogproject-1.5.5):addsitehost.hook.php  (fogproject-1.5.6)
skipping to change at line 319 skipping to change at line 319
array( array(
'hostID' => $arguments['Host']->get('id') 'hostID' => $arguments['Host']->get('id')
) )
); );
$site = (int)filter_input(INPUT_POST, 'site'); $site = (int)filter_input(INPUT_POST, 'site');
if ($site) { if ($site) {
$insert_fields = array( $insert_fields = array(
'siteID', 'siteID',
'hostID' 'hostID'
); );
$insert_valuse = array(); $insert_values = array();
$insert_values[] = array( $insert_values[] = array(
$site, $site,
$arguements['Host']->get('id') $arguments['Host']->get('id')
); );
if (count($insert_valeus)) { if (count($insert_values)) {
self::getClass('SiteHostAssociationManager') self::getClass('SiteHostAssociationManager')
->insertBatch( ->insertBatch(
$insert_fields, $insert_fields,
$insert_values $insert_values
); );
} }
} }
} }
/** /**
* Adds the site to import. * Adds the site to import.
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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