Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: antibot captcha ayuda  (Visto 733 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline wrestler Posteado: April 29, 2020, 05:53:34 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 1
  • es
Hola, uso mvcore 1.6.3 premium pasa lo mismo con la 1.17.1 e intentao todo e buscao por internet y no consigo hacerlo porfavor ayudenme me estan aciendo cuentas falsas en el server en 1 2 horas me hacen 3000 4000 cuentas falsas, les adjunto mi register y el recaptchalib.
E buscao por el foro e probao lo que e visto y no se que es lo que ago mal y no lo consigo

Code: [Select]
<?php if(!$mvcore['Register'] == 'on') { echo'<div class="mvcore-nNote mvcore-nFailure">'.eng_for_the_moment_tpi_disabled.'</div>'; } ?>
<?php if($mvcore['Register'] == 'on' && $_SESSION['user_login'] != 'ok') { ?>
<?php
if($mvcore['smtp_mode'] == 'on') {
if ($_GET['op2'] >= 'ok'){
$username = $_GET['op3'];
$Password = $_GET['op4']; // MD5

$check_user_exisdt = mssql_query("Select memb__pwd,memb___id from ".$mvcore_medb_i." where memb___id ='".$username."'"); $check_user_exisdta = mssql_fetch_row($check_user_exisdt);
if($mvcore['md5_support'] == 'yes') {
if($check_user_exisdta[0] != $Password) { $error = '1'; };
} else {
if(md5($check_user_exisdta[0]) != $Password) { $error = '1'; };
}

if($error >= '1'){} else {
$RewardFriend = mssql_query("update ".$mvcore_medb_i." set smtp_block = '0' where memb___id ='".$check_user_exisdta[1]."'");
$send_login = checklogin($check_user_exisdta[1],$check_user_exisdta[0],$mvcore['md5_support'],$mvcore_medb_i,$mvcore['go_to_page'],$_GET['op1']);
$send_admin = checkAdmin($check_user_exisdta[1],$mvcore_medb_i);
$send_gm = checkGM($check_user_exisdta[1],$mvcore_medb_i);
}
};
};
if (isset($_POST['rs_reg_form'])){

require_once('system/engine_plugins/recaptchalib.php');

if($mvcore['reC_onoff'] == 'on') {
$privatekey = $mvcore['reC_secretkey'];
$resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
} else { $respdata = '1'; }
if ($respdata == '1' || $resp->is_valid) {
$user_name = $_POST['rs_username'];
$e_mail = $_POST['rs_email'];
$user_pass = $_POST['rs_password'];
$rep_pass = $_POST['rs_repassword'];
$s_ques = $_POST['ss_question'];
$s_answ = $_POST['ss_answer'];
$s_rules = $_POST['server_rules'];
$ss_country = $_POST['ss_country'];

if($user_name == '') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_eusername.'</div>'; } else {

$check_user_exist = mssql_query("Select top 1 memb___id from ".$mvcore_medb_i." where memb___id ='".$user_name."'"); $check_user_existss = mssql_fetch_row($check_user_exist); if($check_user_existss[0] == ''){ } else { $has_error = '3'; };
$check_email_exist = mssql_query("Select top 1 mail_addr from ".$mvcore_medb_i." where mail_addr ='".$e_mail."'"); $check_email_existss = mssql_fetch_row($check_email_exist); if($check_email_existss[0] == ''){ } else { $has_error = '4'; };

if(strtoupper($user_name) == strtoupper($check_user_existss[0]) ){ $has_error = '3'; };

if($mvcore['reg_rules'] == 'on') {
if($s_rules) {} else { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_rules.'</div>'; };
}
if(strlen($user_name) >= '11') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_maxuser.'</div>'; };
if(strlen($user_pass) >= '11') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_maxpass.'</div>'; };

if(strlen($user_name) <= '4') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_minuser.'</div>'; };
if(strlen($user_pass) <= '4') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_minpass.'</div>'; };

if(strlen($s_answ) >= '21') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_answmx.'</div>'; };

if($e_mail == '') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_emaile.'</div>'; };
if($user_pass == '') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_passmiss.'</div>'; };
if($s_ques == '') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_secretquest.'</div>'; };
if($s_answ == '') { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_enteranw.'</div>'; };
if(!filter_var($e_mail, FILTER_VALIDATE_EMAIL)) { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_emailvalid.'</div>'; };
if($user_pass != $rep_pass) { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_regpassmatch.'</div>'; };

