summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-12-29It appears that I made a few mistakes in which changes I had git commit, and ↵1.0.xLuke Shumaker
reject. * actions/pluginsadminpanel.php: o replace a `;' with a `.'; accidentally rejected change o change the text 'Default plugins' to 'Available plugins'; didn't get applied * lib/pliginlist.php o un-delete line from metaInfo(); ? o apply changes to getPluginVersion()
2010-12-25Load data for all plugins, not just loaded ones, on the plugin management ↵Luke Shumaker
page; making it actually useful. 2010-11-20: Luke Shumaker <lukeshu@sbcglobal.net> Load data for all plugins, not just loaded ones, on the plugin management page; making it actually useful. * include.php: file to include to make creation of entry points easy (taken from index.php) * index.php: move most of this file into include.php (and include it) * plugindata.php: a separate entry point using include.php; load ALL plugins found, and write data gathered to plugindata.out.php * .gitignore: add plugindata.out.php * actions/pluginsadminpanel.php: o use plugindata.out.php's common_plugindata() instead of StatusNet::getPlugins() o give a button linking to plugindata.php, to refresh plugin data o rename showDefaultPlugins() to showPlugins() * lib/pluginlist.php: o use plugindata.out.php's common_plugindata() instead of thowing the 'PluginVersion' event to currently enabled plugins o for the enable/disable forms: (pseudo diff) - if (!$disabled) + if ($enabled && (!$disabled)) o fix metaInfo(): "@fixme pull structured data from plugin source": we can do that now I feel that adding a separate entry point is a fairly controversial change, and that it requires justification. First, let me note that even if you do not agree with adding another entry point, moving much of index.php intp include.php to make creation of entry points easy is a good idea because this makes debugging _way_ easier. As Ian Zenhack put it, "I'm not sure I like the idea of introducing a second entry point, especially for a smallish feature enhancement such as this." I initially agreed with this, however, after experimenting with several different options, I decided that creating the separate entry point was the best option. The biggest requirement for my efforts was 1. don't require revamping of the entire plugin system which is what Brion Vibber seems to think is necessary on the StatusNet wiki (http://status.net/wiki/Plugin_installation_interface). There are simply too many valuable plugins already, breaking compatibility would be a Bad Thing. Since the plugin data is gathered from a usually non-static function of the plugin object, and instantiating the object loads the plugin, this essentially gives us the requirement 2. get the output of a non-static function without instantiating the object The obvious solution would be to load the object in a sandbox environment, and save the output somewhere. This is what the separate entry point is, a sandbox. A cool perk of my method is that it allows us to process the data in an orderly way, such as "keying" the array that the data is in, allowing for orderly plugin lookup. There are a lot of possiblities that this gives us, I have limited myself to using this to address the @fixme in lib/pluginlist.php, in order to keep diff size small, and changes obvious. A neat feature that we can add is a collapsible tree in the plugin management page, based on class hierarchy. I have done this, but it is glitzy, and more of a proof of concept. To address security and server load concerns, I have implemented security around plugindata.php (the separate entry point that refreshes plugin data). In order to run the file, you must either run it from the command line as a script, or be logged in as a user with rights to configure the site. This prevents lusers from spamming this entry point.
2010-12-24Add a more robust plugin config system.Luke Shumaker
2010-11-20: Luke Shumaker <lukeshu@sbcglobal.net> Add a more robust (but backward compatible) plugin config system * lib/util.php: add common_config_section($main), as a companion to common_config($main,$sub) * lib/statusnet.php: Functions for other Places: - add public static pluginFiles($name) which returns a list of all possible filenames a plugin with $name could be defined in. - addPlugin(...): use self::pluginFiles(...) instead of a hard-coded list. Actual Functionality: - add public static getPlugins() which returns array_merge( common_config('plugins','default'), common_config_section('plugin-list') ) - use self::getPlugins() instead of common_config('plugins','default') Robustness: - handle plugins that have a type other than "array" or "null" for parameters without bugging out * actions/pluginenable.php: (in order of in the file): - use StatusNet::getPlugins() instead of common_config('plugins','default') - check if a plugin exists, not whether it is loaded (uses newly added StatusNet::pluginFiles(...)) - Also save to 'plugin-list' (the new plugin system), in addition to 'plugins' (the old plugin system)
2010-12-22Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-22Break xbImportNode.js and geometa.js back out of util.js; the Makefile in js ↵0.9.xBrion Vibber
has been updated to combine them with util.js source when building util.min.js Revert "combine our standard scripts into one big script" This reverts parts of commit 0c5ca46ba3a070803d993b0244fcc69d33875ebd.
2010-12-22Makefile to compress LinkPreview's jsBrion Vibber
2010-12-22When queueing is off, restore runs immediately. Indicate that we've already ↵Brion Vibber
finished processing on the success page in this case; otherwise continue to show the 'will take a few minutes' message.
2010-12-22Don't trust text/xml mime types; generic content detection gives useless ↵Brion Vibber
stuff like that on SVG images! Todo: replace the extension check in this case with better content-based checks.
2010-12-22Revert "initialize ActivityObject::$extra"Evan Prodromou
This reverts commit 3e82000d578cf5f5935d972a26c84fe31768460a.
2010-12-22Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xEvan Prodromou
2010-12-22Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xEvan Prodromou
2010-12-22Initialize $extra member to empty array on ActivityObjectBrion Vibber
2010-12-22initialize ActivityObject::$extraEvan Prodromou
2010-12-22Merge branch 'righttoleave' into 0.9.xBrion Vibber
2010-12-22disable account deletion by defaultEvan Prodromou
2010-12-22Merge branch 'righttoleave' into 0.9.xEvan Prodromou
2010-12-22Error handling cleanup on backup/restore:Brion Vibber
* avoid PHP notice from using wrong variable * show a visible error instead of blank screen if no file submitted with restore form * avoid PHP strict warning from using calling "non-static" DOMDocument::loadXML statically * suppress PHP warning from XML parse errors
2010-12-22fix notice errorBrion Vibber
2010-12-22Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-22Partial fix for ticket #2964: bad .po file entriesBrion Vibber
http://translatewiki.net/wiki/StatusNet:Cb5746be52330331844dea750bf452c0618aecb3-All_Rights_Reserved/pt-br
2010-12-22Partial fix for ticket #2964: bad .po filesBrion Vibber
http://translatewiki.net/wiki/StatusNet:08b929b29496be84ff75d266b5e60b426cff449f-Hey,_1$s._Someone_just_entered/ca
2010-12-20Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-20Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: plugins/OStatus/classes/FeedSub.php
2010-12-20*cough* don't commit the code that breaks your code that you used to test ↵HEADmasterBrion Vibber
the debug code :D
2010-12-20Slightly fancier debug code for PuSH hmac mismatches -- save the post to a ↵Brion Vibber
temp file if feedsub/debug is on in config.
2010-12-20Logging helper for bogus hmacs on PuSH in -- record the url & hub with the ↵Brion Vibber
err msg to help tell what broke
2010-12-20Logging helper for bogus hmacs on PuSH in -- record the url & hub with the ↵Brion Vibber
err msg to help tell what broke
2010-12-20Let activity objects write directly to activity's own outputterEvan Prodromou
2010-12-18Add events for representing objects as activity:objectEvan Prodromou
Add 6 new events to make it easier to override the type of an activity object.
2010-12-17Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: classes/Memcached_DataObject.php
2010-12-17Ticket #2959: implement api/users/profile_image endpoint in Twitter-compat APIBrion Vibber
2010-12-17Merge branch 'sorting' into 0.9.xBrion Vibber
2010-12-17Sort indexing fix for profile sidebar: add ↵Brion Vibber
group_member_profile_id_created_idx to group_member table, streamlines sorting of your group memberships in the sidebar
2010-12-17fix typo in showstreamBrion Vibber
2010-12-17Sorting index fix for role lookups: adds ↵Brion Vibber
profile_role_role_created_profile_id_idx index on profile_role
2010-12-17Update sorting for conversation views: adds ↵Brion Vibber
notice_conversation_created_id_idx index on notice, replacing more limited notice_conversation_idx
2010-12-17Update Twitter calls to use documented API endpointsZach Copley
see: http://groups.google.com/group/twitter-api-announce/msg/34b013f4d092737f
2010-12-17action to restore a user's backup from the Web interfaceEvan Prodromou
2010-12-17Two bug fixes in activityimporterEvan Prodromou
2010-12-17change code order to make shorter linesEvan Prodromou
2010-12-17Update sorting for User::repeatedByMe() -- currently unused. Likely not ↵Brion Vibber
ideally indexed yet.
2010-12-17Update sorting on api/statuses/retweets_of_me; was and remains poorly ↵Brion Vibber
indexed, but will use updated sorting method.
2010-12-17Update sorting on api/statuses/retweets: adds ↵Brion Vibber
notice_repeat_of_created_id_idx index to replace notice_repeatof_idx
2010-12-17work around borkage in statuses/repeats -- tries to check an offset var ↵Brion Vibber
that's not there. use the limit var which is there instead
2010-12-17Update sorting for group inbox timelines; adds ↵Brion Vibber
group_inbox_group_id_created_notice_id_idx index to group_inbox table
2010-12-17Update sorting on reply/mentions timeline: added ↵Brion Vibber
reply_profile_id_modified_notice_id_idx index to reply table
2010-12-17Update sorting for tag-filtered public timeline: needs ↵Brion Vibber
notice_tag_tag_created_notice_id_idx index added to notice_tag
2010-12-17I'm still not sure when it's useful to reset a notice's authorEvan Prodromou
2010-12-17add fixme for since_id/max_id on fave streaming (?)Brion Vibber
2010-12-17In LdapCommon checkPassword/changePassword only get the 'dn' attribute as an ↵Craig Andrews
optimization as no other attributes are necessary. Thanks to drslump reported at http://status.net/open-source/issues/2955