@@ 98-101 (lines=4) @@ | ||
95 | $consumer_secret = ''; |
|
96 | ||
97 | // If the $_GET parameters are present, use those first. |
|
98 | if ( ! empty( $_GET['consumer_key'] ) && ! empty( $_GET['consumer_secret'] ) ) { |
|
99 | $consumer_key = $_GET['consumer_key']; |
|
100 | $consumer_secret = $_GET['consumer_secret']; |
|
101 | } |
|
102 | ||
103 | // If the above is not present, we will do full basic auth. |
|
104 | if ( ! $consumer_key && ! empty( $_SERVER['PHP_AUTH_USER'] ) && ! empty( $_SERVER['PHP_AUTH_PW'] ) ) { |
|
@@ 104-107 (lines=4) @@ | ||
101 | } |
|
102 | ||
103 | // If the above is not present, we will do full basic auth. |
|
104 | if ( ! $consumer_key && ! empty( $_SERVER['PHP_AUTH_USER'] ) && ! empty( $_SERVER['PHP_AUTH_PW'] ) ) { |
|
105 | $consumer_key = $_SERVER['PHP_AUTH_USER']; |
|
106 | $consumer_secret = $_SERVER['PHP_AUTH_PW']; |
|
107 | } |
|
108 | ||
109 | // Stop if don't have any key. |
|
110 | if ( ! $consumer_key || ! $consumer_secret ) { |