summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #100 from fredden/patch-1Marco Ceppi2014-01-091-1/+1
|\ | | | | Improves open_basedir detection
| * Improves open_basedir detectionDan Wallis2013-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fredden@gordo:/tmp/php-openid/examples$ php detect.php | grep -C1 basedir If you are using a filesystem-based store or SQLite, be aware that open_basedir <http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir> is in effect. This means that your data will have to be stored in one of the fredden@gordo:/tmp/php-openid/examples$ php -i | grep basedir open_basedir => no value => no value fredden@gordo:/tmp/php-openid/examples$ vi detect.php fredden@gordo:/tmp/php-openid/examples$ php detect.php | grep basedir The *open_basedir* configuration restriction is not in effect. fredden@gordo:/tmp/php-openid/examples$ git diff detect.php diff --git a/examples/detect.php b/examples/detect.php index 9c59db3..90e3995 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -352,7 +352,7 @@ function detect_stores($r, &$out) } $basedir_str = ini_get('open_basedir'); - if (gettype($basedir_str) == 'string') { + if (gettype($basedir_str) == 'string' && $basedir_str) { $url = 'http://www.php.net/manual/en/features.safe-mode.php' . '#ini.open-basedir'; $lnk = $r->link($url, 'open_basedir'); fredden@gordo:/tmp/php-openid/examples$
* | Changed gist location as the current was returning 404, new Hello World! ↵editing on sandpit2013-10-031-1/+1
|/ | | | gist created
* Clean up reference assignment of objects.Olav Morken2012-10-194-14/+14
| | | | | Since all objects are passed by reference in PHP 5, assigning them by reference does not make sense, and in some cases causes warnings.
* Fixing issue #32 : https://github.com/openid/php-openid/issues/32Rodrigo Primo2012-10-111-1/+5
|
* Merge pull request #47 from starsquare/masterWill Norris2012-01-023-18/+18
|\ | | | | | | | | Fix for all dl() cases and short_open_tag I'm pretty sure we should remove the dl() calls entirely, since it is not longer present in PHP 5.3, but going ahead and merging this as-is for now.
| * fix for rest of dl() calls, also avoid ini_set() as may not work on safe_modeChris Buckley2011-05-032-4/+4
| |
| * fix for short_open_tag = 0Chris Buckley2011-05-031-14/+14
| |
* | Merge pull request #59 from staktrace/fix-detectWill Norris2012-01-021-2/+2
|\ \ | | | | | | Fix detect
| * | Update the URL used for HTTPFetch testing now that github's behaviour has ↵Kartikaya Gupta2011-10-021-1/+1
| | | | | | | | | | | | changed and they do some redirects. This makes the test pass again
| * | Remove angle brackets from around a URL, since if the output is in text/html ↵Kartikaya Gupta2011-10-021-1/+1
| |/ | | | | | | format the URL doesn't get printed.
* | Fix minor spelling error.Paul Waring2011-11-091-1/+1
|/
* Made some hardcoded tmp paths dynamic by using sys_get_temp_dir. If function ↵Philipp Söhnlein2011-01-161-1/+19
| | | | is not available the old mechanisms are used.
* Fixed warnings in try_auth.php, consumer.php. Fixed reference to ↵long2010-07-203-5/+10
| | | | openid-enabled.com in detect.php
* 1. Removed assigning by reference new operator result (E_DEPRECATED).Shein Alexey2010-07-201-2/+1
|
* 1. Added dl() existance checking.Shein Alexey2010-07-201-6/+6
| | | | 2. Fixed a notice with absent $_GET parameter.
* Removed/changed references to openidenabled.com. At this time, not every ↵2.2.0Lilli2010-03-163-15/+4
| | | | reference has been updated.
* Added the following patch from the trac.openidenabled.com ticket #253:Lilli2010-02-101-3/+22
| | | | | | | | | | | | | | | | | | | http://trac.openidenabled.com/trac/attachment/ticket/253/detect.patch.txt Original Message: Opened 2 years ago Reported by: http://openid.jamus.com/ detect.php - Detect "corruption" of query string by mod_encoding "The mod_encoding module "corrupts" the query string by translating %xx in the query sring to the character representation. For example, for the URL http://foo.com?a=a%26b, the QUERY_STRING should be a=a%26b, but with mod_encoding enabled, QUERY_STRING is a=a&b. This corruption prevents the library from working correctly. Attached is a simple patch to detect.php to detect this. I hope to save somebody else time tracking this down. mod_encoding was enabled by my webhost (dreamhost.com) when I enabled web_dav for the domain." All hunks were applied successfully.
* Revert "[ remove closing ?> tag from all files ]"Luke Shepard2009-05-2719-70/+84
| | | | | | This reverts commit a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0. I'm going to stop playing in bce's fork, and start messing in my own. Sorry for the mess Brian :)
* Revert "[ correct errors in removing trailing ?> ]"Luke Shepard2009-05-276-78/+67
| | | | This reverts commit f963a700e4440074a5b86d382789e75795206482.
* [ correct errors in removing trailing ?> ]Luke Shepard2009-05-276-67/+78
| | | | | | | | In the last commit, I over-aggressively removed closing PHP tags. While I dislike the practice of using close tags within templates, it is how this library works, so let's put them back. Checked that all PHP compiles with "php -l".
* [ remove closing ?> tag from all files ]Luke Shepard2009-05-2719-84/+70
| | | | | | | | | | Reviewed By: Will Norris Facebook has a policy to not have closing ?> tags at the bottom of PHP files. It can unintentionally introduce newlines which causes ridiculous bugs. This is recommended in the Zend style guide: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
* [project @ Demo server: remove stale HMACSHA1.php include]Kevin Turner2008-07-081-1/+0
|
* [project @ Make the detect script work with 206 responses from the fetcher]Kevin Turner2008-06-251-3/+4
|
* [project @ examples/discover: import consumer/common.php to set include_path]tailor2008-06-061-0/+3
|
* [project @ Add examples/discover.php tool]tailor2008-06-061-0/+97
|
* [project @ demo RP: indentation]tailor2008-06-061-25/+25
|
* [project @ demo RP: escape response information prior to output]tailor2008-06-061-10/+21
|
* [project @ Update license strings to say Apache]tailor2008-05-301-1/+1
|
* [project @ examples/consumer: Return Consumer object by reference in ↵tailor2008-05-291-1/+2
| | | | getConsumer()]
* [project @ use the htmlMarkup method to get auto-submitting code, instead of ↵tailor2008-05-271-10/+2
| | | | doing it in the example consumer]
* [project @ fix copyright notices to include 2008]http://mike.glover.myopenid.com2008-05-271-1/+1
|
* [project @ Example server: set response code in action_default]tailor2008-05-201-0/+5
|
* [project @ Swap XRDS and server urls in identity page code (thanks: ↵tailor2008-05-201-3/+3
| | | | lulurun@gmail.com)]
* [project @ Use PATH_SEPARATOR in detect.php (thanks: ↵tailor2008-02-191-1/+1
| | | | http://jeroen.hellingman.myopenid.com/)]
* [project @ Fix user XRDS]tailor2008-02-042-3/+3
|
* [project @ Fix IDP XRDS in example server: advertise correct type]tailor2008-02-041-3/+1
|
* [project @ [FIX #38] Replace direct usage of NO_MATH_SUPPORT with function ↵tailor2007-11-261-2/+3
| | | | calls]
* [project @ Update example RP to use PAPE extension]tailor2007-11-204-0/+62
|
* [project @ Update example consumer to use getDisplayIdentifier()]tailor2007-11-191-1/+1
|
* [project @ Correct Sreg response bug in demo server]tailor2007-11-151-1/+1
|
* [project @ Fix example consumer complete() call]tailor2007-11-131-1/+1
|
* [project @ Pass return_to to complete() in example consumer]tailor2007-11-133-23/+24
|
* [project @ Change name of OpenID form field in example consumer]tailor2007-10-022-3/+3
|
* [project @ Update detect.php script to check SSL support]tailor2007-05-221-5/+25
|
* [project @ Fix simple registration API to use toMessage()]tailor2007-04-161-2/+10
|
* [project @ Update examples README]tailor2007-04-061-18/+30
|
* [project @ Fix idpage generation]tailor2007-04-061-1/+2
|
* [project @ Use type URI constants in generating XRDS]tailor2007-04-061-2/+8
|
* [project @ Add user-specific XRDS rendering]tailor2007-04-063-2/+52
|
* [project @ Add no-cache headers]tailor2007-04-061-0/+3
|
* [project @ Add no-cache HTTP-Equivs]tailor2007-04-061-0/+2
|
* [project @ Fix stray index references in setup.php]tailor2007-04-061-9/+9
|
* [project @ Remove duplicate login_needed_pat in example server]tailor2007-04-061-3/+0
|
* [project @ Fix and clarify text on login page]tailor2007-04-061-3/+7
|
* [project @ Fix table creation for sqlitestore in server example]tailor2007-04-061-1/+3
|
* [project @ Fix 2.0 IDP NS URI]tailor2007-04-051-1/+1
|
* [project @ Fix short tags in setup.php]tailor2007-04-051-44/+44
|
* [project @ Add opening and closing PHP tag to example server config]tailor2007-04-051-0/+3
|
* [project @ Update example server to check HTTPS cleanly]tailor2007-04-051-1/+1
|
* [project @ Move math extension data into a function]tailor2007-04-041-2/+1
|
* [project @ Add bytes and toBytes to avoid multibyte string overloading]tailor2007-04-041-1/+1
|
* [project @ decodeRequest defaults to getting query data implicitly]tailor2007-04-021-2/+1
|
* [project @ Update example server to use new Sreg API]tailor2007-03-311-0/+17
|
* [project @ Update example server to use getQuery]tailor2007-03-311-2/+2
|
* [project @ Updated example consumer to not pass query args directly]tailor2007-03-311-1/+1
|
* [project @ Update example consumer to use SReg API]tailor2007-03-303-5/+23
|
* [project @ Example server overhaul; add OpenID 2 features]tailor2007-03-2210-235/+103
|
* [project @ Update example server to accept arbitrary logins (to make it ↵tailor2007-03-199-118/+62
| | | | easier to use and configure)]
* [project @ Fix javascript in example consumer]tailor2007-03-191-1/+1
|
* [project @ [2/2] Change Services_Yadis_ and Services/Yadis/]tailor2007-03-121-6/+6
|
* [project @ Comments in example consumer]tailor2007-03-102-4/+18
|
* [project @ Refactored example consumer]tailor2007-03-103-99/+149
|
* [project @ Make example consumer send redirect or use form markup]tailor2007-03-061-3/+19
|
* [project @ API CHANGE: Make Auth_OpenID_extensionResponse::extensionResponse ↵tailor2007-01-091-1/+1
| | | | take boolean to require extension args to be signed]
* [project @ Fix example server: properly initialize SQL stores]tailor2007-04-021-2/+10
|
* [project @ Fix include_path in example server server.php]tailor2007-03-141-0/+5
|
* [project @ Fix include_path in example server setup.php]tailor2007-03-141-0/+4
|
* [project @ Unify php.net links]tailor2007-03-121-1/+1
|
* [project @ Make it very clear what the result is]tailor2007-03-121-0/+2
|
* [project @ Whitespace]tailor2007-03-121-1/+3
|
* [project @ Say CURL isn't required]tailor2007-03-121-3/+3
|
* [project @ Remove comment]tailor2007-03-121-1/+0
|
* [project @ Include yadis code and complain if it isn't found]tailor2007-03-121-0/+8
|
* [project @ Mention absence of open_basedir]tailor2007-03-121-0/+3
|
* [project @ Boldify web_user]tailor2007-03-121-1/+1
|
* [project @ Mention file store]tailor2007-03-121-1/+1
|
* [project @ Boldify text]tailor2007-03-121-0/+1
|
* [project @ Typo fix]tailor2007-03-121-1/+1
|
* [project @ Only try to include one file in inclusion test]tailor2007-03-121-3/+2
|
* [project @ Remove HTML tags from format-agnostic output]tailor2007-03-121-2/+2
|
* [project @ Fix example consumer on Windows]tailor2007-01-161-1/+1
|
* [project @ Fix example consumer so it works in https mode, too]tailor2006-12-011-2/+7
|
* [project @ add sreg[email,postcode] support to server,consumer examples]tailor2006-09-084-4/+28
|
* [project @ Added message to example consumer to show canonical ID for XRI]tailor2006-08-211-0/+5
|
* [project @ Moved curl fetcher detection code into Yadis]tailor2006-08-151-2/+2
|
* [project @ Removed yadis support detection from detect.php]tailor2006-08-111-26/+1
|
* [project @ Fixed detect.php]tailor2006-08-041-1/+1
|
* [project @ Updated detect.php]tailor2006-08-041-10/+78
|
* [project @ Updated example consumer to request sreg.email]tailor2006-07-242-0/+7
|