Merging noCAPTCHA reCAPTCHA

This commit is contained in:
Tom Slominski
2015-02-24 15:24:27 +00:00
parent 1ff153dad9
commit 770f24786b
3 changed files with 31 additions and 6 deletions

View File

@@ -18,6 +18,14 @@ if ($recaptcha_json['success'] != 'true') {
die ( '<p class="error" title="' . $resp->error . '">' . yourls__( 'Are you a bot? Google thinks so. Go back and try again.', 'isq_translation' ) . '</p></div></div>' );
}
$url = yourls_sanitize_url( $_REQUEST['url'] );
$keyword = isset( $_REQUEST['keyword'] ) ? yourls_sanitize_keyword( $_REQUEST['keyword'] ): '' ;
$title = isset( $_REQUEST['title'] ) ? yourls_sanitize_title( $_REQUEST['title'] ) : '' ;
$return = yourls_add_new_link( $url, $keyword, $title );
$shorturl = isset( $return['shorturl'] ) ? $return['shorturl'] : '';
$message = isset( $return['message'] ) ? $return['message'] : '';
$title = isset( $return['title'] ) ? $return['title'] : '';
?>
<!-- Error reporting -->