is_valid) { // What happens when the CAPTCHA was entered incorrectly die ( '

' . yourls__( 'The reCAPTCHA wasn\'t entered correctly. Go back and try it again.', 'isq_translation' ) . '

' ); } $url = isset( $_REQUEST['url'] ) ? yourls_sanitize_url( $_REQUEST['url'] ) : ''; $keyword = isset( $_REQUEST['keyword'] ) ? yourls_sanitize_keyword( $_REQUEST['keyword'] ) : '' ; >>>>>>> ff9d158626e1981bd381cda4e9ccf791b75d4dc0 $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'] : ''; $recaptcha_data = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=6Lc-RQETAAAAANBhC2ZdRSWiQQNaDURx2-EIN-SI&response=' . $_REQUEST['g-recaptcha-response']); $recaptcha_json = json_decode($recaptcha_data, TRUE); if ($recaptcha_json['success'] != 'true') { // What happens when the CAPTCHA was entered incorrectly die ( '

' . yourls__( 'Are you a bot? Google thinks so. Go back and try again.', 'isq_translation' ) . '

' ); } // QR code shenanigans include('public/phpqrcode/qrlib.php'); $qrContainerId = 'url-qr-code'; $saveToFile = false; $imageWidth = 600; // in pixels $qrCode = QRcode::svg($url, $qrContainerId, $saveToFile, QR_ECLEVEL_L, $imageWidth); ?>

' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . ''; } ?>

' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . ''; } ?>

' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . ''; } ?>

' . yourls__( 'QR code', 'isq-translation' ) . '

' . yourls__( 'Share your link with external devices', 'isq-translation' ) . '

' . $qrCode; } ?>

Facebook'; } ?> Tweet'; } ?> '; } ?> '; } ?> Share on Tumblr'; } ?>