if($has_error == '3') { echo '<div class="mvcore-nNote mvcore-nFailure">'.register_alreadyexist.'</div>'; };
if($has_error == '4') { echo '<div class="mvcore-nNote mvcore-nFailure">'.register_emailinuse.'</div>'; };

if($mvcore['acc_reg_limit'] != 'off' || $mvcore['acc_reg_limit'] == '0' || $mvcore['acc_reg_limit'] == '') {
$check_existIp = mssql_query("Select top 20 UserIp from MVCore_Register_Count where UserIp ='".getUserIP()."'");
$existsIpCount = mssql_result($check_existIp, 0, 0);

if($existsIpCount > $mvcore['acc_reg_limit']) { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_regiplimit.' '.$mvcore['acc_reg_limit'].' '.register_regiplimitp2.'</div>'; };

} else {};

if($has_error >= '1'){} else {


if($_GET['op1'] == 'Register' && $_GET['op2'] != '' && $_GET['op3'] == '' && $mvcore['Friend_System'] == 'on') {
$Username = $_GET['op2'];
$GetVisitorIP = getUserIP();

if($GetVisitorIP != ''){
//Checking if exists

$check_exist = mssql_query("Select memb___id,acc_ip from ".$mvcore_medb_i." where memb___id ='".$Username."'");
$exists = mssql_fetch_row($check_exist); if($exists[0] != ''){ } else { $has_error = '1'; };

$check_IP = mssql_query("Select acc_ip from ".$mvcore_medb_i." where acc_ip ='".$GetVisitorIP."'");
$existsIP = mssql_fetch_row($check_IP); if($existsIP[0] == $GetVisitorIP){ $has_error = '2'; };

if($has_error == '1') { echo '<div class="mvcore-nNote mvcore-nFailure">'.register_fs_somethingwrong.'</div>'; };
if($has_error == '2') { echo '<div class="mvcore-nNote mvcore-nFailure">'.register_fs_ipfound.'</div>'; };

$v_f_hfwews= mssql_query("SELECT friend_uid from MVCore_Friend_List where friend_uid = '".$user_name."'");
$ewewrewa= mssql_fetch_row($v_f_hfwews);

if($ewewrewa[0] == $user_name) { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.main_p_friend_sys_alredfrendsomeone.'</div>'; };

$sql103asd = mssql_query("SELECT count(*) FROM MVCore_Friend_List where to_who_uid = '".$user_name."'"); $acasfr4 =mssql_result($sql103asd, 0, 0);
if($acasfr4 >= $mvcore['friend_sys_limit']) { $has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.main_p_friend_sys_friendlimmaxinv.'</div>'; }; //Invite limit

if($has_error >= '1'){} else {

$do_insert = mssql_query("insert into MVCore_Friend_List (friend_uid,to_who_uid,date) VALUES ('".$user_name."','".$Username."','".time()."')");

};
} else {
$has_error = '1'; echo '<div class="mvcore-nNote mvcore-nFailure">'.register_fs_wrongip.'</div>';
};
};

if($mvcore['smtp_mode'] == 'on') {
$ilbc = '1';
if($mvcore['md5_support'] == 'yes') {
sendEmail($e_mail,''.register_accactivat.'', ''.register_greethi.' '.$user_name.' <br>'.register_thanksoreg.' '.$mvcore['surl'].' <br>'.register_youacclickb.' <br><a href="'.$mvcore['surl'].'/-id-Register-id-ok-id-'.$user_name.'-id-'.$user_pass.'.html"><b>'.$mvcore['surl'].'/-id-Register-id-ok-id-'.$user_name.'-id-'.$user_pass.'.html</b></a>',$mvcore['smtp_host'],$mvcore['smtp_username'],$mvcore['smtp_password'],$mvcore['smtp_encrypt'],$mvcore['smtp_port'],$mvcore['smtp_sender_mail'],$mvcore['smtp_sender_title']);
} else {
sendEmail($e_mail,''.register_accactivat.'', ''.register_greethi.' '.$user_name.' <br>'.register_thanksoreg.' '.$mvcore['surl'].' <br>'.register_youacclickb.' <br><a href="'.$mvcore['surl'].'/-id-Register-id-ok-id-'.$user_name.'-id-'.md5($user_pass).'.html"><b>'.$mvcore['surl'].'/-id-Register-id-ok-id-'.$user_name.'-id-'.md5($user_pass).'.html</b></a>',$mvcore['smtp_host'],$mvcore['smtp_username'],$mvcore['smtp_password'],$mvcore['smtp_encrypt'],$mvcore['smtp_port'],$mvcore['smtp_sender_mail'],$mvcore['smtp_sender_title']);
}
} else {
$ilbc = '0';
};

if($mvcore['md5_support'] == 'yes') {
$do_reg_insert = mssql_query("insert into ".$mvcore_medb_i." (memb___id,memb__pwd,memb_name,sno__numb,mail_addr,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code,admincp,SecretQuestion,SecretAnswer,acc_ip,mvc_flag,smtp_block) VALUES ('".$user_name."', 0x".md5($user_pass)." ,'MVCore','1111111111111','".$e_mail."','".date('Y-m-d H:i:s',time())."','".date('Y-m-d H:i:s',time())."','2015-01-01','2015-01-01','1','0','0','0','".$s_ques."','".$s_answ."','".getUserIP()."','".$ss_country."','".$ilbc."')");
} else {
$do_reg_insert = mssql_query("insert into ".$mvcore_medb_i." (memb___id,memb__pwd,memb_name,sno__numb,mail_addr,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code,admincp,SecretQuestion,SecretAnswer,acc_ip,mvc_flag,smtp_block) VALUES ('".$user_name."','".$user_pass."','MVCore','1111111111111','".$e_mail."','".date('Y-m-d H:i:s',time())."','".date('Y-m-d H:i:s',time())."','2015-01-01','2015-01-01','1','0','0','0','".$s_ques."','".$s_answ."','".getUserIP()."','".$ss_country."','".$ilbc."')");
}

$do_ip_insert = mssql_query("insert into MVCore_Register_Count (UserIp) VALUES ('".getUserIP()."')"); // Allowed Ip System ( Saves IP At Any Reason )

if(mssql_query("select ".$mvcore['credits_column'].",".$mvcore['credits2_column']." from ".$mvcore['credits_table']." where ".$mvcore['user_column']." = '".$user_name."'")  != false ){} else {
$do_insert = mssql_query("insert into ".$mvcore['credits_table']." (".$mvcore['user_column'].",".$mvcore['credits_column'].",".$mvcore['credits2_column'].") VALUES ('".$user_name."','0','0')"); // Create If Doesnt exist
};

$do_reg_insert = mssql_query("insert into AccountCharacter (id,GameID1,GameID2,GameID3,GameID4,GameID5) VALUES ('".$user_name."','','','','','')");
$do_reg_insert = mssql_query("insert into ".$mvcore_medb_s." (memb___id,ConnectStat,ServerName,IP,ConnectTM,DisConnectTM,OnlineHours) VALUES ('".$user_name."','0','GS','0','','','0')");

if($mvcore['smtp_mode'] == 'on') { echo'<div class="mvcore-nNote mvcore-nSuccess">'.register_checkmailaccact.'</div>'; } else {
if($_GET['op1'] == 'Register' && $_GET['op2'] != '' && $_GET['op3'] == '' && $mvcore['Friend_System'] == 'on') {
if($has_error >= '1') {} else {
$send_login = checklogin($user_name,$user_pass,$mvcore['md5_support'],$mvcore_medb_i,$mvcore['go_to_page'],$_GET['op1']);
$send_admin = checkAdmin($user_name,$mvcore_medb_i);
$send_gm = checkGM($user_name,$mvcore_medb_i);
}
} else {
$send_login = checklogin($user_name,$user_pass,$mvcore['md5_support'],$mvcore_medb_i,$mvcore['go_to_page'],$_GET['op1']);
$send_admin = checkAdmin($user_name,$mvcore_medb_i);
$send_gm = checkGM($user_name,$mvcore_medb_i);
}
};

};
};
} else {
$has_error = '1'; echo'<div class="mvcore-nNote mvcore-nFailure">'.register_recaptchaerror.'</div>';
};
};

