- Fixed FS#2968 - linux user and group deletion order is wrong when a client gets deleted.
| | |
| | | } |
| | | |
| | | $app->tpl->setVar('id',$this->id); |
| | | $app->tpl->setVar('number_records',$number); |
| | | $app->tpl->setLoop('records', $table_list); |
| | | |
| | | //* load language file |
| | |
| | | $wb['delete_explanation'] = 'Diese Aktion wird folgende Anzahl an Datensätzen des Kunden löschen'; |
| | | $wb['btn_save_txt'] = 'Kunden löschen'; |
| | | $wb['btn_cancel_txt'] = 'Abbrechen, ohne den Kunden zu löschen'; |
| | | $wb["confirm_client_delete_txt"] = 'Sind Sie sicher, daß Sie den Kunden löschen möchten?'; |
| | | ?> |
| | |
| | | $wb["delete_explanation"] = 'This action will delete the following number of records associated with this client'; |
| | | $wb["btn_save_txt"] = 'Delete the client'; |
| | | $wb["btn_cancel_txt"] = 'Cancel without deleting the client'; |
| | | $wb["confirm_client_delete_txt"] = 'Are you sure you want to delete this client?'; |
| | | ?> |
| | |
| | | <div class="pnl_formsarea"> |
| | | |
| | | <div id="OKMsg"> |
| | | <tmpl_if name='number_records'> |
| | | <tmpl_var name="delete_explanation">:<br /><br /> |
| | | <tmpl_loop name="records"> |
| | | <tmpl_var name="table">, |
| | | </tmpl_loop> |
| | | </tmpl_else> |
| | | <tmpl_var name="confirm_client_delete_txt"> |
| | | </tmpl_if> |
| | | </div> |
| | | |
| | | <input type="checkbox" name="confirm" value="yes" /> <b><tmpl_var name="confirm_action_txt"></b> |
| | |
| | | $app->log('Removed client directory: '.$client_dir,LOGLEVEL_DEBUG); |
| | | } |
| | | |
| | | if($app->system->is_group('client'.$client_id)){ |
| | | $this->_exec('groupdel client'.$client_id); |
| | | $app->log('Removed group client'.$client_id,LOGLEVEL_DEBUG); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | $app->log('Removed client directory: '.$client_dir,LOGLEVEL_DEBUG); |
| | | } |
| | | |
| | | if($app->system->is_group('client'.$client_id)){ |
| | | $this->_exec('groupdel client'.$client_id); |
| | | $app->log('Removed group client'.$client_id,LOGLEVEL_DEBUG); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |