Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

hybridauth curl requirement check #67

Closed
wants to merge 1 commit into from

3 participants

@asmcad

no, you are not. seems there is no solution to it...

@hybridauth

Thanks @mistergiri for your PR, but I won't accept it. All requirements check are going to be removed from HA code.

@hybridauth hybridauth closed this
@hybridauth hybridauth referenced this pull request from a commit
hybridauth #39, #67 1e963e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 28, 2012
  1. @mistergiri

    hybridauth requirements

    mistergiri authored
This page is out of date. Refresh to see the latest.
Showing with 23 additions and 0 deletions.
  1. +23 −0 requirements.php
View
23 requirements.php
@@ -0,0 +1,23 @@
+<?
+if(!function_exists('curl_init')){print ("cURL library cannot be found. Make sure it is installed."); exit;}
+
+ $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)";
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL,"https://www.google.com/adsense/");
+ curl_setopt($ch, CURLOPT_USERAGENT, $agent);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
+ $returned=curl_exec ($ch);
+
+
+ if($returned==null){
+ echo "Your cURL does not allow https protocol. Make sure OpenSSL is installed.<br/>
+ Details Error :<br/><b>".curl_error($ch)."</b>";
+ }else{
+ echo "Your cURL is working properly. hybridauth should work on your server.";
+ }
+
+ curl_close ($ch);
+?>
Something went wrong with that request. Please try again.