horde.git
16 years agoFix typo
Michael M Slusarz [Thu, 30 Jul 2009 02:46:40 +0000 (20:46 -0600)]
Fix typo

16 years agoImport JS/CSS caching from IMP
Michael M Slusarz [Wed, 29 Jul 2009 23:10:35 +0000 (17:10 -0600)]
Import JS/CSS caching from IMP

16 years agoAdd Horde_Registry::getVersion()
Michael M Slusarz [Wed, 29 Jul 2009 21:48:26 +0000 (15:48 -0600)]
Add Horde_Registry::getVersion()

16 years agoDon't add duplicate entries to array
Michael M Slusarz [Wed, 29 Jul 2009 19:35:43 +0000 (13:35 -0600)]
Don't add duplicate entries to array

16 years agoAdd Horde::escapeJson()
Michael M Slusarz [Wed, 29 Jul 2009 19:25:25 +0000 (13:25 -0600)]
Add Horde::escapeJson()

16 years agotooltips.js is a valid script file again.
Jan Schneider [Wed, 29 Jul 2009 14:46:49 +0000 (16:46 +0200)]
tooltips.js is a valid script file again.

16 years agoMove remaining code from horde.js to tooltips.js.
Jan Schneider [Wed, 29 Jul 2009 14:43:08 +0000 (16:43 +0200)]
Move remaining code from horde.js to tooltips.js.

16 years agoFix URL generation in getServiceLink()
Michael M Slusarz [Wed, 29 Jul 2009 05:27:17 +0000 (23:27 -0600)]
Fix URL generation in getServiceLink()

16 years agoNeed ability to request a full URL here since some of these imples
Michael J. Rubinsky [Wed, 29 Jul 2009 00:57:45 +0000 (20:57 -0400)]
Need ability to request a full URL here since some of these imples
may be on an external site.

16 years agoTicket #8258: Catch exists() errors for auth signup
Duck [Tue, 28 Jul 2009 23:05:29 +0000 (17:05 -0600)]
Ticket #8258: Catch exists() errors for auth signup

Signed-off-by: Michael M Slusarz <slusarz@curecanti.org>
16 years agoAdd Util dependency.
Jan Schneider [Tue, 28 Jul 2009 20:03:55 +0000 (22:03 +0200)]
Add Util dependency.

16 years agoMFB: Support password resetting.
Jan Schneider [Mon, 27 Jul 2009 13:18:47 +0000 (15:18 +0200)]
MFB: Support password resetting.

16 years agoPass uidvalidity to _updateMetaData() if possible to save a STATUS call
Michael M Slusarz [Tue, 28 Jul 2009 04:08:54 +0000 (22:08 -0600)]
Pass uidvalidity to _updateMetaData() if possible to save a STATUS call

16 years agoDon't update cache unless we have something to update it with
Michael M Slusarz [Tue, 28 Jul 2009 03:54:17 +0000 (21:54 -0600)]
Don't update cache unless we have something to update it with

16 years agoFix typo causing unneeded cache expiration.
Michael M Slusarz [Tue, 28 Jul 2009 03:53:46 +0000 (21:53 -0600)]
Fix typo causing unneeded cache expiration.

16 years agophpdoc
Michael M Slusarz [Tue, 28 Jul 2009 03:21:36 +0000 (21:21 -0600)]
phpdoc

16 years agoHorde_Token no longer uses PEAR_Errors
Michael M Slusarz [Mon, 27 Jul 2009 18:27:51 +0000 (12:27 -0600)]
Horde_Token no longer uses PEAR_Errors

16 years agoUse Util::realPath().
Jan Schneider [Fri, 3 Jul 2009 00:46:43 +0000 (02:46 +0200)]
Use Util::realPath().

16 years agoFix url encoding.
Jan Schneider [Mon, 27 Jul 2009 12:51:38 +0000 (14:51 +0200)]
Fix url encoding.

