"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/lib/fog/group.class.php" between
fogproject-1.5.7.tar.gz and fogproject-1.5.8.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.

group.class.php  (fogproject-1.5.7):group.class.php  (fogproject-1.5.8)
skipping to change at line 901 skipping to change at line 901
public function setAD( public function setAD(
$useAD, $useAD,
$domain, $domain,
$ou, $ou,
$user, $user,
$pass, $pass,
$legacy, $legacy,
$enforce $enforce
) { ) {
$pass = trim($pass); $pass = trim($pass);
$adpasspat = "/^\*{32}$/";
$pass = (preg_match($adpasspat, $pass) ? $this->get('ADPass') : $pass);
self::getClass('HostManager') self::getClass('HostManager')
->update( ->update(
array( array(
'id' => $this->get('hosts'), 'id' => $this->get('hosts'),
), ),
'', '',
array( array(
'useAD' => $useAD, 'useAD' => $useAD,
'ADDomain' => trim($domain), 'ADDomain' => trim($domain),
'ADOU' => trim($ou), 'ADOU' => trim($ou),
skipping to change at line 973 skipping to change at line 975
return $this; return $this;
} }
/** /**
* Loads hosts in this group. * Loads hosts in this group.
* *
* @return void * @return void
*/ */
protected function loadHosts() protected function loadHosts()
{ {
$this->set( $groupid = $this->get('id');
'hosts', if ($groupid > 0) {
(array)self::getSubObjectIDs( $this->set(
'GroupAssociation', 'hosts',
array('groupID' => $this->get('id')), (array)self::getSubObjectIDs(
'hostID' 'GroupAssociation',
) array('groupID' => $groupid),
); 'hostID'
$this->getHostCount(); )
);
$this->getHostCount();
}
} }
/** /**
* Loads hosts not in this group. * Loads hosts not in this group.
* *
* @return void * @return void
*/ */
protected function loadHostsnotinme() protected function loadHostsnotinme()
{ {
$hosts = array_diff( $hosts = array_diff(
self::getSubObjectIDs('Host'), self::getSubObjectIDs('Host'),
 End of changes. 2 change blocks. 
9 lines changed or deleted 14 lines changed or added

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