Adjunto un estracto de Register.php
Código
<? if($get_config->active == '0'){ echo msg('0',text_sorry_feature_disabled); }else{ $register_method = $get_config->method; if($verification_config->human_verification_type == 'reCAPTCHA'){ $is_reCAPTCHA = '1'; require_once('engine/recaptchalib.php'); $privatekey = $verification_config->reCAPTCHA_private_key; $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); } 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) { <--------------------Aquí está el señor problema :B--------------------> 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-12 characters\n(letters and numbers only)\'); return false; } if (document.sign_up_frm.password.value.length < 6){ alert(\'Password, 6-12 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-12 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
Muchas gracias, Saludos
PD:Si tienen duda con el registro, adjunto la página para que corroboren:
http://mu-caos.cl/index.php?page_id=register