if($_GET['op1'] == 'Register' && $_GET['op2'] != '' && $_GET['op3'] == '' && $mvcore['Friend_System'] == 'on') {
echo'<h2>'.register_helpfriendnow.'</h2>';
};
?>

<form action="" method="POST" name="rs_reg_form">
<table align="center" width="100%" cellpadding="0" cellspacing="0">
<tr align="center">
<td><?php echo register_usern;?></td>
<td><input type="text" name="rs_username" class="mvcore-input-main" value=""></td>
</tr>

<tr align="center">
<td><?php echo register_passn;?></td>
<td><input type="password" name="rs_password" class="mvcore-input-main" value=""></td>
</tr>

<tr align="center">
<td><?php echo register_reppassn;?></td>
<td><input type="password" name="rs_repassword" class="mvcore-input-main" value=""></td>
</tr>

<tr align="center">
<td><?php echo register_eailn;?></td>
<td><input type="text" name="rs_email" class="mvcore-input-main" value=""></td>
</tr>

<tr align="center">
<td><?php echo register_secretquestt;?></td>
<td>
<select name="ss_question" style=" width:370px; " class="mvcore-select-main">
<option value="0">-- <?php echo register_chooseopt;?></option>
<option value="1"><?php echo register_mothermaidname;?></option>
<option value="2"><?php echo register_firstshool;?></option>
<option value="3"><?php echo register_fewsuperhero;?></option>
<option value="4"><?php echo register_nfirstpet;?></option>
<option value="5"><?php echo register_aschildfewplace;?></option>
<option value="6"><?php echo register_cartooncharacter;?></option>
<option value="7"><?php echo register_firstvideogamelayed;?></option>
<option value="8"><?php echo register_nameoffteacher;?></option>
<option value="9"><?php echo register_tvshowaschild;?></option>
<option value="10"><?php echo register_citymotherborn;?></option>
</select>
</td>
</tr>

