"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/lib/fog/loadglobals.class.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.

loadglobals.class.php  (fogproject-1.5.5):loadglobals.class.php  (fogproject-1.5.6)
skipping to change at line 42 skipping to change at line 42
* *
* @return void * @return void
*/ */
private static function _init() private static function _init()
{ {
global $sub; global $sub;
if (self::$_loadedglobals) { if (self::$_loadedglobals) {
return; return;
} }
$GLOBALS['FOGFTP'] = new FOGFTP(); $GLOBALS['FOGFTP'] = new FOGFTP();
$GLOBALS['FOGCore'] = new FOGCore();
DatabaseManager::establish(); DatabaseManager::establish();
$GLOBALS['DB'] = DatabaseManager::getDB(); $GLOBALS['DB'] = DatabaseManager::getDB();
$GLOBALS['FOGCore'] = new FOGCore(); if (!$GLOBALS['DB']) {
return;
}
FOGCore::setEnv(); FOGCore::setEnv();
if (session_status() != PHP_SESSION_NONE) { if (session_status() != PHP_SESSION_NONE) {
$GLOBALS['currentUser'] = new User((int)$_SESSION['FOG_USER']); $GLOBALS['currentUser'] = new User((int)$_SESSION['FOG_USER']);
} else { } else {
$GLOBALS['currentUser'] = new User(0); $GLOBALS['currentUser'] = new User(0);
} }
$GLOBALS['HookManager'] = FOGCore::getClass('HookManager'); $GLOBALS['HookManager'] = FOGCore::getClass('HookManager');
$GLOBALS['HookManager'] $GLOBALS['HookManager']
->load(); ->load();
$GLOBALS['EventManager'] = FOGCore::getClass('EventManager'); $GLOBALS['EventManager'] = FOGCore::getClass('EventManager');
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

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