summaryrefslogtreecommitdiff
path: root/lib/common.php
AgeCommit message (Collapse)Author
2010-06-28Update version and code name: 0.9.3 Half a World AwayBrion Vibber
2010-04-29Update codename in common.phpBrion Vibber
2010-04-29Update release notes and version number for 0.9.2Zachary Copley
2010-03-28update README and version number0.9.1Evan Prodromou
2010-03-25version number and codenameEvan Prodromou
2010-03-20Move activity classes to their own filesEvan Prodromou
Moved the various classes used by the Activity class to their own files. There were >10 classes in the same file, with around 1500 lines in the file. Just too big. This change makes autoloading work for these classes, so also removed the hard require in lib/common.php.
2010-03-16Pull back for now on switch of PEAR error mode to exceptions; seems to ↵Brion Vibber
trigger out exceptions at various times we don't want them. For instance this was throwing an exception for DB_DataObject::staticGet when there's no match... definitely not what we want when all our code expects to get a nice null. Example of this causing trouble: http://gitorious.org/statusnet/mainline/merge_requests/131 Revert "Don't attempt to retrieve the current user from the DB while processing a DB error" This reverts commit 68347691b0c7fb3f81415abd7fcdc5aec85cc554. Revert "Use PHP exceptions for PEAR error handling." This reverts commit d8212977ce7f911d4f9bd6e55f94aea059a86782.
2010-03-04Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-03-04update version numberEvan Prodromou
2010-03-01Use PHP exceptions for PEAR error handling.Craig Andrews
Allows for the common try/catch construct, which makes error handling cleaner and easier.
2010-02-27add bugfix to version number.Evan Prodromou
2010-02-25update to beta6Evan Prodromou
2010-02-22Add activity.php to common includesZach Copley
2010-02-01readme and version for beta50.9.0beta5Evan Prodromou
2010-01-27Fix for Mapstraction plugin's zoomed map linksBrion Vibber
Move definition of NICKNAME_FMT above plugin initialization but below loading of Validate package. A merge error when refactoring setup lead to this not being defined yet when plugins were initialized, causing the router setup in MapstractionPlugin which tried to use this constant to fail. Result was bogus links and if you hit the URL directly the action would be "unrecognized".
2010-01-27increment software beta versionEvan Prodromou
2010-01-16change rc3 to beta3Evan Prodromou
2010-01-13rev version in lib/common.phpEvan Prodromou
2010-01-13Fix regressions in XMPP output during inbox refactoringBrion Vibber
- NOTICE_INBOX_SOURCE_* constants moved to common.php since Notice_inbox.php not always loaded - fixed typo in User::staticGet() call which caused user #1 to receive messages once for each subscriber instead of for him/herself - 'continue' -> 'continue 2' inside switch() statement to fix loop escape (PHP considers switch() a looping construct for break & continue)
2010-01-12Major refactoring of queue handlers to support running multiple sites in one ↵Brion Vibber
daemon. Key changes: * Initialization code moved from common.php to StatusNet class; can now switch configurations during runtime. * As a consequence, configuration files must now be idempotent... Be careful with constant, function or class definitions. * Control structure for daemons/QueueManager/QueueHandler has been refactored; the run loop is now managed by IoMaster run via scripts/queuedaemon.php IoManager subclasses are woken to handle socket input or polling, and may cover multiple sites. * Plugins can implement notice queue handlers more easily by registering a QueueHandler class; no more need to add a daemon. The new QueueDaemon runs from scripts/queuedaemon.php: * This replaces most of the old *handler.php scripts; they've been refactored to the bare handler classes. * Spawns multiple child processes to spread load; defaults to CPU count on Linux and Mac OS X systems, or override with --threads=N * When multithreaded, child processes are automatically respawned on failure. * Threads gracefully shut down and restart when passing a soft memory limit (defaults to 90% of memory_limit), limiting damage from memory leaks. * Support for UDP-based monitoring: http://www.gitorious.org/snqmon Rough control flow diagram: QueueDaemon -> IoMaster -> IoManager QueueManager [listen or poll] -> QueueHandler XmppManager [ping & keepalive] XmppConfirmManager [poll updates] Todo: * Respawning features not currently available running single-threaded. * When running single-site, configuration changes aren't picked up. * New sites or config changes affecting queue subscriptions are not yet handled without a daemon restart. * SNMP monitoring output to integrate with general tools (nagios, ganglia) * Convert XMPP confirmation message sends to use stomp queue instead of polling * Convert xmppdaemon.php to IoManager? * Convert Twitter status, friends import polling daemons to IoManager * Clean up some error reporting and failure modes * May need to adjust queue priorities for best perf in backlog/flood cases Detailed code history available in my daemon-work branch: http://www.gitorious.org/~brion/statusnet/brion-fixes/commits/daemon-work
2010-01-12Ticket 2152: avoid fatal when php.ini disables dl via disabled_functions ↵Brion Vibber
(function_exists returns false even though it exists and cannot be redefined)
2010-01-10Lots of tiny message changes.Siebrand Mazeland
* Mostly punctuation updates so that the same message is used consistently in all of StatusNet. * Some cases of "Title Case" removed, because that does not appear to be used consistently.
2010-01-07add default plugins and load themEvan Prodromou
2010-01-02First version of Memcache pluginEvan Prodromou
2009-12-22update to rc2Evan Prodromou
2009-11-20Updated version info0.9.0rc1Zach Copley
2009-11-18Added support for pgettext() and npgettext() to separate contexts for ↵Brion Vibber
translatable messages that are going to be ambiguous in English original.
2009-11-17Declare global usage in common.php so setup works right when called from ↵Brion Vibber
phpunit tests We end up running the tests through a function in PHPUnit, so we don't have automatic global scope at the top level of files all the time...
2009-11-16Cleanup for bug 1813: workaround sometimes-missing dl() in PHP 5.3 by ↵Brion Vibber
defining our own bogus function rather than attempting to patch upstream libs. This keeps our fix across upstream versions (or when loading upstream library from outside extlib) Note that fixes to OpenID libraries in commit fe9473ac7810d317e001a0fec19cbacaafc0c909 were lost in just such an update.
2009-11-14don't offer install.php on check-fancy requestsbrenda
this time, E_STRICT compliant
2009-11-12Fix for bug 1974: drop unnecessary define_syslog_variables() call from ↵Brion Vibber
common.php The call was moved to this spot in commit 3ea1119e500c23ee918569e2a58cc5abaa1d8a5a (previously init'd later in another func) but doesn't seem to be needed anyway. None of our code uses the variables that this function defines, just the constants -- which are already predefined without the call. The function is deprecated in PHP 5.3 and gone in 6, so we may as well toss it now.
2009-11-11Redid how URL shorteners work. This way is much more like how Evan wants ↵Craig Andrews
events to work (and more like how the rest of SN works).
2009-11-08Restructure theme.php to define a class ThemeEvan Prodromou
For various reasons, it's nicer to have a class for theme-file paths and such. So, I've rewritten the code for determining the locations of theme files to be more OOPy. I changed all the uses of the two functions in the module (theme_file and theme_path) to use Theme::file and Theme::path respectively. I've also removed the code in common.php that require's the module; using a class means we can autoload it instead.
2009-11-02Make unit tests work again by forcing a 'global' on $_have_a_config...Brion Vibber
Fix a typo in the error message when no config file found.
2009-10-30give some suggestions back to the user when no config file found, and a link ↵Brenda Wallace
to the installer
2009-10-30Revert "give some suggestions back to the user when no config file found, ↵Brenda Wallace
and a link to the installer" This reverts commit 7f5fbee2e36889fae1d1c5043d76625e197e39ea.
2009-10-30give some suggestions back to the user when no config file found, and a link ↵Brenda Wallace
to the installer
2009-10-13Merge branch '0.9.x' into pluginize-twitter-bridgeZach Copley
* 0.9.x: (247 commits) Added in credits. Use site's name for basic auth realm Make apigroupcreate.php pass phpcs Took out some unnecessary intializations Implemented create group api CamelCase all function names in the API code These same params are used in most API actions; moved to base API class Missed some of the references to the old TwitterApiAction - removed Remove more redundant $formats Remove dead code Move all basic auth output and processing to base classes $format is used by every API action. Set it in the base class. Delete action/api.php and rename lib/twitterapi.php to lib/api.php New actions for blocks via API fix FBConnect so it doesn't muffle EndPrimaryNav don't write session if it's unchanged Fixed facebook connect primary nav to hide search option when site is private and user is not logged in Fixed facebook connect primary nav to obey sms/twitter/openid settings Fixed facebook connect login nav to obey openid settings Fixed facebook connect nav to obey sms/twitter disabled ...
2009-10-01check the schemaEvan Prodromou
2009-09-24Move configuration defaults to new module and variableEvan Prodromou
Moved the default values of $config to $default. The code for setting up $default is moved to lib/default.php.
2009-09-16Merge branch '0.9.x' into pluginize-twitter-bridgeZach Copley
* 0.9.x: (57 commits) Updated csarven emails to csarven@status.net and removed dupes statusize new HTTP classes dedupe evans change all evans to evan@status.net add post to curlclient fix user-agent for curlclient add get to curl client add cURL client with HEAD method add user agent and correct version check to httpclient statusize OpenID plugin add http client config value update httpclient class move httputil to httpclient Start a common library for HTTP client stuff check correct define (not backwards compatible) Fixed broken list items in installer output Got rid of a bunch of ugly warnings Add Jiminy to notice sources Make it impossible to delete self-subscriptions via the API Fix bad merge d7ae0ed4fd755ebad0788a17d0f2fb6a6ca9d63b ...
2009-09-15add http client config valueEvan Prodromou
2009-09-08Merge branch '0.9.x' into pluginize-twitter-bridgeZach Copley
Conflicts: plugins/TwitterBridge/twitterauthorization.php
2009-08-27Merge branch '0.8.x' into 0.9.xEvan Prodromou
Conflicts: EVENTS.txt actions/finishremotesubscribe.php actions/postnotice.php actions/public.php actions/remotesubscribe.php actions/showstream.php actions/updateprofile.php actions/userauthorization.php classes/laconica.ini lib/common.php lib/oauthstore.php lib/omb.php
2009-08-27update version in, and add codename to, lib/commonEvan Prodromou
2009-08-27Merge branch '0.8.x' into 0.9.xEvan Prodromou
2009-08-26define LACONICA_VERSION for backwards compatibilityEvan Prodromou
2009-08-26define LACONICA and accept LACONICA for backwards compatibilityEvan Prodromou
2009-08-26add back in /etc/laconica/* for compatibilityEvan Prodromou
2009-08-26last scrub of Laconica -> StatusNetEvan Prodromou