<tr align="center">
<td><?php echo register_secreatansw;?></td>
<td><input type="text" name="ss_answer" class="mvcore-input-main" value=""></td>
</tr>

<tr align="center">
<td>Select Your Country</td>
<td>
<select name="ss_country" style=" width:370px; " class="mvcore-select-main">
<option value="">-- <?php echo register_chosecountr;?></option>
<option value="af">Afghanistan</option>
<option value="al">Albania</option>
<option value="dz">Algeria</option>
<option value="as">American Samoa</option>
<option value="ad">Andorra</option>
<option value="ao">Angola</option>
<option value="ai">Anguilla</option>
<option value="ag">Antigua and Barbuda</option>
<option value="ar">Argentina</option>
<option value="am">Armenia</option>
<option value="aw">Aruba</option>
<option value="au">Australia</option>
<option value="at">Austria</option>
<option value="az">Azerbaijan</option>
<option value="bs">Bahamas</option>
<option value="bh">Bahrain</option>
<option value="bd">Bangladesh</option>
<option value="bb">Barbados</option>
<option value="by">Belarus</option>
<option value="be">Belgium</option>
<option value="bz">Belize</option>
<option value="bj">Benin</option>
<option value="bm">Bermuda</option>
<option value="bt">Bhutan</option>
<option value="bo">Bolivia, Plurinational State of</option>
<option value="ba">Bosnia and Herzegovina</option>
<option value="bw">Botswana</option>
<option value="bv">Bouvet Island</option>
<option value="br">Brazil</option>
<option value="io">British Indian Ocean Territory</option>
<option value="bn">Brunei Darussalam</option>
<option value="bg">Bulgaria</option>
<option value="bf">Burkina Faso</option>
<option value="bi">Burundi</option>
<option value="kh">Cambodia</option>
<option value="cm">Cameroon</option>
<option value="ca">Canada</option>
<option value="ic">Canary Islands</option>
<option value="cv">Cape Verde</option>
<option value="catalonia">Catalonia</option>
<option value="ky">Cayman Islands</option>
<option value="cf">Central African Republic</option>
<option value="td">Chad</option>
<option value="cl">Chile</option>
<option value="cn">China</option>
<option value="co">Colombia</option>
<option value="km">Comoros</option>
<option value="cd">Congo, The Democratic Republic of the</option>
<option value="cg">Congo</option>
<option value="ck">Cook Islands</option>
<option value="cr">Costa Rica</option>
<option value="ci">Cote d'Ivoire</option>
<option value="hr">Croatia</option>
<option value="cu">Cuba</option>
<option value="cw">Curacao</option>
<option value="cy">Cyprus</option>
<option value="cz">Czech Republic</option>
<option value="dk">Denmark</option>
<option value="dj">Djibouti</option>
<option value="dm">Dominica</option>
<option value="do">Dominican Republic</option>
<option value="ec">Ecuador</option>
<option value="eg">Egypt</option>
<option value="sv">El Salvador</option>
<option value="england">England</option>
<option value="gq">Equatorial Guinea</option>
<option value="er">Eritrea</option>
<option value="ee">Estonia</option>
<option value="et">Ethiopia</option>
<option value="eu">European Union</option>
<option value="fk">Falkland Islands (Malvinas)</option>
<option value="fo">Faroe Islands</option>
<option value="fj">Fiji</option>
<option value="fi">Finland</option>
<option value="fr">France</option>
<option value="gf">French Guiana</option>
<option value="pf">French Polynesia</option>
<option value="tf">French Southern Territories</option>
<option value="ga">Gabon</option>
<option value="gm">Gambia</option>
<option value="ge">Georgia</option>
<option value="de">Germany</option>
<option value="gh">Ghana</option>
<option value="gi">Gibraltar</option>
<option value="gr">Greece</option>
<option value="gl">Greenland</option>
<option value="gd">Grenada</option>
<option value="gp">Guadeloupe</option>
<option value="gu">Guam</option>
<option value="gt">Guatemala</option>
<option value="gg">Guernsey</option>
<option value="gn">Guinea</option>
<option value="gw">Guinea-Bissau</option>
<option value="gy">Guyana</option>
<option value="ht">Haiti</option>
<option value="hm">Heard Island and McDonald Islands</option>
<option value="va">Holy See (Vatican City State)</option>
<option value="hn">Honduras</option>
<option value="hk">Hong Kong</option>
<option value="hu">Hungary</option>
<option value="is">Iceland</option>
<option value="in">India</option>
<option value="id">Indonesia</option>
<option value="ir">Iran, Islamic Republic of</option>
<option value="iq">Iraq</option>
<option value="ie">Ireland</option>
<option value="im">Isle of Man</option>
<option value="il">Israel</option>
<option value="it">Italy</option>
<option value="jm">Jamaica</option>
<option value="jp">Japan</option>
<option value="je">Jersey</option>
<option value="jo">Jordan</option>
<option value="kz">Kazakhstan</option>
<option value="ke">Kenya</option>
<option value="ki">Kiribati</option>
<option value="kp">Korea, Democratic People's Republic</option>
<option value="kr">Korea, Republic</option>
<option value="xk">Kosovo</option>
<option value="kurdistan">Kurdistan</option>
<option value="kw">Kuwait</option>
<option value="kg">Kyrgyzstan</option>
<option value="la">Lao People's Democratic Republic</option>
<option value="lv">Latvia</option>
<option value="lb">Lebanon</option>
<option value="ls">Lesotho</option>
<option value="lr">Liberia</option>
<option value="ly">Libya</option>
<option value="li">Liechtenstein</option>
<option value="lt">Lithuania</option>
<option value="lu">Luxembourg</option>
<option value="mo">Macao</option>
<option value="mk">Macedonia, The Former Yugoslav Republic</option>
<option value="mg">Madagascar</option>
<option value="mw">Malawi</option>
<option value="my">Malaysia</option>
<option value="mv">Maldives</option>
<option value="ml">Mali</option>
<option value="mt">Malta</option>
<option value="mh">Marshall Islands</option>
<option value="mq">Martinique</option>
<option value="mr">Mauritania</option>
<option value="mu">Mauritius</option>
<option value="yt">Mayotte</option>
<option value="mx">Mexico</option>
<option value="fm">Micronesia, Federated States of</option>
<option value="md">Moldova, Republic</option>
<option value="mc">Monaco</option>
<option value="mn">Mongolia</option>
<option value="me">Montenegro</option>
<option value="ms">Montserrat</option>
<option value="ma">Morocco</option>
<option value="mz">Mozambique</option>
<option value="mm">Myanmar</option>
<option value="na">Namibia</option>
<option value="nr">Nauru</option>
<option value="np">Nepal</option>
<option value="an">Netherlands Antilles</option>
<option value="nl">Netherlands</option>
<option value="nc">New Caledonia</option>
<option value="nz">New Zealand</option>
<option value="ni">Nicaragua</option>
<option value="ne">Niger</option>
<option value="ng">Nigeria</option>
<option value="nu">Niue</option>
<option value="nf">Norfolk Island</option>
<option value="mp">Northern Mariana Islands</option>
<option value="no">Norway</option>
<option value="om">Oman</option>
<option value="pk">Pakistan</option>
<option value="pw">Palau</option>
<option value="ps">Palestinian Territory, Occupied</option>
<option value="pa">Panama</option>
<option value="pg">Papua New Guinea</option>
<option value="py">Paraguay</option>
<option value="pe">Peru</option>
<option value="ph">Philippines</option>
<option value="pn">Pitcairn</option>
<option value="pl">Poland</option>
<option value="pt">Portugal</option>
<option value="pr">Puerto Rico</option>
<option value="qa">Qatar</option>
<option value="re">Reunion</option>
<option value="ro">Romania</option>
<option value="ru">Russian Federation</option>
<option value="rw">Rwanda</option>
<option value="sh">Saint Helena</option>
<option value="kn">Saint Kitts and Nevis</option>
<option value="lc">Saint Lucia</option>
<option value="pm">Saint Pierre and Miquelon</option>
<option value="vc">Saint Vincent and the Grenadines</option>
<option value="ws">Samoa</option>
<option value="sm">San Marino</option>
<option value="st">Sao Tome and Principe</option>
<option value="sa">Saudi Arabia</option>
<option value="scotland">Scotland</option>
<option value="sn">Senegal</option>
<option value="rs">Serbia</option>
<option value="sc">Seychelles</option>
<option value="sl">Sierra Leone</option>
<option value="sg">Singapore</option>
<option value="sx">Sint Maarten</option>
<option value="sk">Slovakia</option>
<option value="si">Slovenia</option>
<option value="sb">Solomon Islands</option>
<option value="so">Somalia</option>
<option value="somaliland">Somaliland</option>
<option value="za">South Africa</option>
<option value="gs">South Georgia and the South Sandwich Islands</option>
<option value="ss">South Sudan</option>
<option value="es">Spain</option>
<option value="lk">Sri Lanka</option>
<option value="sd">Sudan</option>
<option value="sr">Suriname</option>
<option value="sz">Swaziland</option>
<option value="se">Sweden</option>
<option value="ch">Switzerland</option>
<option value="sy">Syrian Arab Republic</option>
<option value="tw">Taiwan, Province of China</option>
<option value="tj">Tajikistan</option>
<option value="tz">Tanzania</option>
<option value="th">Thailand</option>
<option value="tibet">Tibet</option>
<option value="tl">Timor-Leste</option>
<option value="tg">Togo</option>
<option value="tk">Tokelau</option>
<option value="to">Tonga</option>
<option value="tt">Trinidad and Tobago</option>
<option value="tn">Tunisia</option>
<option value="tr">Turkey</option>
<option value="tm">Turkmenistan</option>
<option value="tc">Turks and Caicos Islands</option>
<option value="tv">Tuvalu</option>
<option value="ug">Uganda</option>
<option value="ua">Ukraine</option>
<option value="ae">United Arab Emirates</option>
<option value="gb">United Kingdom</option>
<option value="um">United States Minor Outlying Islands</option>
<option value="us">United States</option>
<option value="uy">Uruguay</option>
<option value="uz">Uzbekistan</option>
<option value="vu">Vanuatu</option>
<option value="ve">Venezuela, Bolivarian Republic</option>
<option value="vn">Viet Nam</option>
<option value="vg">Virgin Islands, British</option>
<option value="vi">Virgin Islands, U.S.</option>
<option value="wales">Wales</option>
<option value="wf">Wallis and Futuna</option>
<option value="eh">Western Sahara</option>
<option value="ye">Yemen</option>
<option value="zm">Zambia</option>
<option value="zanzibar">Zanzibar</option>
<option value="zw">Zimbabwe</option>
</select>
</td>
</tr>

