From: hickert Date: Tue, 2 Mar 2010 13:28:09 +0000 (+0000) Subject: removed no longer required main.inc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8c997284a35e981abd789782594931f66951711;p=gosa.git removed no longer required main.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15850 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/connectivity/personal/connectivity/main.inc b/gosa-plugins/connectivity/personal/connectivity/main.inc deleted file mode 100644 index 48610b3b7..000000000 --- a/gosa-plugins/connectivity/personal/connectivity/main.inc +++ /dev/null @@ -1,137 +0,0 @@ -dn); - } -} - -/* Remove this plugin from session -*/ -if ( $cleanup ){ - session::un_set('connectivity'); - session::un_set('edit'); - -}else{ - - - /* Reset requested? */ - if (isset($_POST['edit_cancel'])){ - session::un_set ('edit'); - session::un_set ('connectivity'); - } - - /* Create connectivity object on demand */ - if (!session::is_set('connectivity') || (isset($_GET['reset']) && - $_GET['reset'] == 1)){ - $connectivity= new connectivity ($config, $ui->dn); - $connectivity->enable_CSN_check(); - $connectivity->set_acl_base($ui->dn); - $connectivity->set_acl_category("users"); - - /* Adjust acl's to mode */ - foreach ($connectivity->plugin_name as $name){ - $connectivity->plugin[$name]->set_acl_category( "users"); - $connectivity->plugin[$name]->set_acl_base($ui->dn); - } - session::set('connectivity',$connectivity); - } - $connectivity = session::get('connectivity'); - - /* save changes back to object */ - if (session::is_set('edit')){ - $connectivity->save_object (); - } - - /* Enter edit mode? */ - if (isset($_POST['edit']) || isset($_POST['delete_lock'])){ - - /* Check locking */ - if ((($username= get_lock($ui->dn)) != "") && (!session::is_set('edit'))){ - session::set('back_plugin',$plug); - $display = gen_locked_message ($username, $ui->dn); - }else{ - - /* Lock the current entry */ - add_lock ($ui->dn, $ui->dn); - session::set('edit',TRUE); - } - } - - /* save changes to LDAP and disable edit mode */ - if (isset($_POST['edit_finish'])){ - - /* Perform checks */ - $message= $connectivity->check (); - - /* No errors, save object */ - if (count ($message) == 0){ - $connectivity->save (); - del_lock ($ui->dn); - session::un_set ('edit'); - - /* Remove from session */ - session::un_set ('connectivity'); - } else { - /* Errors found, show message */ - msg_dialog::displayChecks($message); - } - } - - /* Execute formular */ - $info= ""; - $display= $connectivity->execute (); - - /* Store changes in session */ - if (session::is_set('edit')){ - session::set('connectivity',$connectivity); - } - - - $display.="
"; - if (session::is_set('edit')){ - $display.= "\n"; - $display.= " "; - $display.= "\n"; - $info= "\"\" ".$ui->dn." "; - } else { - $info= "\"\" ".$ui->dn." "; - - $info.= "\"\"".msgPool::clickEditToChange(); - $display.= "\n"; - $display.= "\n"; - } - $display.="
"; - - /* Page header*/ - $display= print_header(get_template_path($connectivity->plIcon), - _("Connectivity"), $info).$display; - -} - -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?>