Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gwaldecker

    (@gwaldecker)

    Following the thought in your post, I downloaded the plugins again from their source and uploaded them again to my plugins folder, thus replacing the ones that were there. This solved the problem. Thanks!

    Thread Starter gwaldecker

    (@gwaldecker)

    No, I’m not sure. How can I be sure? I opened some of them in TextWrangler, and uploaded them using either Fetch or Cyberduck. But maybe I’m missing something. Thanks.

    Thanks for this great idea. Being new to this, I’m not sure how much of the code in wp-register.php to replace. It sounds like you mean all of it. This is the first part of what my wp-register.php looks like:

    <?php
    require(‘./wp-config.php’);

    $wpvarstoreset = array(‘action’);
    for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    $wpvar = $wpvarstoreset[$i];
    if (!isset($$wpvar)) {
    if (empty($_POST[“$wpvar”])) {
    if (empty($_GET[“$wpvar”])) {
    $$wpvar = ”;
    } else {
    $$wpvar = $_GET[“$wpvar”];
    }
    } else {
    $$wpvar = $_POST[“$wpvar”];
    }
    }
    }

    if ( !get_settings(‘users_can_register’) )
    $action = ‘disabled’;

    header( ‘Content-Type: ‘ . get_bloginfo(‘html_type’) . ‘; charset=’ . get_bloginfo(‘charset’) );

    switch($action) {

    case ‘register’:

    $user_login = $_POST[‘user_login’];
    $user_email = $_POST[‘user_email’];

    /* checking that username has been typed */
    if ($user_login == ”) {
    die (__(‘ERROR: Please enter a username.’));
    }

    /* checking e-mail address */
    if ($user_email == ”) {
    die (__(‘ERROR: Please type your e-mail address.’));
    } else if (!is_email($user_email)) {
    die (__(‘ERROR: The email address isn’t correct.’));
    }

    /* checking the username isn’t already used by another user */
    $result = $wpdb->get_results(“SELECT user_login FROM $wpdb->users WHERE user_login = ‘$user_login'”);
    if (count($result) >= 1) {
    die (__(‘ERROR: This username is already registered, please choose another one.’));
    }

    It continues…. So how much of this do I replace? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)