<?php if($mvcore['reg_rules'] == 'on') { ?>
<tr align="center">
<td><input type="checkbox" name="server_rules"></td>
<td> <?php echo register_iacknowtharead;?> <a href="-id-Rules.html"><b><?php echo register_serverrles;?></b></a>.</td>
</tr>
<?php } ?>

<?php if($mvcore['reC_sitekey'] == '') {} else { if($mvcore['reC_onoff'] == 'on') { // if Captcha Enabled ?>
<tr align="center">
<td><?php echo register_entercaptcha;?></td>
<td align="center"><div align="center"><?php
require_once('system/engine_plugins/recaptchalib.php');
$publickey = $mvcore['reC_sitekey'];
echo recaptcha_get_html($publickey);
?></div>
</td>
</tr>
<?php } } ?>

<tr align="center">
<td colspan="2" align="center" style="padding-top:10px;"><button class="mvcore-button-style" name="rs_reg_form" style="cursor:pointer" type="submit"><?php echo register_registeracc; ?></button></td>
</tr>
</table>
</form>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>

<?php } else {

if($_SESSION['user_login'] == 'ok'){
echo '<div class="mvcore-nNote mvcore-nSuccess">'.eng_success_reglis_page.'</div>';
} else {
echo'<div class="mvcore-nNote mvcore-nFailure">'.eng_please_reglis_page.'</div>';
}
}; ?>

