Commit Graph

62 Commits

Author SHA1 Message Date
sarven
500ed2f5eb Cleanup 2009-01-23 05:23:28 +00:00
Evan Prodromou
c21a2445aa Update remotesubscribe for new system 2009-01-23 01:16:36 +01:00
Evan Prodromou
4b0cf99e56 Convert use of common_server_error and common_user_error to methods on Action 2009-01-15 23:03:38 +00:00
Evan Prodromou
eaa81d25fa Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to
use the new output function (common_element() -> $this->element(), etc.)

There's still a lot to do, but it's a first step
2009-01-15 22:57:15 +00:00
Evan Prodromou
b264c03d32 move opening brace of class declaration to next line
Another gigantor PEAR coding standards patch. Here, I've moved the
opening curly bracket on a class statement to the following line.

darcs-hash:20081223194923-84dde-77a93de314caadbcb5b70bf346a4648be77a864e.gz
2008-12-23 14:49:23 -05:00
Evan Prodromou
04ef1ba8ee change function headers to K&R style
Another huge change, for PEAR code standards compliance. Function
headers have to be in K&R style (opening brace on its own line),
instead of having the opening brace on the same line as the function
and parameters. So, a little perl magic found all the function
definitions and move the opening brace to the next line (properly
indented... usually).

darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
2008-12-23 14:33:23 -05:00
Evan Prodromou
eb2f9c98ac replace NULL with null
Another global search-and-replace update. Here, I've replaced the PHP
keyword 'NULL' with its lowercase version. This is another PEAR code
standards change.

darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
2008-12-23 14:21:29 -05:00
Evan Prodromou
edbc0c665c replace all tabs with four spaces
The PEAR coding standards decree: no tabs, but indent by four spaces.
I've done a global search-and-replace on all tabs, replacing them by
four spaces. This is a huge change, but it will go a long way to
getting us towards phpcs-compliance. And that means better code
readability, and that means more participation.

darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
2008-12-23 14:19:07 -05:00
Evan Prodromou
06f99d4b55 add User-Agent to OMB requests
darcs-hash:20081211185525-5ed1f-ea300a9f824163ea7989baae4e4b439e58fd0881.gz
2008-12-11 13:55:25 -05:00
Evan Prodromou
7877e86506 check URI before sending
darcs-hash:20081118192227-84dde-3318e91d2366f3cb70bc795e313072f8e81a190c.gz
2008-11-18 14:22:27 -05:00
Evan Prodromou
a179a816b5 add some extra checks to avoid remote subscriptions to local users
darcs-hash:20081118180644-84dde-ab152249ac0844a482029b7e0f8db2780a0f15d6.gz
2008-11-18 13:06:44 -05:00
Evan Prodromou
7ff02bb7d4 try to clean up user-without-profile errors
darcs-hash:20080926145008-5ed1f-8a60ed3c5adbfe75aa044732e8d10dbdb9b93089.gz
2008-09-26 10:50:08 -04:00
Zach Copley
9fb08ec45e CSRF protection in remotesubscribe
darcs-hash:20080829054038-7b5ce-d0503a8eb7f89a9d2de4aadd4550f4342b943b09.gz
2008-08-29 01:40:38 -04:00
Evan Prodromou
a20a038542 be a little more liberal for sites that accidentally put whitespace before the xml decl
darcs-hash:20080824013803-84dde-9c5d9ce9c588cfb9baddae64366e3417f0a5fee9.gz
2008-08-23 21:38:03 -04:00
Evan Prodromou
3a262a3bcd ensure that there's a session before redirecting the user
darcs-hash:20080724231833-84dde-965c41484ecf9b85b1979e8ac76314a6b0d951ee.gz
2008-07-24 19:18:33 -04:00
Mike Cochrane
b104da04fb Colapse a lot of strings to make like easier for translators and more consisitant for users
darcs-hash:20080713053748-533db-1cdb0cf3a9e4102eb139b74a7a9d4f97dadb20b8.gz
2008-07-13 01:37:48 -04:00
Mike Cochrane
4b656f47df Merge conflicts and kill a whole lot of trailing whitespace on lines.
darcs-hash:20080709224630-533db-b5399baef280133858dac9b89c2cd6a2aba9f861.gz
2008-07-09 18:46:30 -04:00
Mike Cochrane
87b494f1eb Convert _t() to _() for gettext.
darcs-hash:20080708094531-533db-83399a46e6ec4c0fcc6249b0235961f969d1ae73.gz
2008-07-08 05:45:31 -04:00
Evan Prodromou
d6c2bd51c5 name of form on remote subscribe changed
darcs-hash:20080709005342-84dde-de6e2ce487c54ac53ea60757f216e4ba6379f196.gz
2008-07-08 20:53:42 -04:00
Evan Prodromou
ec9de70539 p.instructions -> div.instructions
darcs-hash:20080709002242-84dde-1d7a2107079ab5d84592d280a19a253663f84b4f.gz
2008-07-08 20:22:42 -04:00
Evan Prodromou
721d6f94c7 method
darcs-hash:20080702131507-84dde-507a6380fcab66c1fbcbaad6d1399c8a2f210acf.gz
2008-07-02 09:15:07 -04:00
Evan Prodromou
01ed8f5c8d add documentation for OpenMicroBlogging
darcs-hash:20080701165717-84dde-084a3dfe99e58e57c4bb9cf5dcbd6b1ffeff00bb.gz
2008-07-01 12:57:17 -04:00
Evan Prodromou
596365672a add instructions to remotesubscribe
darcs-hash:20080701163705-84dde-ee039de84a45080962671d15891f3f7f685a73a6.gz
2008-07-01 12:37:05 -04:00
Evan Prodromou
c2a170da10 broadcast profile and change subscription input id
darcs-hash:20080612184028-84dde-1f919ab373e5731efd403986ae760116769566d9.gz
2008-06-12 14:40:28 -04:00
Evan Prodromou
2354faf7ac add instructions to each form entry in forms
darcs-hash:20080612165201-84dde-1abc45a0b2fd24002bc6f3449e9fc521d4f02eac.gz
2008-06-12 12:52:01 -04:00
Evan Prodromou
e013c06346 undo fancy URLs for omb endpoints
The OAuth library uses the $_GET and $_POST arrays for checking
signatures on requests. So, we need to make sure that the client sees
the same request parameters as the server (or callback). These don't
have to be particularly readable URLs, anyways, since they're mostly
"behind the scenes".

