summaryrefslogtreecommitdiff
path: root/lib/common.php
AgeCommit message (Collapse)Author
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
2009-08-26Moved the rest of the Twitter stuff into the TwitterBridge pluginZach Copley
2009-08-25global search and replace for laconica -> statusnetEvan Prodromou
2009-08-25change LACONICA to STATUSNETEvan Prodromou
2009-08-25change laconi.ca to status.netEvan Prodromou
2009-08-25a distributed -> the distributedEvan Prodromou
2009-08-25change Laconica and Control Yourself to StatusNet in PHP filesEvan Prodromou
2009-08-24Merge branch '0.8.x' into testingEvan Prodromou
Conflicts: actions/twitterauthorization.php lib/oauthclient.php lib/twitter.php lib/twitterapi.php lib/twitteroauthclient.php scripts/twitterstatusfetcher.php
2009-08-24Twitter OAuth server dance workingZach Copley
2009-08-21Revert "Added configuration option to only allow OpenID logins."Evan Prodromou
This reverts commit 14b46e2183f10359cc53d597913a878f53e23719. This functionality will need to be rewritten to work with the new OpenIDPlugin. Conflicts: index.php lib/logingroupnav.php
2009-08-21Revert "Added a configuration option to disable OpenID."Evan Prodromou
This reverts commit 7dc3a90d1252137859a687e32313ea569dcf8796. Conflicts: actions/login.php actions/register.php lib/accountsettingsaction.php lib/common.php lib/logingroupnav.php
2009-08-21Merge branch 'dbconfig' into 0.9.xEvan Prodromou
Conflicts: lib/common.php
2009-08-21load configuration options from database at runtimeEvan Prodromou
2009-08-21Include php-gettext 1.0.7 into extlibs; loading it up if native gettext ↵Brion Vibber
extension is not present. This provides a pure PHP implementation of the gettext functions. This should help get laconica running on shared hosting environments where PHP's gettext module may not be installed. Also gets us one step closer to running on Mac OS X 10.5 with Apple's preinstalled PHP, which doesn't provide an easy way to add modules. Source: http://savannah.nongnu.org/projects/php-gettext Copyright (c) 2005 Steven Armstrong <sa at c-area dot ch> GPLv2 or later