16 years agoConvert to new hooks code.
Michael M Slusarz [Mon, 27 Jul 2009 02:13:54 +0000 (20:13 -0600)]
Convert to new hooks code.

16 years agoNew hook handling code.
Michael M Slusarz [Sun, 26 Jul 2009 23:48:50 +0000 (17:48 -0600)]
New hook handling code.

16 years agoAdd system task type to logintasks - these are always run
Michael M Slusarz [Sun, 26 Jul 2009 22:24:17 +0000 (16:24 -0600)]
Add system task type to logintasks - these are always run

16 years agoAdd a once-only option for logintasks (different than first login interval)
Michael M Slusarz [Sun, 26 Jul 2009 22:22:59 +0000 (16:22 -0600)]
Add a once-only option for logintasks (different than first login interval)

16 years agoDon't need reference.
Michael M Slusarz [Sat, 25 Jul 2009 23:24:45 +0000 (17:24 -0600)]
Don't need reference.

16 years agogetInstance() -> factory()
Michael M Slusarz [Sat, 25 Jul 2009 04:46:26 +0000 (22:46 -0600)]
getInstance() -> factory()

16 years agodon't check permissions when filling the api cache. it can cause an infinite loop...
Chuck Hagenbuch [Fri, 24 Jul 2009 21:29:36 +0000 (17:29 -0400)]
don't check permissions when filling the api cache. it can cause an infinite loop because listApps checks permissions which means going through transparent auth, which means calling listApps...

16 years agoRevert "don't try and fetch alarms for all users when no one is logged in"
Chuck Hagenbuch [Fri, 24 Jul 2009 17:40:44 +0000 (13:40 -0400)]
Revert "don't try and fetch alarms for all users when no one is logged in"

This reverts commit c0f24e840cdb842acc337e2c26d07ed36dfef1af.

16 years agodon't try and fetch alarms for all users when no one is logged in
Chuck Hagenbuch [Fri, 24 Jul 2009 02:45:11 +0000 (22:45 -0400)]
don't try and fetch alarms for all users when no one is logged in

16 years agofix guest app access
Chuck Hagenbuch [Fri, 24 Jul 2009 02:44:47 +0000 (22:44 -0400)]
fix guest app access

16 years agoFix dependencies; throw Exception on error.
Michael M Slusarz [Thu, 23 Jul 2009 20:21:40 +0000 (14:21 -0600)]
Fix dependencies; throw Exception on error.

16 years agoFix memcache locking issue.
Michael M Slusarz [Thu, 23 Jul 2009 20:18:10 +0000 (14:18 -0600)]
Fix memcache locking issue.

If you don't specify a time value to delete(), apparently memcache takes
that as expiring in 1 second - not an instantaneous expire.  Which isn't
mentioned in the documentation and is not very intuitive (delete means
delete).  This was causing slow load times on message with a lot of
attached images - the thumbnails were slow to load because the sessions
were not being marked as unlocked for at least a second, preventing the
next image from loading.

16 years agoFor now, don't hide these errors.
Michael M Slusarz [Thu, 23 Jul 2009 19:01:47 +0000 (13:01 -0600)]
For now, don't hide these errors.

16 years agoHorde_Auth improvements
Michael M Slusarz [Thu, 23 Jul 2009 16:49:24 +0000 (10:49 -0600)]
Horde_Auth improvements

Standardize pre/post-authenticate hooks and ensure they are called for
all authentication events.
Use transparent() authentication to authenticate to applications that
don't require any additional authentication.

16 years agoThis should properly set the userId for Kolab auth
Michael M Slusarz [Thu, 23 Jul 2009 04:35:36 +0000 (22:35 -0600)]
This should properly set the userId for Kolab auth

Do class check once in constructor.
Correctly identify that this driver does authentication.

16 years agoUse stored auth credentials information for transparent() auth if the
Michael M Slusarz [Wed, 22 Jul 2009 22:09:23 +0000 (16:09 -0600)]
Use stored auth credentials information for transparent() auth if the
driver did not define new values.

