summaryrefslogtreecommitdiff
path: root/lib/common.php
AgeCommit message (Collapse)Author
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
2009-08-21Merge branch '0.8.x' into 0.9.xEvan Prodromou
Conflicts: actions/updateprofile.php actions/userauthorization.php classes/User_group.php index.php install.php lib/accountsettingsaction.php lib/logingroupnav.php
2009-08-21configuration options for text limitsEvan Prodromou
2009-08-20Fix the default value of ['server']['path'] when running from command line ↵Francois Marier
scripts The logic in _sn_to_path() doesn't make sense when not running via a remote server. Default to the empty string if running from the command line and ['server']['path'] is not set manually in config.php
2009-08-13Added a configuration option to disable OpenID.Jeffery To
If $config['openid']['enabled'] is set to false, OpenID is removed from the navigation and direct accesses to OpenID login pages redirect to the login page. If OpenID is enabled, $config['site']['openidonly'] is ignored, i.e. OpenID is required to go OpenID-only.
2009-08-10Merge commit 'jeff-themovie/0.8.x-openidonly' into 0.8.xCraig Andrews
2009-08-10Merge branch 'twitter-oauth' into 0.8.xZach Copley
Conflicts: scripts/getvaliddaemons.php
2009-08-10Added configuration option to only allow OpenID logins.Jeffery To
If $config['site']['openidonly'] is set to true: * the Login/Register pages will be removed from the navigation; * directly accesses to the Login/Register pages will redirect to the OpenID login page; * most links to the Login/Register pages will link to the OpenID login page instead. The user will still need to set a password to access the API and RSS feeds.
2009-08-07Fixed IM and SMS enabled options to default to true.Jeffery To
2009-08-07Added configuration option to disable post-by-email.Jeffery To
This hides the relevant settings from the email settings page and prevents maildaemon.php from processing email if the option is disabled.
2009-08-07Added configuration options to enable/disable SMS and Twitter integration.Jeffery To
This disables the IM, SMS and Twitter settings pages and queue handlers depending on the config options.
2009-08-05update version to 0.8.1pre10.8.1pre1Evan Prodromou
2009-08-04give plugins a chance to autoload their classesEvan Prodromou
2009-08-040.9.0 dev versionEvan Prodromou
2009-08-03Merge branch '0.8.x' into twitter-oauthZach Copley