• 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 1 Guest 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)

The PHPVibe Archive is now public

Started by Marius P.


Replies: 0
Views: 18666

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 43713

How to use the PHPVibe user system (internally or externally)

Started by PHPVibe A.


Replies: 0
Views: 10634

New PHPVIBE 5 (Beta testing DISCUSSION)

Started by yafe3


Replies: 31
Views: 20659

The problem of text chatting PHPVibe 5.0.

Started by Nayn


Replies: 4
Views: 8532

New PHPVibe v5 Issues and Discussions

Started by DeadFish


Replies: 1
Views: 8593

Better Idea for PHPVibe v5 Channels page

Started by DeadFish


Replies: 2
Views: 4185