16 years agophpdoc typo
Michael M Slusarz [Wed, 22 Jul 2009 22:08:48 +0000 (16:08 -0600)]
phpdoc typo

16 years agoClean up this code a bit.
Michael M Slusarz [Wed, 22 Jul 2009 22:08:35 +0000 (16:08 -0600)]
Clean up this code a bit.

16 years agoFix parameter generation for app name.
Michael M Slusarz [Wed, 22 Jul 2009 22:08:15 +0000 (16:08 -0600)]
Fix parameter generation for app name.

16 years agoRevert "Existence check"
Michael M Slusarz [Wed, 22 Jul 2009 19:29:27 +0000 (13:29 -0600)]
Revert "Existence check"

This reverts commit 9f6fe242c7f7b67d7efd8b034ec35de786f436d6.

2nd time :) But this is exactly where we don't want to do existence
checking, since there is absolutely no reason why $driver should not
exist if horde_auth is active.  We need to discover the source of the
problem here, not mask it.

16 years agoRefactor pushApp(), allowing opportunity to determine whether logintasks should be run
Michael M Slusarz [Wed, 22 Jul 2009 19:02:38 +0000 (13:02 -0600)]
Refactor pushApp(), allowing opportunity to determine whether logintasks should be run

16 years agows
Michael J. Rubinsky [Wed, 22 Jul 2009 19:01:33 +0000 (15:01 -0400)]
ws

16 years agoExistence check
Michael J. Rubinsky [Wed, 22 Jul 2009 15:40:56 +0000 (11:40 -0400)]
Existence check

16 years agoFix variable.
Jan Schneider [Wed, 22 Jul 2009 08:53:01 +0000 (10:53 +0200)]
Fix variable.

16 years agoSpecial xdebug handling is only necessary for var_dump().
Jan Schneider [Mon, 20 Jul 2009 10:35:17 +0000 (12:35 +0200)]
Special xdebug handling is only necessary for var_dump().

16 years agoFix setting the message string in the generated URL
Michael M Slusarz [Wed, 22 Jul 2009 18:32:54 +0000 (12:32 -0600)]
Fix setting the message string in the generated URL

16 years agoAdd Horde_Auth_Application callback feature.
Michael M Slusarz [Wed, 22 Jul 2009 17:41:45 +0000 (11:41 -0600)]
Add Horde_Auth_Application callback feature.

Using application auth, especially if using application auth as horde
auth, there was previously a severe limitation in that the application
only had a limited environment when doing the auth.  This makes sense
because, since no user was yet logged in, there was no way to init
things such as prefs.  Best (only?) solution is to understand that
application auth only has limited environment and should be used to do
the minimum necessary to verify authentication only.  Login tasks and
the like need a full environment, so add a authentication callback hook
that will re-call the application after a full environment can be setup.

16 years agorebuild the task list if unserialization fails
Chuck Hagenbuch [Wed, 22 Jul 2009 14:44:02 +0000 (10:44 -0400)]
rebuild the task list if unserialization fails

16 years agoDon't run tasks if not authenticated
Michael M Slusarz [Wed, 22 Jul 2009 06:43:59 +0000 (00:43 -0600)]
Don't run tasks if not authenticated

16 years agoGet rid of AUTH_HANDLER defines
Michael M Slusarz [Wed, 22 Jul 2009 05:33:04 +0000 (23:33 -0600)]
Get rid of AUTH_HANDLER defines

16 years agoAdd Horde_Auth_Application::setCredential().
Michael M Slusarz [Wed, 22 Jul 2009 04:49:59 +0000 (22:49 -0600)]
Add Horde_Auth_Application::setCredential().

16 years agoFirst attempt at placing logintasks in the proper place.
Michael M Slusarz [Wed, 22 Jul 2009 03:49:28 +0000 (21:49 -0600)]
First attempt at placing logintasks in the proper place.

