Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: No sale texto en imagen verificacion  (Visto 538 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline sonytfm Posteado: March 03, 2021, 04:27:16 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
alguien que me pueda dar una mano con este error por favor https://prnt.sc/10cdj8m

Gracias:


Offline ZabiinoOo #1 Posteado: March 03, 2021, 04:50:15 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.314
  • Gracias recibida: 126230
  • pe



Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Offline sonytfm #2 Posteado: March 03, 2021, 04:53:47 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar

Offline sonytfm #3 Posteado: March 03, 2021, 04:54:11 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
ahora el problema es que puse por el reCAPTCHA ya que la imagen no salia el texto y me sale esto https://prnt.sc/10cej5o


Offline sonytfm #4 Posteado: March 03, 2021, 04:56:55 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
https://prnt.sc/10cel7u sale asi luego cuando quiero registrar me da el error de que el codigo ingresado es incorrecto


Offline ZabiinoOo #5 Posteado: March 03, 2021, 04:59:52 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.314
  • Gracias recibida: 126230
  • pe
mu core 2.2.0 template https://tuservermu.com.ve/index.php?topic=29260.0

lo que veo es un problema del modulo de registro y su classname para el human verification, me imagino en el registro original de la web te muestra correctamente? si puedes subir ambos register.php el original y el que te trae ese template




Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Offline sonytfm #6 Posteado: March 03, 2021, 05:01:29 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
los subo a mediafire a los archivos, o solo copio las lineas y las pego aca?


Offline sonytfm #7 Posteado: March 03, 2021, 05:05:05 PM | Modificado: March 03, 2021, 09:35:18 PM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
Code: [Select]
<?

$get_config = simplexml_load_file('engine/config_mods/register_settings.xml');
if ($get_config->active == '0') {
    echo msg('0', text_sorry_feature_disabled);
} else {
    $register_method = $get_config->method;
   
    $verification_config = simplexml_load_file('engine/config_mods/human_verification.xml');
    if ($verification_config->human_verification_type == 'reCAPTCHA') {
        $is_reCAPTCHA = '1';
        require_once('engine/recaptchalib.php');
        $privatekey = $verification_config->reCAPTCHA_private_key;
        $publickey = $verification_config->reCAPTCHA_public_key;

// respuesta vacía
$response = null;
 
// comprueba la clave secreta
$reCaptcha = new ReCaptcha($privatekey);

if ($_POST["g-recaptcha-response"]) {
$response = $reCaptcha->verifyResponse(
        $_SERVER["REMOTE_ADDR"],
        $_POST["g-recaptcha-response"]
    );
}

    }
   
   
   
    echo '
<script type="text/javascript">   
load_image= new Image(16,16);
load_image.src="template/' . $core['config']['template'] . '/images/load.gif";

function Ajax(div,id, page, form, append, data){

    document.getElementById(div).innerHTML = \'<img src="template/' . $core['config']['template'] . '/images/load.gif" width="16" height="16"> Please wait...\';
    var veri = \'\';
    if( typeof(data) == "string")
        veri = data;
    else
        veri = $(form).serialize();
    $.ajax({
   type: "POST",
   url: page,
   data: veri,
   error: function(html)
   {
           alert("falied");
   },
   success: function(html)
   {
        if( typeof(append) == "boolean")
            $(id).append(html);
        else
            $(id).html(html);
   }
  });
  return false;
}
</script>

<script type="text/javascript">
function cs_ua_a(){
    if (document.sign_up_frm.userid.value.length < 4){
        alert(\'User ID, 4-10 characters\n(letters and numbers only)\');
    }else{
        uss = document.getElementById(\'userid\').value;
        url_p = "get.php?aA="+uss;
        Ajax(\'c_uss\',\'#c_uss\',url_p, null, \'data=c_uss\');
    }

}

function csm_uam_am(){
    if (document.sign_up_frm.email_address.value.length < 2){
        alert(\'Please enter an valid mail address \n(e.g: somebody@yahoo.com)\');
    }else{
        uss = document.getElementById(\'email_address\').value;
        url_p = "get.php?aMl="+uss;
        Ajax(\'c_mss\',\'#c_mss\',url_p, null, \'data=c_mss\');
    }

}

function parse_inputs(){
    if (document.sign_up_frm.userid.value.length < 4){
        alert(\'User ID, 4-10 characters\n(letters and numbers only)\');
        return false;
    }
   
    if (document.sign_up_frm.password.value.length < 6){
        alert(\'Password, 6-10 characters\n(letters and numbers only, passwords are case-sensitive.)\');
        return false;
    }
   
    if (document.sign_up_frm.confirm_password.value.length < 6){
        alert(\'Confirm Password, 6-10 characters\n(letters and numbers only, passwords are case-sensitive.)\');
        return false;
    }
    if (document.sign_up_frm.password.value != document.sign_up_frm.confirm_password.value){
        alert(\'Passwords did not match.\');
        return false;
    }
    ';
    if ($get_config->pers_id_active == '1') {
        echo 'if (document.sign_up_frm.pers_id.value.length < ' . $get_config->pers_id_length . '){
        alert(\'Please enter an valid Personal ID number \n(12 digits, numbers only.)\');
        return false;
    }';
    }
   
    echo '
    if (document.sign_up_frm.email_address.value.length < 2){
        alert(\'Please enter an valid mail address \n(e.g: somebody@gmail.com)\');
        return false;
    }
    if (document.sign_up_frm.country.value ==  \'x\'){
        alert(\'Please select country.\');
        return false;
    }
    if ((document.sign_up_frm.gender[0].checked==false)&&(document.sign_up_frm.gender[1].checked==false)){
        alert(\'Please select gender.\');
        return false;
    }
    if (document.sign_up_frm.question.value ==  \'x\'){
        alert(\'Please select question.\');
        return false;
    }
    if (document.sign_up_frm.answer.value.length < 4){
        alert(\'Please enter the answer to your secret question.\n(letters and numbers only)\');
        return false;
    }';
    if ($is_reCAPTCHA != '1') {
        echo '    if (document.sign_up_frm.verify_int.value.length < 6){
        alert(\'Please enter the code from verification image.\');
        return false;
    }';
       
    }
   
   
    echo '
    if ((document.sign_up_frm.terms.checked==false)){
        alert(\'Please read the Terms of Service.\');
        return false;
    }
   
    document.sign_up_frm.submit();
}

</script>';
   
   
    if (isset($_POST['create_account'])) {
        require("engine/validate.php");
        $elems[] = array(
            'name' => 'userid',
            'label' => text_register_error1,
            'type' => 'text',
            'uname' => 'true',
            'required' => true,
            'len_min' => 4,
            'len_max' => 10,
            'cont' => 'alpha'
        );
       
       
        $elems[] = array(
            'name' => 'password',
            'label' => text_register_error2,
            'type' => 'text',
            'required' => true,
            'len_min' => 6,
            'len_max' => 10,
            'cont' => 'alpha'
        );
        $elems[] = array(
            'name' => 'confirm_password',
            'label' => text_register_error3,
            'type' => 'text',
            'required' => true,
            'len_min' => 6,
            'len_max' => 10,
            'cont' => 'alpha',
            'equal' => array(
                'password'
            )
        );
       
        if ($get_config->pers_id_active == '1') {
            $elems[] = array(
                'name' => 'pers_id',
                'label' => str_replace("{pers_id_length}", $get_config->pers_id_length, text_register_error4),
                'type' => 'text',
                'required' => true,
                'len_min' => $get_config->pers_id_length,
                'len_max' => $get_config->pers_id_length,
                'cont' => 'digit'
            );
        }
       
        $elems[] = array(
            'name' => 'email_address',
            'label' => text_register_error5,
            'type' => 'text',
            'required' => true,
            'len_max' => 50,
            'cont' => 'email'
        );
       
        $elems[] = array(
            'name' => 'country',
            'label' => text_register_error6,
            'type' => 'text',
            'required' => true,
            'len_max' => 3,
            'cont' => 'digit'
        );
        $elems[] = array(
            'name' => 'gender',
            'label' => text_register_error7,
            'type' => 'text',
            'required' => true,
            'len_max' => 1,
            'cont' => 'digit'
        );
        $elems[] = array(
            'name' => 'question',
            'label' => text_register_error8,
            'type' => 'text',
            'required' => true,
            'len_max' => 2,
            'cont' => 'digit'
        );
       
        $elems[] = array(
            'name' => 'answer',
            'label' => text_register_error9,
            'type' => 'text',
            'required' => true,
            'len_min' => 4,
            'len_max' => 20,
            'cont' => 'alpha'
        );
        $f       = new FormValidator($elems);
        $err     = $f->validate($_POST);
        if ($err === true) {
            $valid = $f->getValidElems();
            foreach ($valid as $k => $v) {
                if ($valid[$k][0][1] == false) {
                    if (empty($valid[$k][0][2])) {
                        $msg_error = msg('0', $valid[$k][0][2]);
                    } else {
                        $msg_error = msg('0', $valid[$k][0][2]);
                    }
                }
            }
        } else {
            $userid   = safe_input($_POST['userid'], '');
            $password = safe_input($_POST['password'], '');
            $email    = safe_input($_POST['email_address'], '\_\@\.\-');
            $country  = safe_input($_POST['country'], '');
            $gender   = safe_input($_POST['gender'], '');
            $question = safe_input($_POST['question'], '');
            $anaswer  = safe_input($_POST['answer'], '');
            if ($get_config->pers_id_active == '1') {
                $pid = safe_input($_POST['pers_id'], '');
            } else {
                $pid = trim($get_config->pers_id);
            }
           
           
            if ($is_reCAPTCHA == '1') {
                if ($response != null && $response->success) {
                    $bot_check = '0';
                }else{
                $bot_check = '1';
                }
            } else {
                if ($_SESSION['SID_code'] != md5($_POST['verify_int'])) {
                    $bot_check = '1';
                }
            }
           
           
            if ($bot_check == '1') {
                $msg_error = msg('0', text_register_error10);
               
            } else {
                if (check_account($userid) === true) {
                    $msg_error = msg('0', text_register_error11);
                } else {
                    if (check_mail($email) === true) {
                        $msg_error = msg('0', text_register_error12);
                    } else {
                        if ($register_method == '1') {
                            $confirmed       = '1';
                            $blocked         = '0';
                            $activation_need = '0';
                            $activation_id   = md5($userid);
                        } elseif ($register_method == '2') {
                            $confirmed       = '0';
                            $blocked         = '1';
                            $activation_need = '1';
                            $activation_id   = md5($userid);
                        }
                       
                        if ($core['config']['md5'] == '1') {
                            $make_me_acc = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,SecretQuestion,SecretAnswer,Country,Gender,confirmed,activation_id) VALUES (?,[dbo].[fn_md5](?,?),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", array(
                                $userid,
                                $password,
                                $userid,
                                'test',
                                $pid,
                                $blocked,
                                '0',
                                '1',
                                $email,
                                date('m/d/Y'),
                                date('m/d/Y'),
                                '2005-01-03',
                                '2005-01-03',
                                $question,
                                $anaswer,
                                $country,
                                $gender,
                                $confirmed,
                                $activation_id
                            ));
                        } elseif ($core['config']['md5'] == '0') {
                            $make_me_acc  = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,SecretQuestion,SecretAnswer,Country,Gender,Confirmed,activation_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", array(
                                $userid,
                                $password,
                                'test',
                                $pid,
                                $blocked,
                                '0',
                                '1',
                                $email,
                                date('m/d/Y'),
                                date('m/d/Y'),
                                '2005-01-03',
                                '2005-01-03',
                                $question,
                                $anaswer,
                                $country,
                                $gender,
                                $confirmed,
                                $activation_id
                            ));
                            $make_me_acc_ = 1;
                            /*
                            $make_me_acc_ = $core_db2->Execute("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2005','1',1234,?,?,1,'7','6','3','6','6',".date('m/d/Y').",'0' )", array($userid,'test'));
                            */
                        }
                        //Agregando Creditos
                        $core_db2->Execute("INSERT INTO MEMB_CREDITS(memb___id)VALUES(?)",array($userid));
                        $core_db->Execute("INSERT INTO MUCore_AOHCreditos(memb___id,credits,credits2)VALUES(?,?,?)",array($userid,'0','0'));

                        if ($make_me_acc) {
                            if ($activation_need == '0') {
                                $msg_error = msg('1', str_replace("{userid}", $userid, text_register_success1));
                                $complete  = 1;
                            } elseif ($activation_need == '1') {
                                /*
                                require("engine/smtp.php");
                                $smtp_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
                                $mail = new SMTP($smtp_config->smtp_server,$smtp_config->smtp_username,$smtp_config->smtp_password);
                                $header = $mail->make_header($core['config']['master_mail'],$email,'Account Activation for '.$core['config']['websitetitle'].'');
                                $header .= "Content-Type: text/html; charset=\"iso-8859-1\" \r\n";
                                $header .= "Content-Transfer-Encoding: 8bit \r\n";
                                $header .= "MIME-Version: 1.0 \r\n";
                                */
                               
                               
                                $body = str_replace("{user_id}", $userid, mail_register_t1);
                                $body = str_replace("{website_title}", $core['config']['websitetitle'], $body);
                                $body = str_replace("{activation_url}", $core['config']['website_url'] . '/' . ROOT_INDEX . '?' . LOAD_GET_PAGE . '=' . REGISTER_CMS_PAGE . '&activation_id=' . $activation_id, $body);
                                /*
                               
                                $body = 'Dear '.$userid.',<br><br>
                                Thank you for registering at the '.$core['config']['websitetitle'].'. Before we can activate your account one last step must be taken to complete your registration.<br><br>
                                Please note - you must complete this last step to become a registered member. You will only need to visit this URL once to activate your account.<br>
                                <br>
                                To complete your registration, please visit this URL:<br>
                                <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'">'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'</a>
                                <br><br><br>
                                All the best,<br>
                                '.$core['config']['websitetitle'].' Team.';
                                */
                               
                               
                                if ($core['debug'] == '1') {
                                    define('DISPLAY_XPM4_ERRORS', true);
                                } else {
                                    define('DISPLAY_XPM4_ERRORS', false);
                                }
                               
                                $get_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
                               
                                require("engine/mail.php");
                                $m = new MAIL;
                                $m->From($core['config']['master_mail']);
                                $m->AddTo(trim($email));
                                $m->Subject('Contact Us - ' . $subject_set . '');
                                $m->Html($body);
                               
                                if ($get_config->smtp_connection == 'none') {
                                    $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password)) or $smtp_connect_fail = '1';
                                } else {
                                    $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password), trim($get_config->smtp_connection), 10, 'localhost', null, 'plain') or $smtp_connect_fail = '1';
                                }
                                if ($smtp_connect_fail != '1') {
                                    if ($m->Send($c)) {
                                        $msg_error = msg('1', str_replace("{userid}", $userid, text_register_success2));
                                    } else {
                                        echo msg('0', text_register_error13);
                                    }
                                } else {
                                    echo msg('0', text_register_error14);
                                }
                               
                               
                            }
                        } else {
                            $msg_error = msg('0', text_register_error15);
                        }
                    }
                }
            }
        }
    }
   
    if ($register_method == '2') {
        if (isset($_GET['activation_id'])) {
            $activate_md5 = '1';
            if (empty($_GET['activation_id'])) {
                header('Location: ' . ROOT_INDEX . '');
            } else {
                $md5_link   = safe_input($_GET['activation_id'], '');
                $check_link = $core_db2->Execute("Select confirmed,memb___id from MEMB_INFO where activation_id=?", array(
                    $md5_link
                ));
                if ($check_link->EOF) {
                    $msg_error = msg('0', text_register_error16);
                } else {
                    if ($check_link->fields[0] == '1') {
                        $msg_error = msg('0', text_register_error17);
                    } elseif ($check_link->fields[0] == '0') {
                        $active_id = $core_db2->Execute("Update MEMB_INFO set bloc_code='0',confirmed='1' where activation_id=?", array(
                            $md5_link
                        ));
                        if ($active_id) {
                            $msg_error = msg('1', str_replace("{userid}", $check_link->fields[1], text_register_success3));
                        } else {
                            $msg_error = msg('0', text_register_error18);
                        }
                       
                    }
                }
            }
        }
       
        echo '    <table  border="0" cellspacing="4" cellpadding="0"  align="center" width="100%" >
            <tr>';
        if ($activate_md5 != 1) {
            echo '<td align="left" class="curent_step" width="33%">1. ' . text_register_complete_form . '</td>';
        } else {
            echo '<td align="left" class="step" width="33%">1. ' . text_register_complete_form . '</td>';
        }
        if ($activate_md5 == '1') {
            echo '<td align="left" class="curent_step"  width="33%">2. ' . text_register_activate_account . '</td>';
        } else {
            echo '<td align="left" class="step"  width="33%">2. ' . text_register_activate_account . '</td>';
        }
        echo '
    </tr>
    </table>';
       
       
       
    }
    if ($msg_error) {
        echo $msg_error;
    }
    if ($activate_md5 != '1') {
        if ($complete != '1') {
            $userid_post   = htmlspecialchars($_POST['userid']);
            $p_id_post     = htmlspecialchars($_POST['pers_id']);
            $email_post    = htmlspecialchars($_POST['email_address']);
            $country_post  = htmlspecialchars($_POST['country']);
            $question_post = htmlspecialchars($_POST['question']);
            $anaswer_post  = htmlspecialchars($_POST['answer']);
        }
        echo '
<form name="sign_up_frm" method="post" action="" id="sign_up_frm">';
echo '<div id="a"></div>';
echo '<div class="row">
            <div class="col-lg-12">
                <div class="form-group">
                    <div class="input-group">';
echo '                  <span class="input-group-addon"><i class="fa fa-user"></i>&nbsp;Usuario</span>
                        <input class="form-control" type="text" name="userid" id="userid" maxlength="10" autocomplete="off" placeholder="Nombre de la cuenta" onclick="document.getElementById(\'c_uss\').innerHTML=\'4-10 caracteres, letras y números unicamente\'" value="' . $userid_post . '" required pattern="[A-Za-z0-9]{4,10}" title="Letras y números solamente (4 a 10 caracteres)">
                    </div>
                    <a href="javascript:void(0)" onclick="cs_ua_a();">¿Disponible?</a>
                    <p class="small form-text" id="c_uss">4-10 caracteres, letras y números unicamente</p>
                </div>
            </div>
        </div>';
echo '<hr class="m-t-5 m-b-30">';
echo '<div class="row">
        <div class="col-lg-6">
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa fa-lock"></i>&nbsp;Contraseña</span>
                    <input class="form-control" type="password" name="password" id="password" maxlength="10" autocomplete="off" onclick="cs_ua_a();" placeholder="Ingresar contraseña" required pattern="[A-Za-z0-9]{6,10}" title="Letras y números solamente (6 a 10 caracteres)">
                </div>
                <p class="small form-text">6-10 caracteres, letras y números unicamente</p>
            </div>
        </div>
        <div class="col-lg-6">
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa fa-lock"></i>&nbsp;Repeat-Contraseña</span>
                    <input class="form-control" type="password" name="confirm_password" id="confirm_password" maxlength="10" autocomplete="off" onpaste="return false" placeholder="Confirmar contraseña" required pattern="[A-Za-z0-9]{6,10}" title="Letras y números solamente (6 a 10 caracteres)">
                </div>
                <p class="small form-text">Se distinguen mayúsculas y minúsculas. Asegurate de que ambas sean idénticas.</p>
            </div>
        </div>
    </div>';
echo '<hr class="m-t-5 m-b-30">';
echo '<div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa fa-envelope"></i>&nbsp;E-Mail</span>
                    <input class="form-control" maxlength="50" autocomplete="off" type="text" name="email_address" id="email_address" placeholder="correo@ejemplo.com" onclick="document.getElementById(\'c_mss\').innerHTML=\'Ej: ejemplo@ejemplo.com\'" value="" required>
                </div>
                <p class="small form-text" id="c_mss">Asegurate de ingresar una dirección de correo a la que tengas acceso. Será requerida en un futuro para recuperar tu cuenta en caso de robo o extravío, recuperar/cambiar contraseña, modificar tu número de ID Personal, etc.</p>
            </div>
        </div>
    </div>';
echo '<hr class="m-t-5 m-b-30">';
if ($get_config->pers_id_active == '1') {
echo '<div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <div class="input-group">
                <span class="input-group-addon"><i class="fa fa-lock"></i>&nbsp;Número de ID Personal</span>
                <input class="form-control" maxlength="7" autocomplete="off" type="text" name="pers_id" id="pers_id" placeholder="Ingresa un número de 7 dígitos (el que vos quieras)" value="" onclick="csm_uam_am();" required pattern="[0-9]{7,7}" title="Números solamente (7 caracteres)">
                </div>
                <p class="small form-text">Es muy importante que lo anotes y lo guardes en un lugar seguro. Nadie más que vos debe conocerlo.</p>
            </div>
        </div>
    </div>
    <hr class="m-t-5 m-b-30">';
}
echo '<div class="row">
            <div class="col-lg-12">
                <div class="form-group">
                    <div class="input-group">
                        <span for="country" class="input-group-addon"><i class="fa fa-globe"></i>&nbsp;' . text_country . '</span>
                        <select id="country" name="country" class="select2 form-control"><option value="x">--' . text_select . '</option>';
       $c = getcountry('list');
        foreach ($c as $cc => $v) {
            if ($country_post == $cc) {
                echo '<option value="' . $cc . '" selected="selected">' . $v . '</option>';
            } else {
                echo '<option value="' . $cc . '">' . $v . '</option>';
            }
           
        }
       
        echo '</select>
                    </div>
                    <p class="small form-text">Es muy importante que selecciones el país desde donde te vas a conectar con tu cuenta, es probable que algún momento te pidamos que lo verifiques.</p>
                </div>
            </div>
        </div>';
echo '<hr class="m-t-5 m-b-30">';
echo '<div class="row">
    <div class="col-lg-12">
        <div class="form-group">
        <table style="width:100%;">
            <tr>
                <td><span class="custom-control-description">' . text_gender . '</span></td>
                <td><label class="form-control custom-radio"><input name="gender" id="gender" type="radio" value="1">
              <span class="custom-control-description">' . text_male . '</span></label></td>
                <td><label class="form-control custom-radio"><input name="gender" type="radio" value="2" id="gender">
              <span class="custom-control-description">' . text_female . '</span></label></td>
            </tr>
        </table>
        <p class="small form-text">Es muy importante que selecciones tu genero sexual, es parte de un requisito de identidad.</p>
        </div>
    </div>
</div>';
echo '<hr class="m-t-5 m-b-30">';
echo '<div class="row">
    <div class="col-lg-6">
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon"><i class="fa fa-question-circle" aria-hidden="true"></i>&nbsp;' . text_register_secret_question . '</span>
                <select name="question" id="question" class="select2 form-control select2-hidden-accessible" aria-hidden="true"><option value="x">--' . text_select . '</option>';
                foreach ($secret_questions as $sq_id => $sq_name) {
                    if ($question_post == $sq_id) {
                        echo '<option value="' . $sq_id . '" selected="selected">' . $sq_name . '</option>';
                    } else {
                        echo '<option value="' . $sq_id . '">' . $sq_name . '</option>';
                    }
                }
                echo '</select>
            </div>
            <p class="small form-text">Para ayudar a identificar tu cuenta, por favor selecciona una pregunta secreta de la lista y respondela.</p>
        </div>
    </div>
    <div class="col-lg-6">
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon"><i class="fa fa-user-secret" aria-hidden="true"></i>&nbsp;' . text_register_answer_question . '</span>
                <input class="form-control" maxlength="50" autocomplete="off" type="text" name="answer" id="answer" onpaste="return false" placeholder="' . $anaswer_post . '" required>
            </div>
            <p class="small form-text">Se distinguen mayúsculas y minúsculas. Asegurate de resguardar esta informacion.</p>
        </div>
    </div>
</div>';
echo '<hr class="m-t-5 m-b-30">';
if ($is_reCAPTCHA == '1') {
    echo '<div class="row">
        <div class="col-lg-12" style="text-align:center;">
            <div class="form-group">
                <div class="g-recaptcha" data-sitekey="'.$publickey.'"></div>
                <script src=\'https://www.google.com/recaptcha/api.js\'></script>
            </div>
        </div>
    </div>';
} else {
echo '<div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <img src="get.php?aI" alt="Código de verificacion anti-spam"><br><br>
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa fa-eye"></i>&nbsp;Verificación anti-spam</span>
                    <input class="form-control" maxlength="20" autocomplete="off" type="text" name="verify_int" id="verify_int" placeholder="Ingresa el código que ves en la imagen" required="">
                </div>
            </div>
        </div>
    </div>';
}
echo '<hr class="m-t-5 m-b-30">';
echo '<div class="form-group alert alert-warning">
            <label class="custom-control custom-checkbox m-r-10">
              <input type="checkbox" name="terms" value="1" class="custom-control-input">
              <span class="custom-control-indicator"></span>
              <span class="custom-control-description">Me hare responsable por mi cuenta y personajes.</span>
            <input type="hidden" name="create_account">
        </label></div>';
echo '<hr class="m-t-5 m-b-30">';
echo '<button type="submit" class="btn btn-success btn-lg" onclick="return parse_inputs()"><i class="fa fa-check"></i>&nbsp;CREAR CUENTA!</button>
    </form>';
    }
}
?>

el que vino en el template


Offline sonytfm #8 Posteado: March 03, 2021, 05:08:28 PM | Modificado: March 03, 2021, 09:38:09 PM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
Code: [Select]
<?

$get_config = simplexml_load_file('engine/config_mods/register_settings.xml');
if ($get_config->active == '0') {
    echo msg('0', text_sorry_feature_disabled);
} else {
    $register_method = $get_config->method;
   
    $verification_config = simplexml_load_file('engine/config_mods/human_verification.xml');
    if ($verification_config->human_verification_type == 'reCAPTCHA') {
        $is_reCAPTCHA = '1';
        require_once('engine/recaptchalib.php');
        $privatekey = $verification_config->reCAPTCHA_private_key;
        $publickey = $verification_config->reCAPTCHA_public_key;

// respuesta vacía
$response = null;
 
// comprueba la clave secreta
$reCaptcha = new ReCaptcha($privatekey);

if ($_POST["g-recaptcha-response"]) {
$response = $reCaptcha->verifyResponse(
        $_SERVER["REMOTE_ADDR"],
        $_POST["g-recaptcha-response"]
    );
}

    }
   
   
   
    echo '
<script type="text/javascript">   
load_image= new Image(16,16);
load_image.src="template/' . $core['config']['template'] . '/images/load.gif";

function Ajax(div,id, page, form, append, data){

    document.getElementById(div).innerHTML = \'<img src="template/' . $core['config']['template'] . '/images/load.gif" width="16" height="16"> Please wait...\';
    var veri = \'\';
    if( typeof(data) == "string")
        veri = data;
    else
        veri = $(form).serialize();
    $.ajax({
   type: "POST",
   url: page,
   data: veri,
   error: function(html)
   {
           alert("falied");
   },
   success: function(html)
   {
        if( typeof(append) == "boolean")
            $(id).append(html);
        else
            $(id).html(html);
   }
  });
  return false;
}
</script>

<script type="text/javascript">
function cs_ua_a(){
    if (document.sign_up_frm.userid.value.length < 4){
        alert(\'User ID, 4-10 characters\n(letters and numbers only)\');
    }else{
        uss = document.getElementById(\'userid\').value;
        url_p = "get.php?aA="+uss;
        Ajax(\'c_uss\',\'#c_uss\',url_p, null, \'data=c_uss\');
    }

}

function csm_uam_am(){
    if (document.sign_up_frm.email_address.value.length < 2){
        alert(\'Please enter an valid mail address \n(e.g: somebody@yahoo.com)\');
    }else{
        uss = document.getElementById(\'email_address\').value;
        url_p = "get.php?aMl="+uss;
        Ajax(\'c_mss\',\'#c_mss\',url_p, null, \'data=c_mss\');
    }

}

function parse_inputs(){
    if (document.sign_up_frm.userid.value.length < 4){
        alert(\'User ID, 4-10 characters\n(letters and numbers only)\');
        return false;
    }
   
    if (document.sign_up_frm.password.value.length < 6){
        alert(\'Password, 6-10 characters\n(letters and numbers only, passwords are case-sensitive.)\');
        return false;
    }
   
    if (document.sign_up_frm.confirm_password.value.length < 6){
        alert(\'Confirm Password, 6-10 characters\n(letters and numbers only, passwords are case-sensitive.)\');
        return false;
    }
    if (document.sign_up_frm.password.value != document.sign_up_frm.confirm_password.value){
        alert(\'Passwords did not match.\');
        return false;
    }
    ';
    if ($get_config->pers_id_active == '1') {
        echo 'if (document.sign_up_frm.pers_id.value.length < ' . $get_config->pers_id_length . '){
        alert(\'Please enter an valid Personal ID number \n(12 digits, numbers only.)\');
        return false;
    }';
    }
   
    echo '
    if (document.sign_up_frm.email_address.value.length < 2){
        alert(\'Please enter an valid mail address \n(e.g: somebody@gmail.com)\');
        return false;
    }
    if (document.sign_up_frm.country.value ==  \'x\'){
        alert(\'Please select country.\');
        return false;
    }
    if ((document.sign_up_frm.gender[0].checked==false)&&(document.sign_up_frm.gender[1].checked==false)){
        alert(\'Please select gender.\');
        return false;
    }
    if (document.sign_up_frm.question.value ==  \'x\'){
        alert(\'Please select question.\');
        return false;
    }
    if (document.sign_up_frm.answer.value.length < 4){
        alert(\'Please enter the answer to your secret question.\n(letters and numbers only)\');
        return false;
    }';
    if ($is_reCAPTCHA != '1') {
        echo '    if (document.sign_up_frm.verify_int.value.length < 6){
        alert(\'Please enter the code from verification image.\');
        return false;
    }';
       
    }
   
   
    echo '
    if ((document.sign_up_frm.terms.checked==false)){
        alert(\'Please read the Terms of Service.\');
        return false;
    }
   
    document.sign_up_frm.submit();
}

</script>';
   
   
    if (isset($_POST['create_account'])) {
        require("engine/validate.php");
        $elems[] = array(
            'name' => 'userid',
            'label' => text_register_error1,
            'type' => 'text',
            'uname' => 'true',
            'required' => true,
            'len_min' => 4,
            'len_max' => 10,
            'cont' => 'alpha'
        );
       
       
        $elems[] = array(
            'name' => 'password',
            'label' => text_register_error2,
            'type' => 'text',
            'required' => true,
            'len_min' => 6,
            'len_max' => 10,
            'cont' => 'alpha'
        );
        $elems[] = array(
            'name' => 'confirm_password',
            'label' => text_register_error3,
            'type' => 'text',
            'required' => true,
            'len_min' => 6,
            'len_max' => 10,
            'cont' => 'alpha',
            'equal' => array(
                'password'
            )
        );
       
        if ($get_config->pers_id_active == '1') {
            $elems[] = array(
                'name' => 'pers_id',
                'label' => str_replace("{pers_id_length}", $get_config->pers_id_length, text_register_error4),
                'type' => 'text',
                'required' => true,
                'len_min' => $get_config->pers_id_length,
                'len_max' => $get_config->pers_id_length,
                'cont' => 'digit'
            );
        }
       
        $elems[] = array(
            'name' => 'email_address',
            'label' => text_register_error5,
            'type' => 'text',
            'required' => true,
            'len_max' => 50,
            'cont' => 'email'
        );
       
        $elems[] = array(
            'name' => 'country',
            'label' => text_register_error6,
            'type' => 'text',
            'required' => true,
            'len_max' => 3,
            'cont' => 'digit'
        );
        $elems[] = array(
            'name' => 'gender',
            'label' => text_register_error7,
            'type' => 'text',
            'required' => true,
            'len_max' => 1,
            'cont' => 'digit'
        );
        $elems[] = array(
            'name' => 'question',
            'label' => text_register_error8,
            'type' => 'text',
            'required' => true,
            'len_max' => 2,
            'cont' => 'digit'
        );
       
        $elems[] = array(
            'name' => 'answer',
            'label' => text_register_error9,
            'type' => 'text',
            'required' => true,
            'len_min' => 4,
            'len_max' => 20,
            'cont' => 'alpha'
        );
        $f       = new FormValidator($elems);
        $err     = $f->validate($_POST);
        if ($err === true) {
            $valid = $f->getValidElems();
            foreach ($valid as $k => $v) {
                if ($valid[$k][0][1] == false) {
                    if (empty($valid[$k][0][2])) {
                        $msg_error = msg('0', $valid[$k][0][2]);
                    } else {
                        $msg_error = msg('0', $valid[$k][0][2]);
                    }
                }
            }
        } else {
            $userid   = safe_input($_POST['userid'], '');
            $password = safe_input($_POST['password'], '');
            $email    = safe_input($_POST['email_address'], '\_\@\.\-');
            $country  = safe_input($_POST['country'], '');
            $gender   = safe_input($_POST['gender'], '');
            $question = safe_input($_POST['question'], '');
            $anaswer  = safe_input($_POST['answer'], '');
            if ($get_config->pers_id_active == '1') {
                $pid = safe_input($_POST['pers_id'], '');
            } else {
                $pid = trim($get_config->pers_id);
            }
           
           
            if ($is_reCAPTCHA == '1') {
                if ($response != null && $response->success) {
                    $bot_check = '0';
                }else{
                $bot_check = '1';
                }
            } else {
                if ($_SESSION['SID_code'] != md5($_POST['verify_int'])) {
                    $bot_check = '1';
                }
            }
           
           
            if ($bot_check == '1') {
                $msg_error = msg('0', text_register_error10);
               
            } else {
                if (check_account($userid) === true) {
                    $msg_error = msg('0', text_register_error11);
                } else {
                    if (check_mail($email) === true) {
                        $msg_error = msg('0', text_register_error12);
                    } else {
                        if ($register_method == '1') {
                            $confirmed       = '1';
                            $blocked         = '0';
                            $activation_need = '0';
                            $activation_id   = md5($userid);
                        } elseif ($register_method == '2') {
                            $confirmed       = '0';
                            $blocked         = '1';
                            $activation_need = '1';
                            $activation_id   = md5($userid);
                        }
                       
                        if ($core['config']['md5'] == '1') {
                            $make_me_acc = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,SecretQuestion,SecretAnswer,Country,Gender,confirmed,activation_id) VALUES (?,[dbo].[fn_md5](?,?),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", array(
                                $userid,
                                $password,
                                $userid,
                                'test',
                                $pid,
                                $blocked,
                                '0',
                                '1',
                                $email,
                                date('m/d/Y'),
                                date('m/d/Y'),
                                '2005-01-03',
                                '2005-01-03',
                                $question,
                                $anaswer,
                                $country,
                                $gender,
                                $confirmed,
                                $activation_id
                            ));
                        } elseif ($core['config']['md5'] == '0') {
                            $make_me_acc  = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,SecretQuestion,SecretAnswer,Country,Gender,Confirmed,activation_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", array(
                                $userid,
                                $password,
                                'test',
                                $pid,
                                $blocked,
                                '0',
                                '1',
                                $email,
                                date('m/d/Y'),
                                date('m/d/Y'),
                                '2005-01-03',
                                '2005-01-03',
                                $question,
                                $anaswer,
                                $country,
                                $gender,
                                $confirmed,
                                $activation_id
                            ));
                            $make_me_acc_ = 1;
                            /*
                            $make_me_acc_ = $core_db2->Execute("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2005','1',1234,?,?,1,'7','6','3','6','6',".date('m/d/Y').",'0' )", array($userid,'test'));
                            */
                        }
                        //Agregando Creditos
                        $core_db2->Execute("INSERT INTO MEMB_CREDITS(memb___id)VALUES(?)",array($userid));
                        $core_db->Execute("INSERT INTO MUCore_AOHCreditos(memb___id,credits,credits2)VALUES(?,?,?)",array($userid,'0','0'));

                        if ($make_me_acc) {
                            if ($activation_need == '0') {
                                $msg_error = msg('1', str_replace("{userid}", $userid, text_register_success1));
                                $complete  = 1;
                            } elseif ($activation_need == '1') {
                                /*
                                require("engine/smtp.php");
                                $smtp_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
                                $mail = new SMTP($smtp_config->smtp_server,$smtp_config->smtp_username,$smtp_config->smtp_password);
                                $header = $mail->make_header($core['config']['master_mail'],$email,'Account Activation for '.$core['config']['websitetitle'].'');
                                $header .= "Content-Type: text/html; charset=\"iso-8859-1\" \r\n";
                                $header .= "Content-Transfer-Encoding: 8bit \r\n";
                                $header .= "MIME-Version: 1.0 \r\n";
                                */
                               
                               
                                $body = str_replace("{user_id}", $userid, mail_register_t1);
                                $body = str_replace("{website_title}", $core['config']['websitetitle'], $body);
                                $body = str_replace("{activation_url}", $core['config']['website_url'] . '/' . ROOT_INDEX . '?' . LOAD_GET_PAGE . '=' . REGISTER_CMS_PAGE . '&activation_id=' . $activation_id, $body);
                                /*
                               
                                $body = 'Dear '.$userid.',<br><br>
                                Thank you for registering at the '.$core['config']['websitetitle'].'. Before we can activate your account one last step must be taken to complete your registration.<br><br>
                                Please note - you must complete this last step to become a registered member. You will only need to visit this URL once to activate your account.<br>
                                <br>
                                To complete your registration, please visit this URL:<br>
                                <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'">'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'</a>
                                <br><br><br>
                                All the best,<br>
                                '.$core['config']['websitetitle'].' Team.';
                                */
                               
                               
                                if ($core['debug'] == '1') {
                                    define('DISPLAY_XPM4_ERRORS', true);
                                } else {
                                    define('DISPLAY_XPM4_ERRORS', false);
                                }
                               
                                $get_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
                               
                                require("engine/mail.php");
                                $m = new MAIL;
                                $m->From($core['config']['master_mail']);
                                $m->AddTo(trim($email));
                                $m->Subject('Contact Us - ' . $subject_set . '');
                                $m->Html($body);
                               
                                if ($get_config->smtp_connection == 'none') {
                                    $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password)) or $smtp_connect_fail = '1';
                                } else {
                                    $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password), trim($get_config->smtp_connection), 10, 'localhost', null, 'plain') or $smtp_connect_fail = '1';
                                }
                                if ($smtp_connect_fail != '1') {
                                    if ($m->Send($c)) {
                                        $msg_error = msg('1', str_replace("{userid}", $userid, text_register_success2));
                                    } else {
                                        echo msg('0', text_register_error13);
                                    }
                                } else {
                                    echo msg('0', text_register_error14);
                                }
                               
                               
                            }
                        } else {
                            $msg_error = msg('0', text_register_error15);
                        }
                    }
                }
            }
        }
    }
   
    if ($register_method == '2') {
        if (isset($_GET['activation_id'])) {
            $activate_md5 = '1';
            if (empty($_GET['activation_id'])) {
                header('Location: ' . ROOT_INDEX . '');
            } else {
                $md5_link   = safe_input($_GET['activation_id'], '');
                $check_link = $core_db2->Execute("Select confirmed,memb___id from MEMB_INFO where activation_id=?", array(

el original que vino cuando instale la web


Offline lunaticodeveloper #9 Posteado: March 04, 2021, 09:05:20 AM

  • MAESTRO

  • US. DE HONOR

  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.818
  • Gracias recibida: 22416
  • ar
fijate que tienes la imagen del recapcha

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!
Alojamiento de Servidores / Venta de Configuraciones Mu Online / Espacio de alojamiento para WebHost / Venta de diseño grafico.

Offline sonytfm #10 Posteado: March 04, 2021, 01:05:21 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 387
  • Gracias recibida: 2406
  • ar
tema solucionado, den por cerrado el tema


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1253 Views
Last post September 08, 2017, 01:41:58 PM
by FR31K0RP
2 Replies
1645 Views
Last post January 27, 2019, 07:51:10 PM
by Hessen
6 Replies
1375 Views
Last post November 13, 2018, 09:22:50 PM
by Cloud
0 Replies
417 Views
Last post April 08, 2020, 07:36:39 PM
by dario58x
4 Replies
505 Views
Last post September 16, 2020, 11:26:29 AM
by load_01