darcs-hash:20080610123002-84dde-0bce005b77d053d22cfbba8e0743af1b49f151bb.gz
2008-06-10 08:30:02 -04:00
Evan Prodromou
a578bfc03d push yadis requirement into omb.php
darcs-hash:20080606162659-84dde-fd7d5e030aa6aeebf61d0ea7b143aa7cafce7c45.gz
2008-06-06 12:26:59 -04:00
Evan Prodromou
47047e84e7 stash URLs for return and check all values for profiles
darcs-hash:20080606065027-84dde-a4ac215010b76ef296976fdf8a94473bd80c7ffa.gz
2008-06-06 02:50:27 -04:00
Evan Prodromou
15989d6c35 store URL rather than service in $omb for bounce back
darcs-hash:20080606063721-84dde-a843ac9ef5b48aa25d15125d4f0be3f0c2e6bfb1.gz
2008-06-06 02:37:21 -04:00
Evan Prodromou
71c4032273 clear out lots of debugging code, add require to userauthorization
darcs-hash:20080603115218-84dde-f333d4541e1112487a5da1e3ad71064513e2228f.gz
2008-06-03 07:52:18 -04:00
Evan Prodromou
3182984080 fix service discovery (I think)
darcs-hash:20080603114317-84dde-04fe2734003fa8023708b6dbda6243d9fd15e9d8.gz
2008-06-03 07:43:17 -04:00
Evan Prodromou
a14833284b typo in use of omb_service_uri()
darcs-hash:20080603110749-84dde-e278a8ccf17e68735f6d5699dee5bb0e7444ec29.gz
2008-06-03 07:07:49 -04:00
Evan Prodromou
65736dc402 more debugging, don't reuse variable
darcs-hash:20080603104859-84dde-3ed15e61feb0cef1a1d0d2dc8723951ac41b00d8.gz
2008-06-03 06:48:59 -04:00
Evan Prodromou
8b9d675b30 move debugging code for checking URIs of XRD
darcs-hash:20080602205921-84dde-26945a4fb66489120115576ce1cb57a46c532e92.gz
2008-06-02 16:59:21 -04:00
Evan Prodromou
7e82a6fcb1 trying to find out why auth request is going to requesttoken
darcs-hash:20080602205534-84dde-fc7d85d50b758bc73721a6aaa87c16c41237d14f.gz
2008-06-02 16:55:34 -04:00
Evan Prodromou
e103c8b6ea get rid of callback nonce
darcs-hash:20080602201707-84dde-400855b57fcf01e597494143cc78092351043b91.gz
2008-06-02 16:17:07 -04:00
Evan Prodromou
7b24d101c0 fix consumer fetching, nonce making
darcs-hash:20080602200645-84dde-c72e2e98a955bdd7768fa39da30660dfcffd0f15.gz
2008-06-02 16:06:45 -04:00
Evan Prodromou
1de5328c49 correct server error output
darcs-hash:20080602193851-84dde-069af77a95bc89271b75b7e0c7ff965fefa1de34.gz
2008-06-02 15:38:51 -04:00
Evan Prodromou
68242de9ef add some debugging output to request token request
darcs-hash:20080602192018-84dde-11f3092598ecd0d521e0243b5683eeb484180cbd.gz
2008-06-02 15:20:18 -04:00
Evan Prodromou
0f374fb944 minor corrections for OMB discovery
darcs-hash:20080602185137-84dde-0a3db0833eaf9361447559a6366e3820ae1f0694.gz
2008-06-02 14:51:37 -04:00
Evan Prodromou
823b79366f debug info
darcs-hash:20080602183911-84dde-9b5629cd97b894875b33888195eacffabb2ebe54.gz
2008-06-02 14:39:11 -04:00
Evan Prodromou
38a621dcf8 fix assignment of omb stuff
darcs-hash:20080602183314-84dde-1f81609b2eb0d628c0e6dfe5fea7e21d799bdb3d.gz
2008-06-02 14:33:14 -04:00
Evan Prodromou
98437f21f9 make a nodes variable to pass nodes by reference
darcs-hash:20080602182153-84dde-4e5ac1c02e8e7a408d251ffa0aa2bbff190d1631.gz
2008-06-02 14:21:53 -04:00
Evan Prodromou
44058fe50a trim whitespace
darcs-hash:20080602181857-84dde-846a8899f9db1b244c946c94373c60058b48774e.gz
2008-06-02 14:18:57 -04:00
Evan Prodromou
2364c7c2fe services() returns an array
darcs-hash:20080602181759-84dde-97355611da9635d40f41eb9324731cfaa3c584e0.gz
2008-06-02 14:17:59 -04:00
Evan Prodromou
3b9f0e3867 add some debugging stuff for problems with remote subscribe
darcs-hash:20080602181254-84dde-ac7f4a362754a66facfb06a7b41f9160a0eb5caf.gz
2008-06-02 14:12:54 -04:00
Evan Prodromou
3abe0290b7 use omb_service_filter() rather than omb_match_service()
darcs-hash:20080602175936-84dde-d21c8236ef5ffd788edc81d9d7a932b2eae0ec7d.gz
2008-06-02 13:59:36 -04:00
Evan Prodromou
326def1965 move service-matching callbacks to library
darcs-hash:20080602175725-84dde-c8b3abaedcb8667130da2a080a09630d91969b5c.gz
2008-06-02 13:57:25 -04:00
Evan Prodromou
03677f1a81 better handling of XRDS files
Our generated XRDS files contain 3 XRD elements: one for OAuth, one
for OMB, and one to point to the other two. Auth_Yadis only gives us
the last one, so we have to use it to find the other two, and then
extract service URLs from them.

Kind of fragile code, probably won't hold up under complicated
topologies, and won't work at all if the XRDs are in another XRDS
container. I tried to use XRDS filtering to get the top-priority
version of XRDs, services, and URIs, but Laconica's output doesn't use
any of that stuff and I don't particularly want to test it.

darcs-hash:20080602174249-84dde-b7ffdf7f21afb5b734def70530fc305689da471d.gz
2008-06-02 13:42:49 -04:00
Evan Prodromou
2a2992b102 parse the XRDS results
Apparently you have to parse the XRDS results from the discovery
result object. Who knew?

darcs-hash:20080530190446-84dde-52e5220aa5b76bc443ed20a1d0e07e509a5522f8.gz
2008-05-30 15:04:46 -04:00