Code: [Select]
<?php
/*
 * This is a PHP library that handles calling reCAPTCHA.
 *    - Documentation and latest version
 *          http://recaptcha.net/plugins/php/
 *    - Get a reCAPTCHA API Key
 *          https://www.google.com/recaptcha/admin/create
 *    - Discussion group
 *          http://groups.google.com/group/recaptcha
 *
 * Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net
 * AUTHORS:
 *   Mike Crawford
 *   Ben Maurer
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

/**
 * The reCAPTCHA server URL's
 */
define("RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api");
define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api");
define("RECAPTCHA_VERIFY_SERVER", "www.google.com");

/**
 * Encodes the given data into a query string format
 * @param $data - array of string elements to be encoded
 * @return string - encoded request
 */
function _recaptcha_qsencode ($data) {
        $req = "";
        foreach ( $data as $key => $value )
                $req .= $key . '=' . urlencode( stripslashes($value) ) . '&';

        // Cut the last '&'
        $req=substr($req,0,strlen($req)-1);
        return $req;
}



/**
 * Submits an HTTP POST to a reCAPTCHA server
 * @param string $host
 * @param string $path
 * @param array $data
 * @param int port
 * @return array response
 */
function _recaptcha_http_post($host, $path, $data, $port = 80) {

        $req = _recaptcha_qsencode ($data);

        $http_request  = "POST $path HTTP/1.0\r\n";
        $http_request .= "Host: $host\r\n";
        $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
        $http_request .= "Content-Length: " . strlen($req) . "\r\n";
        $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
        $http_request .= "\r\n";
        $http_request .= $req;

        $response = '';
        if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
                die ('Could not open socket');
        }

        fwrite($fs, $http_request);

        while ( !feof($fs) )
                $response .= fgets($fs, 1160); // One TCP-IP packet
        fclose($fs);
        $response = explode("\r\n\r\n", $response, 2);

        return $response;
}