This is the only place guaranteed to run logintasks on both regular and
transparent auth. However, it may not be appropriate to run logintasks
if we are doing some kind of API call.  It might be better to simply run
all login tasks for all applications on initial login.

16 years agoFix auth with application driver (transparent auth was unnecessarily
Michael M Slusarz [Wed, 22 Jul 2009 03:39:28 +0000 (21:39 -0600)]
Fix auth with application driver (transparent auth was unnecessarily
erasing auth credentials)

16 years agoFix logic
Michael M Slusarz [Wed, 22 Jul 2009 03:05:28 +0000 (21:05 -0600)]
Fix logic

16 years agoRevert "no notice if the 'driver' key isn't set in the session"
Michael M Slusarz [Wed, 22 Jul 2009 02:59:55 +0000 (20:59 -0600)]
Revert "no notice if the 'driver' key isn't set in the session"

This reverts commit ce0b066d93b1c3ac2a3e2df4c21eb1ff81a8c508.

16 years agoAlways set auth through setAuth(), honor 'login' param to setAuth()
Michael M Slusarz [Wed, 22 Jul 2009 00:21:50 +0000 (18:21 -0600)]
Always set auth through setAuth(), honor 'login' param to setAuth()

16 years agoUpdates to PHP 5/Horde 4 coding standards.
Michael M Slusarz [Wed, 22 Jul 2009 00:21:10 +0000 (18:21 -0600)]
Updates to PHP 5/Horde 4 coding standards.

16 years agoSession naming consistent with other framework packages
Michael M Slusarz [Wed, 22 Jul 2009 00:14:42 +0000 (18:14 -0600)]
Session naming consistent with other framework packages

16 years agofix parse error
Chuck Hagenbuch [Wed, 22 Jul 2009 01:02:44 +0000 (21:02 -0400)]
fix parse error

16 years agono notice if the 'driver' key isn't set in the session
Chuck Hagenbuch [Wed, 22 Jul 2009 01:01:51 +0000 (21:01 -0400)]
no notice if the 'driver' key isn't set in the session

16 years agoHorde_Auth rewrite.
Michael M Slusarz [Wed, 15 Jul 2009 05:09:31 +0000 (23:09 -0600)]
Horde_Auth rewrite.

Store data in static class variable instead of globally
Add getLoginParams()
Move logout reason string and changepassword code to login page
Rework session storage of auth information.
All application-specific auth tasks should now be handled properly by
both Horde_Auth and Horde_Auth_Application
Horde_Registry::pushApp() should now do all necessary authentication and
permissions checking in a single call.

16 years agoRemove getLoginScreen().
Michael M Slusarz [Wed, 15 Jul 2009 05:12:33 +0000 (23:12 -0600)]
Remove getLoginScreen().

16 years agoFix classnames.
Michael M Slusarz [Tue, 21 Jul 2009 17:31:47 +0000 (11:31 -0600)]
Fix classnames.

16 years agoFix PATH_INFO determination for base directories on lighttpd
Michael M Slusarz [Tue, 21 Jul 2009 03:18:07 +0000 (21:18 -0600)]
Fix PATH_INFO determination for base directories on lighttpd

16 years agoextension section must come after package section.
Matt Selsky [Tue, 21 Jul 2009 17:43:26 +0000 (13:43 -0400)]
extension section must come after package section.

16 years agoAdd Horde_Date_Utils::relativeDateTime() for getting relative,
Michael J. Rubinsky [Tue, 21 Jul 2009 05:12:20 +0000 (01:12 -0400)]
Add Horde_Date_Utils::relativeDateTime() for getting relative,
natural language representation of datetimes (i.e. 2 minutes ago).

16 years agoDon't leak Horde_Http_Client exceptions
Michael J. Rubinsky [Mon, 20 Jul 2009 22:32:36 +0000 (18:32 -0400)]
Don't leak Horde_Http_Client exceptions

16 years agoFixes found through lint checking
Michael M Slusarz [Mon, 20 Jul 2009 04:58:12 +0000 (22:58 -0600)]
Fixes found through lint checking

16 years agoSwitch back to include instead of include_once.
Michael M Slusarz [Mon, 20 Jul 2009 03:08:56 +0000 (21:08 -0600)]
Switch back to include instead of include_once.

Might as well start catching all the places where we shouldn't be
including/requiring libs anymore.

16 years agoimprove salt generation for crypt-md5 passwords (lowzl@hotmail.com, Bug #8425)
Chuck Hagenbuch [Mon, 20 Jul 2009 18:10:13 +0000 (14:10 -0400)]
improve salt generation for crypt-md5 passwords (lowzl@hotmail.com, Bug #8425)

16 years agoRemove debug output
Michael J. Rubinsky [Sun, 19 Jul 2009 19:22:25 +0000 (15:22 -0400)]
Remove debug output

16 years agoThis is Horde_Oauth, not H_S_Twitter...
Michael J. Rubinsky [Sun, 19 Jul 2009 16:52:25 +0000 (12:52 -0400)]
This is Horde_Oauth, not H_S_Twitter...

16 years agophpdoc/ws
Michael J. Rubinsky [Sun, 19 Jul 2009 15:03:44 +0000 (11:03 -0400)]
phpdoc/ws

16 years agoAdd getSiteLinks()
Michael M Slusarz [Fri, 17 Jul 2009 21:15:05 +0000 (15:15 -0600)]
Add getSiteLinks()

16 years agoFix call (API func name; only takes 2 parameters).
Michael M Slusarz [Wed, 15 Jul 2009 05:11:00 +0000 (23:11 -0600)]
Fix call (API func name; only takes 2 parameters).

16 years agoFix object instantiation; cache object internally
Michael M Slusarz [Wed, 15 Jul 2009 05:08:21 +0000 (23:08 -0600)]
Fix object instantiation; cache object internally

16 years agoBuild authorization header, check for missing oauth_token and oauth_consumer_key
Michael J. Rubinsky [Sat, 18 Jul 2009 22:07:30 +0000 (18:07 -0400)]
Build authorization header, check for missing oauth_token and oauth_consumer_key

Add method to Horde_Oauth_Request that builds an OAuth Authorization header
(http://oauth.net/core/1.0#auth_header)

Allow H_O_Request to obtain the *required* oauth_consumer_key and the oauth_token
values from the Consumer and Token objects respectively so that client code doesn't
have to awkardly pass them in both the Horde_Oauth_Consumer const'r and in the
Horde_Oauth_Request const'r

Add method to build an OAuth Authorization Header

16 years agoDocumnet the required config parameters, throw exception if any
Michael J. Rubinsky [Sat, 18 Jul 2009 14:18:15 +0000 (10:18 -0400)]
Documnet the required config parameters, throw exception if any
are missing

16 years agoFix percent encoding of the '+' character.
Michael J. Rubinsky [Sat, 18 Jul 2009 00:06:30 +0000 (20:06 -0400)]
Fix percent encoding of the '+' character.

16 years agothrow exceptions instead of calling Horde::fatal()
Michael M Slusarz [Fri, 17 Jul 2009 19:37:59 +0000 (13:37 -0600)]
throw exceptions instead of calling Horde::fatal()

16 years agoRemove object assignments by reference and unneded includes
Michael M Slusarz [Fri, 17 Jul 2009 19:31:17 +0000 (13:31 -0600)]
Remove object assignments by reference and unneded includes

16 years agoDon't assign objects by reference.
Michael M Slusarz [Fri, 17 Jul 2009 18:38:07 +0000 (12:38 -0600)]
Don't assign objects by reference.

16 years agoOnly log on success.
Michael M Slusarz [Fri, 17 Jul 2009 18:37:57 +0000 (12:37 -0600)]
Only log on success.

16 years agoUse hash().
Michael M Slusarz [Fri, 17 Jul 2009 18:37:47 +0000 (12:37 -0600)]
Use hash().

16 years agoAdd Horde::getCacheUrl().
Michael M Slusarz [Fri, 17 Jul 2009 17:56:16 +0000 (11:56 -0600)]
Add Horde::getCacheUrl().

16 years agoabort and use a regular image tag if we don't have the right image path (seeing this...
Chuck Hagenbuch [Fri, 17 Jul 2009 15:50:03 +0000 (11:50 -0400)]
abort and use a regular image tag if we don't have the right image path (seeing this in chora)

16 years agofix getLoginScreen call
Chuck Hagenbuch [Fri, 17 Jul 2009 15:40:55 +0000 (11:40 -0400)]
fix getLoginScreen call

16 years agoImport SpellChecker imple object from IMP.
Michael M Slusarz [Thu, 16 Jul 2009 19:56:22 +0000 (13:56 -0600)]
Import SpellChecker imple object from IMP.

16 years agoAdd IMP inline script handling functions.
Michael M Slusarz [Thu, 16 Jul 2009 19:55:03 +0000 (13:55 -0600)]
Add IMP inline script handling functions.

Again, this will probably eventually need to be moved elsewhere, but
it needs to be moved out of IMP immediately since several things moving
to framework rely on this code.

16 years agoAdd Horde_Ajax::.
Michael M Slusarz [Thu, 16 Jul 2009 19:21:46 +0000 (13:21 -0600)]
Add Horde_Ajax::.

16 years agoThis becomes a mandatory dependency
Michael M Slusarz [Thu, 16 Jul 2009 16:14:34 +0000 (10:14 -0600)]
This becomes a mandatory dependency

16 years agoFix variable name
Michael J. Rubinsky [Thu, 16 Jul 2009 13:55:14 +0000 (09:55 -0400)]
Fix variable name
Bug: 8436
Submitted by: Duck

16 years agofix package.xml
Chuck Hagenbuch [Thu, 16 Jul 2009 03:40:13 +0000 (23:40 -0400)]
fix package.xml

16 years agothese are stream filters, so put them in a Horde_Stream_Filter package instead of...
Chuck Hagenbuch [Thu, 16 Jul 2009 03:39:58 +0000 (23:39 -0400)]
these are stream filters, so put them in a Horde_Stream_Filter package instead of in Util::

16 years agofix Nls config usage
Chuck Hagenbuch [Thu, 16 Jul 2009 03:08:27 +0000 (23:08 -0400)]
fix Nls config usage

16 years agothrow Horde_Auth_Exceptions instead of generic Horde_Exceptions
Chuck Hagenbuch [Wed, 15 Jul 2009 14:40:37 +0000 (10:40 -0400)]
throw Horde_Auth_Exceptions instead of generic Horde_Exceptions

16 years agofix dependency on Core package, and add dependency on Exception package
Chuck Hagenbuch [Wed, 15 Jul 2009 14:33:21 +0000 (10:33 -0400)]
fix dependency on Core package, and add dependency on Exception package

16 years agostub _authenticate in the auto driver to avoid a compile-time error
Chuck Hagenbuch [Wed, 15 Jul 2009 14:28:55 +0000 (10:28 -0400)]
stub _authenticate in the auto driver to avoid a compile-time error

16 years agorevert creation of exception objects not used for throwing
Chuck Hagenbuch [Wed, 15 Jul 2009 03:24:21 +0000 (23:24 -0400)]
revert creation of exception objects not used for throwing

16 years agocatch exceptions during API calls to re-throw, so that we can make sure to call popApp()
Chuck Hagenbuch [Wed, 15 Jul 2009 01:43:09 +0000 (21:43 -0400)]
catch exceptions during API calls to re-throw, so that we can make sure to call popApp()

16 years agoClean up application driver
Michael M Slusarz [Tue, 14 Jul 2009 21:14:21 +0000 (15:14 -0600)]
Clean up application driver