Skip to content

Instantly share code, notes, and snippets.

View Ternoc's full-sized avatar

Ternoc Ternoc

  • Bordeaux
  • 23:41 (UTC +02:00)
View GitHub Profile

Debian: Mail Server

Intro

Domain: example.com
Server Name: elaninwe
Server FQDN: elaninwe.example.com
Our user: aria

@Ternoc
Ternoc / recaptcha.function.php
Last active August 29, 2015 14:20
Easy fuction for veryfing a recaptcha
/*
Call this function to verify is the ReCaptcha is valid
Call with parameter :
$_POST['g-recaptcha-response']
Call with this optional parmater :
$user_ip
Return false is recaptcha is invalid or true if valid
if(isValid($_POST['g-recaptcha-response']))
{
echo 'recaptcha valid';