/**
 * Gets the challenge HTML (javascript and non-javascript version).
 * This is called from the browser, and the resulting reCAPTCHA HTML widget
 * is embedded within the HTML form it was called from.
 * @param string $pubkey A public key for reCAPTCHA
 * @param string $error The error given by reCAPTCHA (optional, default is null)
 * @param boolean $use_ssl Should the request be made over ssl? (optional, default is false)

 * @return string - The HTML to be embedded in the user's form.
 */
function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
{
if ($pubkey == null || $pubkey == '') {
die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
}

if ($use_ssl) {
                $server = RECAPTCHA_API_SECURE_SERVER;
        } else {
                $server = RECAPTCHA_API_SERVER;
        }

        $errorpart = "";
        if ($error) {
           $errorpart = "&amp;error=" . $error;
        }
        return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>

<noscript>
  <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
  <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
  <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript>';
}




/**
 * A ReCaptchaResponse is returned from recaptcha_check_answer()
 */
class ReCaptchaResponse {
        var $is_valid;
        var $error;
}


/**
  * Calls an HTTP POST function to verify if the user's guess was correct
  * @param string $privkey
  * @param string $remoteip
  * @param string $challenge
  * @param string $response
  * @param array $extra_params an array of extra variables to post to the server
  * @return ReCaptchaResponse
  */
