diff --git a/index.php b/index.php index 773c57b..d1eeeba 100755 --- a/index.php +++ b/index.php @@ -170,6 +170,10 @@ $(document).ready(function() // Part to be executed if FORM has been submitted if ( isset($_REQUEST['url']) ) { + if ( isset($_POST['antispam']) && $_POST['antispam'] != user ) { + exit('
Antispam check failed!
'); + } + $url = yourls_sanitize_url( $_REQUEST['url'] ); $keyword = isset( $_REQUEST['keyword'] ) ? yourls_sanitize_keyword( $_REQUEST['keyword'] ): '' ; $title = isset( $_REQUEST['title'] ) ? yourls_sanitize_title( $_REQUEST['title'] ) : '' ; @@ -199,9 +203,9 @@ $(document).ready(function() echo <<$ISQlongcopy
-$ISQshortcopy
-$ISQstatscopy
+$ISQlongcopy
+$ISQshortcopy
+$ISQstatscopy
$output_copy
@@ -237,6 +241,7 @@ RESULT;
+
Bot Human
HTML; diff --git a/public/style.css b/public/style.css index 2007477..5f3afcd 100755 --- a/public/style.css +++ b/public/style.css @@ -134,6 +134,13 @@ h2 { float: right; } +.radio { + margin-right: 10%; +} +input[type="radio"] { + margin-right: 1%; +} + a.bookmarklet { border-radius: 11px; background: #ddd url(../img/button.png) repeat-x; @@ -169,7 +176,7 @@ a.bookmarklet { /* Output */ .output label { width: 30%; - float:left; + float: left; } .output input { @@ -178,6 +185,7 @@ a.bookmarklet { .error { color: red; + padding-bottom: 20px; } /* Footer */