summaryrefslogtreecommitdiff
path: root/lib/common.php
AgeCommit message (Collapse)Author
2010-10-25Merge branch '1.0.x' into schema-xBrion Vibber
Conflicts: plugins/CacheLog/locale/nb/LC_MESSAGES/CacheLog.po
2010-10-25Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: actions/subscriptions.php lib/router.php lib/xmppmanager.php lib/xmppoutqueuehandler.php
2010-10-20Many i18n/L10n updates and lots of descriptions for translators added.Siebrand Mazeland
2010-10-19Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-10-18Bump version/string: 0.9.6 "Man on the Moon"Brion Vibber
2010-10-15woops wrong pathBrion Vibber
2010-10-15Split the core-setup bits of common.php out to framework.php (better ideas?) ↵Brion Vibber
so we can easily set up our framework to run Schema setup before we have a core database to load a live config from.
2010-10-04Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.xBrion Vibber
Conflicts: actions/hostmeta.php actions/imsettings.php classes/User.php lib/adminpanelaction.php lib/channel.php lib/default.php lib/router.php lib/util.php
2010-09-29* i18n/L10n and translator documentation updates.Siebrand Mazeland
* whitespace and indentation updates
2010-09-09Merge branch '0.9.x' into 1.0.xEvan Prodromou
Conflicts: EVENTS.txt plugins/TwitterBridge/daemons/twitterstatusfetcher.php plugins/TwitterBridge/twitterbasicauthclient.php
2010-09-08Bump version to 0.9.5Brion Vibber
2010-08-16Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-08-16StatusNet 0.9.4 "Orange Crush"0.9.4Brion Vibber
2010-08-13Merge branch 'master' into 1.0.xEvan Prodromou
2010-08-110.9.4beta2 update some notes in README, note the fix from beta10.9.4beta2Brion Vibber
2010-08-10update version for 0.9.4beta10.9.4beta1Brion Vibber
2010-08-03Merge branch '0.9.x' into 1.0.xEvan Prodromou
2010-06-28Update version and code name: 0.9.3 Half a World AwayBrion Vibber
2010-05-06Ignore PEAR errors with code DB_DATAOBJECT_ERROR_NODATACraig Andrews
2010-04-30Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: lib/util.php
2010-04-29Update codename in common.phpBrion Vibber
2010-04-29Update release notes and version number for 0.9.2Zachary Copley
2010-04-18Use PHP exceptions for PEAR error handling.Craig Andrews
Allows for the common try/catch construct, which makes error handling cleaner and easier.
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