"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/service/hostinfo.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.

hostinfo.php  (fogproject-1.5.5):hostinfo.php  (fogproject-1.5.6)
skipping to change at line 171 skipping to change at line 171
$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)) { if ($test_base64 = base64_decode($productKeytest, 'utf-8', true)) {
if (mb_detect_encoding($test_base64)) { if (mb_detect_encoding($test_base64)) {
$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,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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