Index: trunk/extensions/Push/Push_Settings.php |
— | — | @@ -18,19 +18,35 @@ |
19 | 19 | die( 'Not an entry point.' ); |
20 | 20 | } |
21 | 21 | |
| 22 | +# List of targets that can be pushed to. |
| 23 | +# The array keys are the target names, and the values are the target urls (path to api.php without the '/api.php' part) |
| 24 | +# Example: $egPushTargets['English Wikipedia'] = 'http://en.wikipedia.org/w'; |
22 | 25 | $egPushTargets = array(); |
23 | 26 | |
| 27 | +# Push rights. |
24 | 28 | $wgGroupPermissions['*']['push'] = true; |
25 | 29 | $wgGroupPermissions['autoconfirmed']['bulkpush'] = true; |
26 | 30 | $wgGroupPermissions['sysop']['bulkpush'] = true; |
27 | 31 | $wgGroupPermissions['sysop']['pushadmin'] = true; |
28 | 32 | |
| 33 | +# Show the push action as a tab (if not, it's displayed in the actions dropdown). |
| 34 | +# This only works for skins with an actions dropdown. For others push will always appear as a tab. |
29 | 35 | $egPushShowTab = false; |
| 36 | + |
| 37 | +# You can choose to include templates when pushing a page. |
| 38 | +# This is the default choice. |
30 | 39 | $egPushIncTemplates = false; |
31 | 40 | |
| 41 | +# Indicated if login options should be added to the push interface or not. |
32 | 42 | $egPushAllowLogin = true; |
| 43 | + |
| 44 | +# Default login data. When set, the values will always be used when there is |
| 45 | +# no login interface. If there is, they will be filled in as default. |
33 | 46 | $egPushLoginUser = ''; |
34 | 47 | $egPushLoginPass = ''; |
35 | 48 | |
| 49 | +# The amount of push 'workers' (simultanious push requests) on Special:Push. |
36 | 50 | $egPushBulkWorkers = 3; |
| 51 | + |
| 52 | +# The maximum amount of targets to push a page to in one go. |
37 | 53 | $egPushBatchSize = 3; |
Index: trunk/extensions/Push/RELEASE-NOTES |
— | — | @@ -5,10 +5,11 @@ |
6 | 6 | |
7 | 7 | |
8 | 8 | === Version 0.4 === |
9 | | -2010-12-xx |
| 9 | +2010-12-12 |
10 | 10 | |
11 | 11 | * Added option to include templates used on the page to the push to the tab interface. |
12 | | -* Added adittional info about target pages to the tab interface. |
| 12 | +* Added remote authentication support to the push API module. |
| 13 | +* Added additional info about target pages to the tab interface. |
13 | 14 | |
14 | 15 | === Version 0.3 === |
15 | 16 | 2010-12-10 |
— | — | @@ -22,14 +23,14 @@ |
23 | 24 | === Version 0.2 === |
24 | 25 | 2010-12-08 |
25 | 26 | |
26 | | -* Added Special:Push for bulk pushing |
27 | | -* Added AdminLinks hook |
| 27 | +* Added Special:Push for bulk pushing. |
| 28 | +* Added AdminLinks hook. |
28 | 29 | |
29 | 30 | === Version 0.1 === |
30 | 31 | 2010-12-08 |
31 | 32 | |
32 | 33 | Initial release. |
33 | 34 | |
34 | | -* Added push tab that allows pushing the page to one or more other wikis |
35 | | -* Added ApprovedRevs support |
36 | | -* Added 'push' right |
\ No newline at end of file |
| 35 | +* Added push tab that allows pushing the page to one or more other wikis. |
| 36 | +* Added ApprovedRevs support. |
| 37 | +* Added 'push' right. |
\ No newline at end of file |
Index: trunk/extensions/Push/api/ApiPush.php |
— | — | @@ -48,7 +48,9 @@ |
49 | 49 | } |
50 | 50 | |
51 | 51 | global $egPushLoginUser, $egPushLoginPass; |
52 | | - $this->doLogin( $egPushLoginUser, $egPushLoginPass, $params['targets'] ); |
| 52 | + if ( $egPushLoginUser != '' && $egPushLoginPass != '' ) { |
| 53 | + $this->doLogin( $egPushLoginUser, $egPushLoginPass, $params['targets'] ); |
| 54 | + } |
53 | 55 | |
54 | 56 | foreach ( $params['page'] as $page ) { |
55 | 57 | $title = Title::newFromText( $page ); |
— | — | @@ -139,7 +141,7 @@ |
140 | 142 | $this->cookieJars[$target] = $req->getCookieJar(); |
141 | 143 | } |
142 | 144 | else { |
143 | | - var_dump($response->login);exit; |
| 145 | + // TODO |
144 | 146 | } |
145 | 147 | } |
146 | 148 | else { |
— | — | @@ -335,9 +337,6 @@ |
336 | 338 | if ( array_key_exists( $target, $this->cookieJars ) ) { |
337 | 339 | $req->setCookieJar( $this->cookieJars[$target] ); |
338 | 340 | } |
339 | | - else { |
340 | | - var_dump($this->cookieJars);exit; |
341 | | - } |
342 | 341 | |
343 | 342 | $status = $req->execute(); |
344 | 343 | |