diff options
author | tailor <cygnus@janrain.com> | 2006-02-13 23:48:12 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-02-13 23:48:12 +0000 |
commit | d8ddb7b5fc695882fac32ac29a8d4d3a6fc9b1cd (patch) | |
tree | ff1def4a915b2f8a40971b892a859e36cda92c6c /examples/detect.php | |
parent | ec3d3d6dff2e631c3dacecc19036411c61e600d9 (diff) | |
download | php-openid-d8ddb7b5fc695882fac32ac29a8d4d3a6fc9b1cd.zip php-openid-d8ddb7b5fc695882fac32ac29a8d4d3a6fc9b1cd.tar.gz php-openid-d8ddb7b5fc695882fac32ac29a8d4d3a6fc9b1cd.tar.bz2 |
[project @ Fixed bugs in CURL fetcher and updated detection script.]
Diffstat (limited to 'examples/detect.php')
-rw-r--r-- | examples/detect.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/detect.php b/examples/detect.php index 77eb7e2..996237d 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -359,7 +359,6 @@ function detect_stores($r, &$out) function detect_fetcher($r, &$out) { $out .= $r->h2('HTTP Fetching'); - require_once "Auth/OpenID.php"; if (Auth_OpenID_CURL_PRESENT) { // XXX: actually fetch a URL. $out .= $r->p('This PHP installation has support for libcurl. Good.'); @@ -418,7 +417,11 @@ $out = $r->start($title) . 'are set up to use the JanRain PHP OpenID library.'); $body = ''; -if (!include('Auth/OpenID/BigMath.php')) { + +$_file1 = include 'Auth/OpenID.php'; +$_file2 = include 'Auth/OpenID/BigMath.php'; + +if (!($file1 && $file2)) { $path = ini_get('include_path'); $body .= $r->p( 'Cannot find the OpenID library. It must be in your PHP include ' . |