[2] | 1 | <?php |
---|
| 2 | /**********************************************************************************\ |
---|
| 3 | * Expresso Administração * |
---|
| 4 | * by Joao Alfredo Knopik Junior (joao.alfredo@gmail.com, jakjr@celepar.pr.gov.br) * |
---|
| 5 | * --------------------------------------------------------------------------------* |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**********************************************************************************/ |
---|
| 11 | |
---|
| 12 | include_once('class.ldap_functions.inc.php'); |
---|
| 13 | include_once('class.db_functions.inc.php'); |
---|
| 14 | include_once('class.imap_functions.inc.php'); |
---|
| 15 | include_once('class.functions.inc.php'); |
---|
| 16 | |
---|
| 17 | class maillist |
---|
| 18 | { |
---|
| 19 | var $ldap_functions; |
---|
| 20 | var $db_functions; |
---|
| 21 | var $imap_functions; |
---|
| 22 | var $functions; |
---|
| 23 | var $current_config; |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | function maillist() |
---|
| 27 | { |
---|
| 28 | $this->ldap_functions = new ldap_functions; |
---|
| 29 | $this->db_functions = new db_functions; |
---|
| 30 | $this->imap_functions = new imap_functions; |
---|
| 31 | $this->functions = new functions; |
---|
| 32 | $this->current_config = $_SESSION['phpgw_info']['expresso']['expressoAdmin']; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | function validate_fields($params) |
---|
| 36 | { |
---|
| 37 | return $this->ldap_functions->validate_fields_maillist($params); |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | function create($params) |
---|
| 41 | { |
---|
| 42 | // Verifica o acesso do gerente |
---|
| 43 | if (!$this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'add_maillists')) |
---|
| 44 | { |
---|
| 45 | $return['status'] = false; |
---|
| 46 | $return['msg'] = 'Você não tem acesso para adicionar listas de email.'; |
---|
| 47 | return $return; |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | $return['status'] = true; |
---|
| 51 | |
---|
[180] | 52 | //Retira os mailForwardingAddress duplicados, se existir algum. |
---|
[2] | 53 | $array_tmp = array(); |
---|
[180] | 54 | $array_tmp = array_unique($params['mailForwardingAddress']); |
---|
| 55 | $params['mailForwardingAddress'] = $array_tmp; |
---|
[2] | 56 | |
---|
[64] | 57 | // Leio o ID a ser usado na criação do objecto. |
---|
| 58 | $next_id = ($this->db_functions->get_next_id('accounts')); |
---|
| 59 | if ((!is_numeric($next_id['id'])) || (!$next_id['status'])) |
---|
| 60 | { |
---|
| 61 | $return['status'] = false; |
---|
| 62 | $return['msg'] = "Problemas obtendo ID do usuário.\n" . $id['msg']; |
---|
| 63 | return $return; |
---|
| 64 | } |
---|
| 65 | else |
---|
| 66 | { |
---|
| 67 | $id = $next_id['id']; |
---|
| 68 | } |
---|
[2] | 69 | |
---|
| 70 | // Cria array para incluir no LDAP |
---|
| 71 | $dn = 'uid=' . $params['uid'] . ',' . $params['context']; |
---|
| 72 | |
---|
| 73 | $maillist_info = array(); |
---|
| 74 | $maillist_info['uid'] = $params['uid']; |
---|
| 75 | $maillist_info['givenName'] = 'MailList'; |
---|
| 76 | $maillist_info['sn'] = $params['uid']; |
---|
| 77 | $maillist_info['cn'] = $params['cn']; |
---|
| 78 | |
---|
| 79 | $maillist_info['homeDirectory'] = '/home/false'; |
---|
| 80 | $maillist_info['loginShell'] = '/bin/false'; |
---|
| 81 | $maillist_info['mail'] = $params['mail']; |
---|
| 82 | $maillist_info['objectClass'][0] = 'posixAccount'; |
---|
| 83 | $maillist_info['objectClass'][1] = 'inetOrgPerson'; |
---|
| 84 | $maillist_info['objectClass'][2] = 'shadowAccount'; |
---|
| 85 | $maillist_info['objectClass'][3] = 'qmailuser'; |
---|
| 86 | $maillist_info['objectClass'][4] = 'phpgwAccount'; |
---|
| 87 | $maillist_info['objectClass'][5] = 'top'; |
---|
| 88 | $maillist_info['objectClass'][6] = 'person'; |
---|
| 89 | $maillist_info['objectClass'][7] = 'organizationalPerson'; |
---|
| 90 | $maillist_info['phpgwAccountExpires'] = '-1'; |
---|
| 91 | $maillist_info['phpgwAccountType'] = 'l'; |
---|
| 92 | $maillist_info['uidnumber'] = $id; |
---|
| 93 | $maillist_info['gidnumber'] = '0'; |
---|
| 94 | $maillist_info['userPassword'] = ''; |
---|
| 95 | $maillist_info['deliveryMode'] = 'forwardOnly'; |
---|
| 96 | |
---|
| 97 | if ($params['accountStatus'] == 'on') |
---|
| 98 | $maillist_info['accountStatus'] = 'active'; |
---|
| 99 | |
---|
| 100 | if ($params['phpgwAccountVisible'] == 'on') |
---|
| 101 | $maillist_info['phpgwAccountVisible'] = '-1'; |
---|
[208] | 102 | |
---|
[180] | 103 | $maillist_info['mailForwardingAddress'] = $params['mailForwardingAddress']; |
---|
| 104 | |
---|
[438] | 105 | if (!empty($params['description'])) |
---|
| 106 | $maillist_info['description'] = utf8_encode($params['description']); |
---|
| 107 | |
---|
[2] | 108 | $result = $this->ldap_functions->ldap_add_entry($dn, $maillist_info); |
---|
| 109 | if (!$result['status']) |
---|
| 110 | { |
---|
| 111 | $return['status'] = false; |
---|
| 112 | $return['msg'] .= $result['msg']; |
---|
| 113 | } |
---|
| 114 | |
---|
[180] | 115 | /* log */ |
---|
[2] | 116 | if ($return['status'] == true) |
---|
| 117 | { |
---|
[414] | 118 | $this->db_functions->write_log('created email list',$dn); |
---|
[180] | 119 | |
---|
| 120 | foreach($params['mailForwardingAddress'] as $index=>$mail) |
---|
| 121 | { |
---|
[414] | 122 | $this->db_functions->write_log("added user on email list creation", $params['cn'].':' . $mail); |
---|
[180] | 123 | } |
---|
[2] | 124 | } |
---|
| 125 | |
---|
| 126 | return $return; |
---|
| 127 | } |
---|
| 128 | |
---|
| 129 | function save($new_values) |
---|
| 130 | { |
---|
| 131 | // Verifica o acesso do gerente |
---|
| 132 | if (!$this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_maillists')) |
---|
| 133 | { |
---|
| 134 | $return['status'] = false; |
---|
[414] | 135 | $return['msg'] = lang('You do not have access to edit email lists') . '.'; |
---|
[2] | 136 | return $return; |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | $return['status'] = true; |
---|
[180] | 140 | |
---|
[2] | 141 | $old_values = $this->get_info($new_values['uidnumber'], $new_values['manager_context']); |
---|
| 142 | $diff = array_diff($new_values, $old_values); |
---|
| 143 | |
---|
| 144 | $dn = 'uid=' . $old_values['uid'] . ',' . $old_values['context']; |
---|
| 145 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 146 | // RENAME |
---|
| 147 | if ($diff['context'] || $diff['uid']) |
---|
| 148 | { |
---|
[355] | 149 | if ( (strcasecmp($old_values['uid'], $new_values['uid']) != 0) || (strcasecmp($old_values['context'], $new_values['context']) != 0) ) |
---|
[2] | 150 | { |
---|
[355] | 151 | $newrdn = 'uid=' . $new_values['uid']; |
---|
| 152 | $newparent = $new_values['context']; |
---|
| 153 | $result = $this->ldap_functions->change_user_context($dn, $newrdn, $newparent); |
---|
| 154 | if (!$result['status']) |
---|
| 155 | { |
---|
| 156 | $return['status'] = false; |
---|
| 157 | $return['msg'] .= $result['msg']; |
---|
| 158 | } |
---|
| 159 | else |
---|
| 160 | { |
---|
| 161 | $dn = $newrdn . ',' . $newparent; |
---|
| 162 | $old_dn = $old_values['uid']; |
---|
[414] | 163 | $this->db_functions->write_log("renamed list login",$old_dn . ' -> ' . $dn); |
---|
[355] | 164 | } |
---|
[2] | 165 | } |
---|
| 166 | } |
---|
| 167 | |
---|
| 168 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
[15] | 169 | // REPLACE MAIL || CN || SN |
---|
[2] | 170 | if ($new_values['mail'] != $old_values['mail']) |
---|
| 171 | { |
---|
| 172 | $ldap_mod_replace['mail'] = $new_values['mail']; |
---|
[414] | 173 | $this->db_functions->write_log('modified list email', $dn . ': ' . $old_values['mail'] . '->' . $new_values['mail']); |
---|
[2] | 174 | } |
---|
| 175 | if ($new_values['cn'] != $old_values['cn']) |
---|
| 176 | { |
---|
| 177 | $ldap_mod_replace['cn'] = $new_values['cn']; |
---|
[414] | 178 | $this->db_functions->write_log('modified list name', $old_values['cn'] . '->' . $new_values['cn']); |
---|
[2] | 179 | } |
---|
[15] | 180 | if ($diff['uid']) |
---|
| 181 | { |
---|
| 182 | $ldap_mod_replace['sn'] = $new_values['uid']; |
---|
| 183 | } |
---|
[2] | 184 | |
---|
[422] | 185 | /* Always replace description */ |
---|
[438] | 186 | if (empty($new_values['description'])) |
---|
| 187 | $ldap_mod_replace['description'] = array(); |
---|
| 188 | else |
---|
| 189 | $ldap_mod_replace['description'] = utf8_encode($new_values['description']); |
---|
| 190 | |
---|
[2] | 191 | if (count($ldap_mod_replace)) |
---|
| 192 | { |
---|
| 193 | $result = $this->ldap_functions->replace_user_attributes($dn, $ldap_mod_replace); |
---|
| 194 | if (!$result['status']) |
---|
| 195 | { |
---|
| 196 | $return['status'] = false; |
---|
| 197 | $return['msg'] .= $result['msg']; |
---|
| 198 | } |
---|
| 199 | } |
---|
| 200 | |
---|
| 201 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 202 | // REMOVE ATTRS |
---|
| 203 | if (($old_values['accountStatus'] == 'active') && ($new_values['accountStatus'] != 'on')) |
---|
| 204 | $ldap_remove['accountStatus'] = array(); |
---|
| 205 | |
---|
| 206 | if (($old_values['phpgwAccountVisible'] == '-1') && ($new_values['phpgwAccountVisible'] != 'on')) |
---|
| 207 | $ldap_remove['phpgwAccountVisible'] = array(); |
---|
| 208 | |
---|
| 209 | if (count($ldap_remove)) |
---|
| 210 | { |
---|
| 211 | $result = $this->ldap_functions->remove_user_attributes($dn, $ldap_remove); |
---|
| 212 | if (!$result['status']) |
---|
| 213 | { |
---|
| 214 | $return['status'] = false; |
---|
| 215 | $return['msg'] .= $result['msg']; |
---|
| 216 | } |
---|
| 217 | } |
---|
| 218 | |
---|
| 219 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 220 | // ADD ATTRS |
---|
| 221 | if (($old_values['accountStatus'] != 'active') && ($new_values['accountStatus'] == 'on')) |
---|
| 222 | $ldap_add['accountStatus'] = 'active'; |
---|
| 223 | |
---|
| 224 | if (($old_values['phpgwAccountVisible'] != '-1') && ($new_values['phpgwAccountVisible'] == 'on')) |
---|
| 225 | $ldap_add['phpgwAccountVisible'] = '-1'; |
---|
| 226 | |
---|
| 227 | if (count($ldap_add)) |
---|
| 228 | { |
---|
| 229 | $result = $this->ldap_functions->add_user_attributes($dn, $ldap_add); |
---|
| 230 | if (!$result['status']) |
---|
| 231 | { |
---|
| 232 | $return['status'] = false; |
---|
| 233 | $return['msg'] .= $result['msg']; |
---|
| 234 | } |
---|
| 235 | } |
---|
| 236 | |
---|
| 237 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 238 | // USERS |
---|
[208] | 239 | /* |
---|
| 240 | echo '<pre>'; |
---|
| 241 | print_r($new_values['mailForwardingAddress']); |
---|
| 242 | */ |
---|
[180] | 243 | if (!$new_values['mailForwardingAddress']) |
---|
| 244 | $new_values['mailForwardingAddress'] = array(); |
---|
| 245 | if (!$old_values['mailForwardingAddress']) |
---|
| 246 | $old_values['mailForwardingAddress'] = array(); |
---|
[2] | 247 | |
---|
[180] | 248 | $add_users = array_diff($new_values['mailForwardingAddress'], $old_values['mailForwardingAddress']); |
---|
| 249 | $remove_users = array_diff($old_values['mailForwardingAddress'], $new_values['mailForwardingAddress']); |
---|
[2] | 250 | |
---|
| 251 | if (count($add_users)>0) |
---|
| 252 | { |
---|
[180] | 253 | sort($add_users); |
---|
[208] | 254 | $result = $this->ldap_functions->add_user2maillist($new_values['uid'], $add_users); |
---|
[180] | 255 | |
---|
| 256 | /* log */ |
---|
| 257 | if (!$result['status']) |
---|
[2] | 258 | { |
---|
[180] | 259 | $return['status'] = false; |
---|
| 260 | $return['msg'] .= $result['msg']; |
---|
| 261 | } |
---|
| 262 | else |
---|
| 263 | { |
---|
[208] | 264 | foreach($add_users as $index=>$mail) |
---|
[86] | 265 | { |
---|
[414] | 266 | $this->db_functions->write_log("added user to list", "$dn: $mail"); |
---|
[86] | 267 | } |
---|
[2] | 268 | } |
---|
| 269 | } |
---|
[180] | 270 | |
---|
[2] | 271 | if (count($remove_users)>0) |
---|
| 272 | { |
---|
[180] | 273 | sort($remove_users); |
---|
[208] | 274 | $result = $this->ldap_functions->remove_user2maillist($new_values['uid'], $remove_users); |
---|
[180] | 275 | |
---|
| 276 | /* log */ |
---|
| 277 | if (!$result['status']) |
---|
[2] | 278 | { |
---|
[180] | 279 | $return['status'] = false; |
---|
| 280 | $return['msg'] .= $result['msg']; |
---|
| 281 | } |
---|
| 282 | else |
---|
| 283 | { |
---|
| 284 | foreach($remove_users as $index=>$mail) |
---|
[86] | 285 | { |
---|
[414] | 286 | $this->db_functions->write_log("removed user from list", "$dn: $mail"); |
---|
[86] | 287 | } |
---|
[2] | 288 | } |
---|
| 289 | } |
---|
| 290 | |
---|
| 291 | return $return; |
---|
| 292 | } |
---|
| 293 | |
---|
[23] | 294 | function save_scl($new_values) |
---|
| 295 | { |
---|
| 296 | // Verifica o acesso do gerente |
---|
[283] | 297 | if (!$this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'edit_scl_email_lists')) |
---|
[23] | 298 | { |
---|
| 299 | $return['status'] = false; |
---|
[414] | 300 | $return['msg'] = lang('You do not have access to edit email lists SCL') . '.'; |
---|
[23] | 301 | return $return; |
---|
| 302 | } |
---|
| 303 | |
---|
| 304 | $return['status'] = true; |
---|
| 305 | |
---|
| 306 | //Retira os uids duplicados se existir |
---|
| 307 | $array_tmp = array(); |
---|
[208] | 308 | $array_tmp = @array_unique($new_values['members']); |
---|
[23] | 309 | $new_values['members'] = $array_tmp; |
---|
| 310 | |
---|
| 311 | $old_values = $this->get_scl_info($new_values['uidnumber'], $new_values['manager_context']); |
---|
[208] | 312 | |
---|
[23] | 313 | $diff = array_diff($new_values, $old_values); |
---|
| 314 | $dn = $old_values['dn']; |
---|
| 315 | |
---|
| 316 | //echo '<pre>'; |
---|
| 317 | //print_r($new_values['participantCanSendMail']); |
---|
| 318 | //print_r($old_values['participantCanSendMail']); |
---|
| 319 | |
---|
| 320 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 321 | // ADD ATTRS |
---|
| 322 | if (($new_values['participantCanSendMail'] == 'on') && ($old_values['participantCanSendMail'] == '')) |
---|
| 323 | { |
---|
| 324 | $ldap_add['participantCanSendMail'] = "TRUE"; |
---|
[414] | 325 | $this->db_functions->write_log("turned on participantCanSendMail",$new_values['mail']); |
---|
[23] | 326 | } |
---|
| 327 | if (($new_values['accountRestrictive'] == 'on') && ($old_values['accountRestrictive'] == '')) |
---|
| 328 | { |
---|
| 329 | $ldap_add['accountRestrictive'] = "mailListRestriction"; |
---|
| 330 | $ldap_add['accountDeliveryMessage'] = 'OK'; |
---|
[414] | 331 | $this->db_functions->write_log("turned on mailListRestriction", $new_values['mail']); |
---|
[23] | 332 | } |
---|
| 333 | if (count($ldap_add)) |
---|
| 334 | { |
---|
| 335 | $result = $this->ldap_functions->add_user_attributes($dn, $ldap_add); |
---|
| 336 | if (!$result['status']) |
---|
| 337 | { |
---|
| 338 | $return['status'] = false; |
---|
| 339 | $return['msg'] .= $result['msg']; |
---|
| 340 | } |
---|
| 341 | } |
---|
| 342 | |
---|
| 343 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 344 | // REMOVE ATTRS |
---|
| 345 | if (($new_values['participantCanSendMail'] != 'on') && ($old_values['participantCanSendMail'] == 'TRUE')) |
---|
| 346 | { |
---|
| 347 | $ldap_remove['participantCanSendMail'] = array(); |
---|
[414] | 348 | $this->db_functions->write_log("turned off participantCanSendMail",$new_values['mail']); |
---|
[23] | 349 | } |
---|
| 350 | if (($new_values['accountRestrictive'] != 'on') && ($old_values['accountRestrictive'] == 'mailListRestriction')) |
---|
| 351 | { |
---|
| 352 | $ldap_remove['accountRestrictive'] = array(); |
---|
| 353 | $ldap_remove['accountDeliveryMessage'] = array(); |
---|
[414] | 354 | $this->db_functions->write_log("turned off mailListRestriction",$new_values['mail']); |
---|
[23] | 355 | } |
---|
| 356 | if (count($ldap_remove)) |
---|
| 357 | { |
---|
| 358 | $result = $this->ldap_functions->remove_user_attributes($dn, $ldap_remove); |
---|
| 359 | if (!$result['status']) |
---|
| 360 | { |
---|
| 361 | $return['status'] = false; |
---|
| 362 | $return['msg'] .= $result['msg']; |
---|
| 363 | } |
---|
| 364 | } |
---|
| 365 | |
---|
| 366 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
| 367 | // USERS |
---|
| 368 | |
---|
| 369 | if (!$new_values['members']) |
---|
| 370 | $new_values['members'] = array(); |
---|
| 371 | if (!$old_values['members']) |
---|
| 372 | $old_values['members'] = array(); |
---|
| 373 | |
---|
| 374 | $add_users = array_diff($new_values['members'], $old_values['members']); |
---|
| 375 | $remove_users = array_diff($old_values['members'], $new_values['members']); |
---|
| 376 | |
---|
| 377 | if (count($add_users)>0) |
---|
| 378 | { |
---|
[208] | 379 | sort($add_users); |
---|
| 380 | $result = $this->ldap_functions->add_user2maillist_scl($dn, $add_users); |
---|
| 381 | |
---|
| 382 | /* log */ |
---|
[23] | 383 | if (!$result['status']) |
---|
| 384 | { |
---|
| 385 | $return['status'] = false; |
---|
| 386 | $return['msg'] .= $result['msg']; |
---|
| 387 | } |
---|
[208] | 388 | else |
---|
[23] | 389 | { |
---|
[208] | 390 | foreach($add_users as $index=>$mail) |
---|
[86] | 391 | { |
---|
[414] | 392 | $this->db_functions->write_log("added user to SCL","$dn: $mail",'','',''); |
---|
[86] | 393 | } |
---|
[23] | 394 | } |
---|
[208] | 395 | } |
---|
| 396 | |
---|
| 397 | if (count($remove_users)>0) |
---|
| 398 | { |
---|
| 399 | sort($remove_users); |
---|
| 400 | $result = $this->ldap_functions->remove_user2maillist_scl($dn, $remove_users); |
---|
| 401 | |
---|
| 402 | /* log */ |
---|
[23] | 403 | if (!$result['status']) |
---|
| 404 | { |
---|
| 405 | $return['status'] = false; |
---|
| 406 | $return['msg'] .= $result['msg']; |
---|
| 407 | } |
---|
[208] | 408 | else |
---|
| 409 | { |
---|
| 410 | foreach($add_users as $index=>$mail) |
---|
| 411 | { |
---|
[414] | 412 | $this->db_functions->write_log("removed user from SCL","$dn: $mail",'','',''); |
---|
[208] | 413 | } |
---|
| 414 | } |
---|
[23] | 415 | } |
---|
| 416 | |
---|
| 417 | return $return; |
---|
| 418 | } |
---|
[2] | 419 | |
---|
[64] | 420 | function get_info($uidnumber) |
---|
[2] | 421 | { |
---|
[64] | 422 | $maillist_info_ldap = $this->ldap_functions->get_maillist_info($uidnumber); |
---|
[2] | 423 | return $maillist_info_ldap; |
---|
| 424 | } |
---|
[23] | 425 | |
---|
[64] | 426 | function get_scl_info($uidnumber) |
---|
[23] | 427 | { |
---|
[64] | 428 | $maillist_info_ldap = $this->ldap_functions->get_maillist_scl_info($uidnumber); |
---|
[23] | 429 | return $maillist_info_ldap; |
---|
| 430 | } |
---|
[2] | 431 | |
---|
| 432 | function delete($params) |
---|
| 433 | { |
---|
| 434 | // Verifica o acesso do gerente |
---|
| 435 | if (!$this->functions->check_acl($_SESSION['phpgw_session']['session_lid'], 'delete_maillists')) |
---|
| 436 | { |
---|
| 437 | $return['status'] = false; |
---|
[414] | 438 | $return['msg'] = lang('You do not have access to delete email lists') . '.'; |
---|
[2] | 439 | return $return; |
---|
| 440 | } |
---|
| 441 | |
---|
| 442 | $return['status'] = true; |
---|
| 443 | |
---|
| 444 | $uidnumber = $params['uidnumber']; |
---|
| 445 | $uid = $this->ldap_functions->uidnumber2uid($uidnumber); |
---|
[180] | 446 | $mail = $this->ldap_functions->uidnumber2mail($uidnumber); |
---|
[2] | 447 | |
---|
| 448 | //LDAP |
---|
[180] | 449 | $result_ldap = $this->ldap_functions->delete_maillist($uidnumber, $mail); |
---|
[2] | 450 | if (!$result_ldap['status']) |
---|
| 451 | { |
---|
| 452 | $return['status'] = false; |
---|
| 453 | $return['msg'] .= $result_ldap['msg']; |
---|
| 454 | } |
---|
| 455 | |
---|
| 456 | if ($return['status'] == true) |
---|
| 457 | { |
---|
[414] | 458 | $this->db_functions->write_log('deleted email list',$uid); |
---|
[2] | 459 | } |
---|
| 460 | |
---|
| 461 | return $return; |
---|
| 462 | } |
---|
| 463 | } |
---|
| 464 | ?> |
---|