Esempio n. 1
0
                                        $new_user_perms = (double) $new_user_perms | $t_moderator | $t_post_attach;
                                        $new_user_perms = (double) $new_user_perms | $t_post_html | $t_post_sig | $t_post_approval;
                                        if ($new_user_perms != $folder_array[$fid]['STATUS']) {
                                            if (!perm_update_user_folder_perms($uid, $fid, $new_user_perms)) {
                                                $error_msg_array[] = gettext("Failed to update folder access settings");
                                                $valid = false;
                                            }
                                        }
                                    }
                                    if ($valid) {
                                        admin_add_log_entry(USER_FOLDER_PERMS_CHANGED, array($user['LOGON']));
                                    }
                                }
                                // Confirmation email
                                if (isset($_POST['t_confirm_email']) && $_POST['t_confirm_email'] == 'resend') {
                                    if (!email_send_user_confirmation($uid)) {
                                        $error_msg_array[] = gettext("Failed to resend Email confirmation to user.");
                                        $valid = false;
                                    }
                                }
                            }
                            if ($valid) {
                                $success_html = gettext("Updates saved successfully");
                            }
                        }
                    }
                }
            }
        }
    }
}
Esempio n. 2
0
 forum_update_last_visit($new_uid);
 // Update the visitor log
 session::update_visitor_log($new_uid, true);
 // Check to see if the user is going somewhere after they have registered.
 $final_uri = isset($final_uri) ? rawurlencode($final_uri) : '';
 // If User Confirmation is enabled send the forum owners an email.
 if (forum_get_setting('require_user_approval', 'Y')) {
     admin_send_user_approval_notification($new_uid);
 }
 // If New User Notification is enabled send the forum owners an email.
 if (forum_get_setting('send_new_user_email', 'Y')) {
     admin_send_new_user_notification($new_uid);
 }
 // Display final success / confirmation page.
 if (forum_get_setting('require_email_confirmation', 'Y')) {
     if (email_send_user_confirmation($new_uid)) {
         perm_user_apply_email_confirmation($new_uid);
         light_html_draw_top(array('title' => gettext("User Registration")));
         light_navigation_bar();
         light_html_display_msg(gettext("Successfully created user account"), gettext("Your user account has been created but before you can start posting you must confirm your email address. Please check your email for a link that will allow you to confirm your address."), 'index.php', 'get', array('continue' => gettext("Continue")), array('final_uri' => $final_uri));
         light_html_draw_bottom();
         exit;
     } else {
         light_html_draw_top(array('title' => gettext("User Registration")));
         light_navigation_bar();
         light_html_display_msg(gettext("Successfully created user account"), gettext("Your user account has been created but the required confirmation email was not sent. Please contact the forum owner to rectify this. In this meantime please click the continue button to login."), 'index.php', 'get', array('continue' => gettext("Continue")), array('final_uri' => $final_uri));
         light_html_draw_bottom();
         exit;
     }
 } else {
     light_html_draw_top(array('title' => gettext("User Registration")));