function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
{
if ($privkey == null || $privkey == '') {
die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
}

if ($remoteip == null || $remoteip == '') {
die ("For security reasons, you must pass the remote ip to reCAPTCHA");
}



        //discard spam submissions
        if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) {
                $recaptcha_response = new ReCaptchaResponse();
                $recaptcha_response->is_valid = false;
                $recaptcha_response->error = 'incorrect-captcha-sol';
                return $recaptcha_response;
        }

        $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
                                          array (
                                                 'privatekey' => $privkey,
                                                 'remoteip' => $remoteip,
                                                 'challenge' => $challenge,
                                                 'response' => $response
                                                 ) + $extra_params
                                          );

        $answers = explode ("\n", $response [1]);
        $recaptcha_response = new ReCaptchaResponse();

        if (trim ($answers [0]) == 'true') {
                $recaptcha_response->is_valid = true;
        }
        else {
                $recaptcha_response->is_valid = false;
                $recaptcha_response->error = $answers [1];
        }
        return $recaptcha_response;

}

/**
 * gets a URL where the user can sign up for reCAPTCHA. If your application
 * has a configuration page where you enter a key, you should provide a link
 * using this function.
 * @param string $domain The domain where the page is hosted
 * @param string $appname The name of your application
 */
function recaptcha_get_signup_url ($domain = null, $appname = null) {
return "https://www.google.com/recaptcha/admin/create?" .  _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname));
}

function _recaptcha_aes_pad($val) {
$block_size = 16;
$numpad = $block_size - (strlen ($val) % $block_size);
return str_pad($val, strlen ($val) + $numpad, chr($numpad));
}

/* Mailhide related code */

function _recaptcha_aes_encrypt($val,$ky) {
if (! function_exists ("mcrypt_encrypt")) {
die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
}
$mode=MCRYPT_MODE_CBC;   
$enc=MCRYPT_RIJNDAEL_128;
$val=_recaptcha_aes_pad($val);
return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
}


function _recaptcha_mailhide_urlbase64 ($x) {
return strtr(base64_encode ($x), '+/', '-_');
}

/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */
function recaptcha_mailhide_url($pubkey, $privkey, $email) {
if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " .
     "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>");
}


$ky = pack('H*', $privkey);
$cryptmail = _recaptcha_aes_encrypt ($email, $ky);

return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);
}

/**
 * gets the parts of the email to expose to the user.
 * eg, given johndoe@example,com return ["john", "example.com"].
 * the email is then displayed as john...@example.com
 */
function _recaptcha_mailhide_email_parts ($email) {
$arr = preg_split("/@/", $email );

if (strlen ($arr[0]) <= 4) {
$arr[0] = substr ($arr[0], 0, 1);
} else if (strlen ($arr[0]) <= 6) {
$arr[0] = substr ($arr[0], 0, 3);
} else {
$arr[0] = substr ($arr[0], 0, 4);
}
return $arr;
}

/**
 * Gets html to display an email address given a public an private key.
 * to get a key, go to:
 *
 * http://www.google.com/recaptcha/mailhide/apikey
 */
function recaptcha_mailhide_html($pubkey, $privkey, $email) {
$emailparts = _recaptcha_mailhide_email_parts ($email);
$url = recaptcha_mailhide_url ($pubkey, $privkey, $email);

return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) .
"' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]);

}


?>

Gracias:


Offline Zahamael #1 Posteado: April 29, 2020, 11:11:05 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 265
  • Gracias recibida: 2494
  • 00
Puedes ingresar a este tema y poder descargar el modulo correcto para esto saludos .
http://tuservermu.com.ve/index.php?topic=19934.0


Offline wrestler #2 Posteado: April 29, 2020, 06:47:18 PM | Modificado: April 29, 2020, 07:18:04 PM by wrestler

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 1
  • es
cuando cambio con esos files bro no me aparece la opcion register account que ago ?


Offline wrestler #3 Posteado: May 01, 2020, 05:47:44 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 1
  • es

Offline wrestler #4 Posteado: May 01, 2020, 05:55:25 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 1
  • es
ni dios por aki ...


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
8 Replies
2012 Views
Last post March 31, 2019, 01:48:15 AM
by Maxic1987
4 Replies
869 Views
Last post October 01, 2018, 09:52:15 PM
by Angel Olano
5 Replies
1564 Views
Last post October 31, 2018, 12:46:01 AM
by c0d0m0
8 Replies
494 Views
Last post December 20, 2023, 12:12:18 PM
by OBBY