} if ($info['additional'] != '') { $fields = explode(',', $info['additional']); foreach ($fields as $field) { if ($field == '') { continue; } if ($_POST["enth_{$field}"] == '' && !isset($_POST['enth_' . $field . '_delete'])) { $data[$field] = $member[$field]; } else { $data[$field] = clean($_POST["enth_{$field}"]); } } } // do actual update! $success = edit_member_info($listing, clean($_POST['enth_email']), $data, 'hold'); if ($success) { // check if hold and send email if ($info['holdupdate'] == 1 && $info['notifynew'] == 1) { $subject = $info['subject']; $listingtype = $info['listingtype']; $listingurl = $info['url']; $notify_subject = "{$subject} - Update member!"; $notify_message = "Someone has updated his/her information at " . "{$subject} {$listingtype} ({$listingurl}). Relevant information " . "is below:\r\n\r\n" . "Name: " . $data['name'] . "\r\n" . "Email: " . $data['email_new'] . "\r\n" . "Country: " . $data['country'] . "\r\n" . "URL: " . $data['url'] . "\r\n"; $fields = explode(',', $info['additional']); foreach ($fields as $field) { if ($field != '') { @($notify_message .= ucwords(str_replace('_', ' ', $field)) . ': ' . $data[$field] . "\r\n"); } } $notify_message .= "\r\nTo add this member, go to " . str_replace(get_setting('root_path_absolute'), get_setting('root_path_web'), get_setting('installation_path')) . "members.php\r\n";
echo '<p class="success">Finished rejecting selected members.</p>'; } } } $listing = ''; // free up memory unset($info, $subject, $headers, $success, $body); } /*______________________________________________________________________EDIT_*/ if ($action == 'edit') { $info = get_listing_info($listing); $member = get_member_info($listing, $_REQUEST['email']); $show_default = false; $show_edit_form = true; if (isset($_POST['done'])) { $success = edit_member_info($listing, $_REQUEST['email'], $_POST); if ($success) { echo '<p class="success">Successfully edited the information of ' . 'the member with email address <i>' . $_REQUEST['email'] . '</i> in the <i>' . $info['subject'] . ' ' . $info['listingtype'] . '</i>.</p>'; $show_edit_form = false; $show_default = true; // if index "approved" is present, the page is from the pending mem // unset $listing if (isset($_REQUEST['approved'])) { $listing = ''; } } } if ($show_edit_form) { $shade = false; ?> <p>You can edit the member's information using the form below, where the