From 718420690b7fddd53b9c6e15cc5b02473721148f Mon Sep 17 00:00:00 2001
From: Tom Slominski
Date: Fri, 1 Nov 2013 19:19:35 +0000
Subject: [PATCH] Sorted out the results page
---
result.php | 78 ++++++++++++++++++++++--------------------------------
1 file changed, 32 insertions(+), 46 deletions(-)
diff --git a/result.php b/result.php
index c8f34b3..b682e25 100644
--- a/result.php
+++ b/result.php
@@ -1,56 +1,42 @@
' . yourls__( 'Antispam check failed!', 'isq_translation') . '
');
- // }
+// antispam
+// if ( isset($_POST['antispam']) && $_POST['antispam'] != user ) {
+// exit('' . yourls__( 'Antispam check failed!', 'isq_translation') . '
');
+// }
- $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 );
+$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'] : '';
-
- if (!empty(ISQ::$social['facebook'])) { $ISQfacebook = '
'; }
- if (!empty(ISQ::$social['twitter'])) { $ISQtwitter = ''; }
- if (!empty(ISQ::$social['plus'])) { $ISQplus = ''; }
- if (!empty(ISQ::$social['linkedin'])) { $ISQlinkedin = ''; }
- if (!empty(ISQ::$general['qr'])) { $ISQqr = '' . yourls__( 'QR code', 'isq-translation' ) . '
' . yourls__( 'Share your link with external devices', 'isq-translation' ) . '
'; }
- if (!empty(ISQ::$general['clipboard'])) { $ISQlongcopy = ''; }
- if (!empty(ISQ::$general['clipboard'])) { $ISQshortcopy = ''; }
- if (!empty(ISQ::$general['clipboard'])) { $ISQstatscopy = ''; }
-
- $output_original = yourls__( 'Original URL:', 'isq_translation');
- $output_short = yourls__( 'Short URL:', 'isq_translation');
- /* translators: This is short for statistics */
- $output_stats = yourls__( 'Stats:', 'isq_translation');
- $output_copy = yourls__( 'Click on a link and press Ctrl+C to quickly copy it.', 'isq_translation');
- $output_share_h2 = yourls__( 'Share', 'isq_translation');
- $output_share_p = yourls__( 'Share your short URL', 'isq_translation');
+$shorturl = isset( $return['shorturl'] ) ? $return['shorturl'] : '';
+$message = isset( $return['message'] ) ? $return['message'] : '';
+$title = isset( $return['title'] ) ? $return['title'] : '';
?>
- $error
-
-
$ISQlongcopy
-
$ISQshortcopy
-
$ISQstatscopy
-
$output_copy
-
- $ISQqr
+
+
- $output_share_h2
- $output_share_p
- $ISQfacebook
- $ISQtwitter
- $ISQplus
- $ISQlinkedin
+
+
+
' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . ''; } ?>
+
' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . ''; } ?>
+
' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . ''; } ?>
+
+
-
\ No newline at end of file
+
+' . yourls__( 'QR code', 'isq-translation' ) . '' . yourls__( 'Share your link with external devices', 'isq-translation' ) . '
'; } ?>
+
+
+
+
+
'; } ?>
+Tweet'; } ?>
+'; } ?>
+'; } ?>
+
+
\ No newline at end of file