From e898da7e6ca1587382f3adc35c9b03dc9868a892 Mon Sep 17 00:00:00 2001 From: Tom Slominski Date: Sat, 2 Nov 2013 18:19:38 +0000 Subject: [PATCH] reCAPTCHA support --- header.php | 10 +++++++++- index.php | 3 ++- public/config-sample.php | 7 +++++++ result.php | 33 +++++++++++++++++++-------------- 4 files changed, 37 insertions(+), 16 deletions(-) diff --git a/header.php b/header.php index 394405c..da91fa7 100644 --- a/header.php +++ b/header.php @@ -5,7 +5,7 @@ require_once( dirname(__FILE__).'/includes/load-yourls.php' ); // Ask for Infinity Squared settings include( dirname(__FILE__).'/public/config.php' ); -class ISQ { public static $general = array(), $links = array(), $social = array(); } +class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); } // Load translations function isq_load_textdomain() { @@ -27,6 +27,9 @@ if ( $message = $url. yourls__( 'added to database', 'isq_translation') ) { } elseif ( $message = yourls__( 'This URL is a short URL', 'isq_translation') ) { $error = $genericerror . '

' . yourls__( 'You cannot shorten a short URL!', 'isq_translation') . '

'; } + +// Load reCAPTCHA +require_once('public/recaptchalib.php'); ?> @@ -65,6 +68,11 @@ if ( $message = $url. yourls__( 'added to database', 'isq_translation') ) { {lang: "en-GB"} +