summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 6a5f795)
raw | patch | inline | side by side (from parent 1: 6a5f795)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Apr 2008 13:00:49 +0000 (13:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Apr 2008 13:00:49 +0000 (13:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10588 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc
index 35e505ccec4502cec1ff106c226ff5bec81948f2..04c0c19e2839a54d5eb7c6c1282ba03f7105fb42 100644 (file)
$value = base64_decode(preg_replace("/_.$/","",$value));
if(isset($this->repositories[$value])){
+ $once = true;
+ $obj = $this->repositories[$value];
- $ldap = $this->config->get_ldap_link();
- $ldap->cd ($this->config->current['BASE']);
-
- $url = $this->repositories[$value]['Url'];
- $release = $this->repositories[$value]['Release'];
-
- $ldap->search("(&(objectClass=gotoWorkstation)(objectClass=FAIobject)(FAIdebianMirror=".$url."))",array("cn","FAIclass"));
- if ($ldap->count() != 0){
- $found = false;
- $obj= array();
- while($attrs = $ldap->fetch()){
- foreach($attrs['FAIclass'] as $class){
- if(preg_match("/".str_replace("/","\/",$release)."$/i",$class)){
- $found = true;
- $obj[$ldap->getDN()]= $attrs['cn'][0];
- }
- }
- }
-
- if($found){
- msg_dialog::display(_("Warning"), msgPool::stillInUse(_("FAI release"), msgPool::buildList($obj)), WARNING_DIALOG);
- }
- }
-
- if(isset($this->repositories[$value])){
- $once = true;
- $obj = $this->repositories[$value];
-
- /* to be able to detect if this was renamed */
- $obj['initialy_was'] = $obj['Release'];
- $this->dialog = new servRepositorySetup($this->config,$this->dn,$obj);
- $this->dialog->parent = $this;
- }
+ /* to be able to detect if this was renamed */
+ $obj['initialy_was'] = $obj['Release'];
+ $this->dialog = new servRepositorySetup($this->config,$this->dn,$obj);
+ $this->dialog->parent = $this;
}
}
}