From f7755964e8703d66cee123a18519a07d49df0ae0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Nov 2014 01:42:48 +0100 Subject: modified for use case --- header/index.php | 18 +++++++++-------- index.php | 6 +++--- linkshorter/functions.php | 3 ++- linkshorter/index.html | 50 ----------------------------------------------- linkshorter/index.php | 18 +++++++++++------ tools/footer.php | 18 +++++++++++++++++ tools/navbar.php | 7 +++++-- tools/style.css | 8 ++++++++ 8 files changed, 58 insertions(+), 70 deletions(-) delete mode 100644 linkshorter/index.html diff --git a/header/index.php b/header/index.php index 1a027ab..a41912a 100644 --- a/header/index.php +++ b/header/index.php @@ -38,7 +38,7 @@ if ( $set ){ $redis->ping(); $redis->select(9); - $key = md5( $url . serialize($customHeader) ); + $key = md5( $url . $method . serialize($customHeader) ); if( $redis->exists( $key ) ){ return unserialize( $redis->get( $key ) ); @@ -81,7 +81,7 @@ if ( $set ){ return $result; } - if ( ! isset($_REQUEST['method']) || $_REQUEST['method'] != "" ){ + if ( ! isset($_REQUEST['method']) || $_REQUEST['method'] == "" ){ $_REQUEST['method'] = 'get'; } else { $_REQUEST['method'] = strtolower($_REQUEST['method']); @@ -112,13 +112,13 @@ Host: "" -
Check the response headers for websites.
Enter a URL and hit the submit button.