• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] PHPvibe 4 Old captcha change new recaprcha

Started by hexertem,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

hexertemTopic starter

Hello phpvib support service.
I'm facing some big problems.
One of these; It is shown in the photos.

Old captcha change new recaprcha code.. Please.
  •  

hexertemTopic starter

  •  

hexertemTopic starter

  •  

hexertemTopic starter

No Cahtcha chance code new recaptcha

PASTE CODE com_register.php

Recaptcha Create
https://www.google.com/recaptcha/admin


<?php 
/*
 
videoerzincan.com
 
*/
 
// Site key kodunuzu buraya yazin
$key='site_key_kodunuzu_buraya_yazin';
 
// Site secret kodunuzu buraya yazin
$secret='site_secret_kodunuzu_buraya_yazin';
 
$msg='';
if($_SERVER["REQUEST_METHOD"] == "POST")
{
$recaptcha=$_POST['g-recaptcha-response'];
if(!empty($recaptcha))
{
 
// curl fonksiyonumuz..
function getCurlData($url)
{
 $curl = curl_init();
 curl_setopt($curl, CURLOPT_URL, $url);
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($curl, CURLOPT_TIMEOUT, 10);
 curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16");
 $curlData = curl_exec($curl);
 curl_close($curl);
 return $curlData;
}
 
 
$google_url="https://www.google.com/recaptcha/api/siteverify";
 
// cloudflare kullanan sitelerde, kullanicinin gercek IPsini alma
// http://kuaza.com/karsilastigim-hatalar/cloudflare-kullananlar-icin-gercek-ip-alma
$ip=$_SERVER['REMOTE_ADDR'];
 
$url=$google_url."?secret=".$secret."&response=".$recaptcha."&remoteip=".$ip;
 
$res=getCurlData($url);
 
$res= json_decode($res, true);
 
// dogrulama kodu dogru ise
if($res['success'])
{
 
$msg='<div class="alert alert-success" role="alert">Dogrulamayi basariyla gectiniz</div>';
 
// dogrulama kodu yanlis ise
}else{
$msg='<div class="alert alert-danger" role="alert">Lutfen reCAPTCHA \'yi tekrar girin.</div>';
}
 
// dogrulama kodunu bos gondermisse
}else{
 
$msg='<div class="alert alert-danger" role="alert">Lutfen reCAPTCHA \'yi bos gecmeyiniz.</div>';
 
}
 
}
 
?>



end

<div class="g-recaptcha" data-sitekey="6LdLtwwTAAAAAEo1pM4TuNvjkyfZx29giTOw8WVA"></div>
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
  •  

Similar topics (7)