summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d939fc5)
raw | patch | inline | side by side (parent: d939fc5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Jul 2006 11:54:51 +0000 (11:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Jul 2006 11:54:51 +0000 (11:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4049 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions_FAI.inc | patch | blob | history |
index de593a7ae02f230e57c332f73fdb2a7847872bd1..69fb3146476dc8f30158e64a00dd2e3c5d1a7498 100644 (file)
{
/* Variable init*/
$to_save = array();
-
- /* check which attributes must realy be saved */
+ /* check which objects must be saved */
foreach($_SESSION['FAI_objects_to_save'] as $Current_DN => $object){
if($object['diff']){
$sub_name = $Current_DN;
while(isset($_SESSION['FAI_objects_to_save'][$sub_name])){
-
-
$to_save[strlen($sub_name)][$sub_name] = $_SESSION['FAI_objects_to_save'][$sub_name];
unset($_SESSION['FAI_objects_to_save'][$sub_name]);
$sub_name = preg_replace('/^[^,]+,/', '', $sub_name);
/* Sort list of objects that must be saved, and ensure that
container objects are safed, before their childs are saved */
ksort($to_save);
-
$tmp = array();
foreach($to_save as $SubObjects){
foreach($SubObjects as $object){
$tmp[] = $object;
}
}
-
$to_save = $tmp;
/* Save objects and manage the correct release behavior*/
}
}
-
/* Check if this a leaf release or not */
if(count($following_releases) == 0 ){
global $config;
$ldap = $config->get_ldap_link();
$ldap->cd($config->current['BASE']);
- echo $dn;
- print_a($attrs);
$ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $dn));
$ldap->cd($dn);