Code

Updated role
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jun 2009 12:08:53 +0000 (12:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jun 2009 12:08:53 +0000 (12:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13849 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/oroles/admin/oroles/main.inc [deleted file]
gosa-plugins/oroles/plugin.dsc [deleted file]
gosa-plugins/roleManagement/plugin.dsc [new file with mode: 0644]

diff --git a/gosa-plugins/oroles/admin/oroles/main.inc b/gosa-plugins/oroles/admin/oroles/main.inc
deleted file mode 100644 (file)
index 28c548c..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/*
- * This code is part of GOsa (http://www.gosa-project.org)
- * Copyright (C) 2003-2008 GONICUS GmbH
- *
- * ID: $$Id: main.inc 13288 2008-12-12 14:54:13Z hickert $$
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-
-/* Remove locks created by this plugin
-*/
-if ($remove_lock){
-  if(session::is_set('roleManagement')){
-    $macl = session::get('roleManagement');
-    $macl->remove_lock();
-  }
-}
-
-/* Remove this plugin from session
-*/
-if ( $cleanup ){
-  session::un_set('roleManagement');
-}else{
-
-  /* Create object object on demand */
-  if (!session::is_set('roleManagement')){
-    session::set('roleManagement',new roleManagement ($config));
-    
-  }
-  $roleManagement = session::get('roleManagement');
-
-  /* Execute formular */
-  $roleManagement->save_object();
-  $output= $roleManagement->execute ();
-
-  /* Page header*/
-  if (get_object_info() != ""){
-    $display= print_header(get_template_path('plugins/roleManagement/images/plugin.png'),
-        _("Roles"),
-        "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\"> ".
-        LDAP::fix(get_object_info()));
-  } else {
-    $display= print_header(get_template_path('plugins/roleManagement/images/plugin.png'), _("roleManagement"));
-  }
-
-  $display.= $output;
-
-  /* Store changes  in session */
-  session::set('roleManagement',$roleManagement);
-}
-
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/gosa-plugins/oroles/plugin.dsc b/gosa-plugins/oroles/plugin.dsc
deleted file mode 100644 (file)
index f99790f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-[gosa-plugin]
-name = oroles
-description = "Role management plugin"
-version = 2.6.4
-author = "Fabian Hickert <hickert@gonicus.de>"
-homepage = https://oss.gonicus.de/labs/gosa/
-provides = oroles
diff --git a/gosa-plugins/roleManagement/plugin.dsc b/gosa-plugins/roleManagement/plugin.dsc
new file mode 100644 (file)
index 0000000..f99790f
--- /dev/null
@@ -0,0 +1,7 @@
+[gosa-plugin]
+name = oroles
+description = "Role management plugin"
+version = 2.6.4
+author = "Fabian Hickert <hickert@gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
+provides = oroles