"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/service/hostinfo.php" between
fogproject-1.5.8.tar.gz and fogproject-1.5.9.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.

hostinfo.php  (fogproject-1.5.8):hostinfo.php  (fogproject-1.5.9)
skipping to change at line 45 skipping to change at line 45
$Task->get('typeID') $Task->get('typeID')
); );
$Image = $Task->getImage(); $Image = $Task->getImage();
if ($TaskType->isInitNeededTasking()) { if ($TaskType->isInitNeededTasking()) {
if ($TaskType->isMulticast()) { if ($TaskType->isMulticast()) {
$MulticastSession = FOGCore::getClass( $MulticastSession = FOGCore::getClass(
'MulticastSession', 'MulticastSession',
@max( @max(
FOGCore::getSubObjectIDs( FOGCore::getSubObjectIDs(
'MulticastSessionAssociation', 'MulticastSessionAssociation',
array('taskID' => $Task->get('id')) array('taskID' => $Task->get('id')),
'msID'
) )
) )
); );
$taskImgID = $Task->get('imageID'); $taskImgID = $Task->get('imageID');
$mcImgID = $MulticastSession->get('image'); $mcImgID = $MulticastSession->get('image');
if ($taskImgID != $mcImgID) { if ($taskImgID != $mcImgID) {
$Task $Task
->set('imageID', $mcImgID) ->set('imageID', $mcImgID)
->save(); ->save();
FOGCore::$Host FOGCore::$Host
skipping to change at line 171 skipping to change at line 172
$passtest = FOGCore::aesdecrypt($pass); $passtest = FOGCore::aesdecrypt($pass);
if ($test_base64 = base64_decode($passtest)) { if ($test_base64 = base64_decode($passtest)) {
if (mb_detect_encoding($test_base64, 'utf-8', true)) { if (mb_detect_encoding($test_base64, 'utf-8', true)) {
$pass = $test_base64; $pass = $test_base64;
} elseif (mb_detect_encoding($passtest, 'utf-8', true)) { } elseif (mb_detect_encoding($passtest, 'utf-8', true)) {
$pass = $passtest; $pass = $passtest;
} }
} }
$productKey = FOGCore::$Host->get('productKey'); $productKey = FOGCore::$Host->get('productKey');
$productKeytest = FOGCore::aesdecrypt($productKey); $productKeytest = FOGCore::aesdecrypt($productKey);
if ($test_base64 = base64_decode($productKeytest, 'utf-8', true)) { if ($test_base64 = base64_decode($productKeytest)) {
if (mb_detect_encoding($test_base64)) { if (mb_detect_encoding($test_base64, 'utf-8', true)) {
$productKey = $test_base64; $productKey = $test_base64;
} elseif (mb_detect_encoding($productKeytest, 'utf-8', true)) { } elseif (mb_detect_encoding($productKeytest, 'utf-8', true)) {
$productKey = $productKeytest; $productKey = $productKeytest;
} }
} }
$repFields = array( $repFields = array(
// Imaging items to set // Imaging items to set
'mac' => $mac, 'mac' => $mac,
'ftp' => $ftp, 'ftp' => $ftp,
'osid' => $osid, 'osid' => $osid,
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

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