From ce5079b3c1f7af5e1a98240b5c3f0300672382f9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 19 Mar 2019 15:45:36 -0700 Subject: [PATCH] More cleanup --- e107_admin/users.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/e107_admin/users.php b/e107_admin/users.php index 22794c1f2..be87a4e58 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -2170,6 +2170,8 @@ class users_admin_ui extends e_admin_ui // 'clearemailbounce' - delete email address for any user whose emails bounced // 'delchecked' - delete the emails whose comma-separated IDs are in $bounce_arr // 'delall' - delete all bounced emails + + /* function check_bounces($bounce_act = 'first_check',$bounce_arr = '') { ### old Trigger code for bounce check @@ -2262,7 +2264,7 @@ class users_admin_ui extends e_admin_ui $tot = $obj->getTotalMails(); $found = false; $DEL = ($pref['mail_bounce_delete']) ? true : false; - $text = "
+ $text = "
\n"; $identifier = deftrue('MAIL_IDENTIFIER', 'X-e107-id'); @@ -2351,7 +2353,7 @@ class users_admin_ui extends e_admin_ui $ed = '0'; $this->show_message(str_replace(array('[w]','[x]','[y]','[z]'),array($tot,$del_count,$ed,$found),USRLAN_155).$text); } - + */ // ------- FIXME Prune Users move to cron -------------- // if (isset ($_POST['prune'])) // { @@ -2439,7 +2441,9 @@ class users_admin_form_ui extends e_admin_form_ui // e107::getUserExt()->user_extended_edit // return 'hello'; $field = $att['field']; - $extData = $this->getController()->getExtended(); + /** @var users_admin_ui $controller */ + $controller = $this->getController(); + $extData = -$controller->getExtended(); $extData[$field]['user_extended_struct_required'] = 0; return e107::getUserExt()->user_extended_edit($extData[$field],$curval); @@ -2577,7 +2581,7 @@ class users_admin_form_ui extends e_admin_form_ui }*/ - + /* function user_status($curval,$mode) { @@ -2617,7 +2621,8 @@ class users_admin_form_ui extends e_admin_form_ui } - + */ + //TODO Reduce to simple edit/delete buttons only Other options included on edit page or available via inline or batch editing. function options($val, $mode) // old drop-down options. { @@ -2942,7 +2947,7 @@ class users_admin_form_ui extends e_admin_form_ui if($attributes['mode'] == 'read') { - parse_str(str_replace('&', '&', e_QUERY), $query); //FIXME - FIX THIS + parse_str(str_replace('&', '&', e_QUERY), $query); $query['action'] = 'edit'; $query['id'] = $id; $query = http_build_query($query, null, '&'); @@ -2954,7 +2959,7 @@ class users_admin_form_ui extends e_admin_form_ui if($special == 0) { - $text .= $this->submit_image('menu_delete['.$id.']', $id, 'delete', LAN_DELETE.' [ ID: '.$id.' ]', array('class' => 'action delete btn btn-default'.$delcls)); + $text .= $this->submit_image('menu_delete['.$id.']', $id, 'delete', LAN_DELETE.' [ ID: '.$id.' ]', array('class' => 'action delete btn btn-default')); } return $text;
#e107-idemailSubjectBounce