horde.git
16 years agoAssuming this was left as include_once inadvertanly, chnage it back
Michael J. Rubinsky [Wed, 5 Aug 2009 00:51:56 +0000 (20:51 -0400)]
Assuming this was left as include_once inadvertanly, chnage it back
to include.

16 years agoOptimize autoloading.
Michael M Slusarz [Tue, 4 Aug 2009 23:23:52 +0000 (17:23 -0600)]
Optimize autoloading.

Run through class patterns first before trying to use include paths.
This prevents us from having to add applications to the include path, so
PEAR/external libs shouldn't try to load libraries that have the same
basenames as an application library.

16 years agoFix popup link
Michael M Slusarz [Tue, 4 Aug 2009 22:29:58 +0000 (16:29 -0600)]
Fix popup link

16 years agoExpand use of getServiceLink().
Michael M Slusarz [Tue, 4 Aug 2009 22:09:24 +0000 (16:09 -0600)]
Expand use of getServiceLink().

It should be used for more than just service links that can be viewed
via the menu - it should be used for *any* service link so that URI
generation is consistent across all applications.

16 years agoFiner-grained control of script loading order
Michael M Slusarz [Tue, 4 Aug 2009 21:02:45 +0000 (15:02 -0600)]
Finer-grained control of script loading order

16 years agoDon't silence include_once, and allow Api.php to not exist.
Jan Schneider [Tue, 4 Aug 2009 21:24:31 +0000 (23:24 +0200)]
Don't silence include_once, and allow Api.php to not exist.

16 years agoUse Horde_String::ucfirst().
Jan Schneider [Tue, 4 Aug 2009 20:47:16 +0000 (22:47 +0200)]
Use Horde_String::ucfirst().

16 years agoWill discuss this with Chuck, but until then, make this an incldue_once
Michael J. Rubinsky [Tue, 4 Aug 2009 19:53:52 +0000 (15:53 -0400)]
Will discuss this with Chuck, but until then, make this an incldue_once
to avoid fatal Cannot redeclare Class errors when using any external libraries.

16 years agoNeed to ucfirst() the appname when trying to load it's API class
Michael J. Rubinsky [Tue, 4 Aug 2009 19:53:26 +0000 (15:53 -0400)]
Need to ucfirst() the appname when trying to load it's API class

16 years agoAdd 'load_base' option to pushApp()
Michael M Slusarz [Tue, 4 Aug 2009 19:12:28 +0000 (13:12 -0600)]
Add 'load_base' option to pushApp()

16 years agoMake CSS compression configurable
Michael M Slusarz [Tue, 4 Aug 2009 18:53:57 +0000 (12:53 -0600)]
Make CSS compression configurable

16 years agoAdd some more info on Prefs UI functions
Michael M Slusarz [Tue, 4 Aug 2009 08:39:33 +0000 (02:39 -0600)]
Add some more info on Prefs UI functions

16 years agoFix usage of truncate length
Michael M Slusarz [Tue, 4 Aug 2009 07:13:13 +0000 (01:13 -0600)]
Fix usage of truncate length

16 years agoAdd a bit of API documentation
Michael M Slusarz [Tue, 4 Aug 2009 04:23:24 +0000 (22:23 -0600)]
Add a bit of API documentation

This should eventually be done elsewhere, but keep the info here for
now so it doesn't get lost.

16 years agoImplement new API framework.
Michael M Slusarz [Tue, 4 Aug 2009 00:10:31 +0000 (18:10 -0600)]
Implement new API framework.

See Horde_Registry_Api:: for a brief rundown on what the new API files
need.

16 years agoFix param name
Michael M Slusarz [Mon, 3 Aug 2009 19:18:12 +0000 (13:18 -0600)]
Fix param name

16 years agoRevert "BC"
Jan Schneider [Mon, 3 Aug 2009 18:39:28 +0000 (20:39 +0200)]
Revert "BC"

This reverts commit e652e9d819dfc582a3bd69286c7ef0e335593525.

16 years agoBC
Jan Schneider [Mon, 3 Aug 2009 16:33:12 +0000 (18:33 +0200)]
BC

16 years agoAdd support for yui and no js compression
Michael M Slusarz [Mon, 3 Aug 2009 05:30:09 +0000 (23:30 -0600)]
Add support for yui and no js compression

16 years agoAdd YUI Compressor support to javascript minify filter.
Michael M Slusarz [Mon, 3 Aug 2009 05:03:43 +0000 (23:03 -0600)]
Add YUI Compressor support to javascript minify filter.

16 years agoOptimizations
Michael M Slusarz [Sun, 2 Aug 2009 21:46:47 +0000 (15:46 -0600)]
Optimizations

16 years agoMinify forced view javascript files (i.e. prototype.js)
Michael M Slusarz [Sat, 1 Aug 2009 22:47:47 +0000 (16:47 -0600)]
Minify forced view javascript files (i.e. prototype.js)

16 years agoOAuth signature verification requires that the method used to make
Michael J. Rubinsky [Mon, 3 Aug 2009 03:27:20 +0000 (23:27 -0400)]
OAuth signature verification requires that the method used to make
the request be considered when signing the request...we can't assume
we are always using POST - this will cause requests to fail.

16 years agoFix missing ']'.
Matt Selsky [Sun, 2 Aug 2009 15:16:25 +0000 (11:16 -0400)]
Fix missing ']'.

16 years agoTypo
Jan Schneider [Sat, 1 Aug 2009 11:23:04 +0000 (13:23 +0200)]
Typo

16 years agoNeed to add popup localized text in here so it is always included, even if popup...
Michael M Slusarz [Fri, 31 Jul 2009 21:14:44 +0000 (15:14 -0600)]
Need to add popup localized text in here so it is always included, even if popup.js is directly included

16 years agoWe will never be requesting prototye.js in this function.
Michael J. Rubinsky [Fri, 31 Jul 2009 21:51:16 +0000 (17:51 -0400)]
We will never be requesting prototye.js in this function.

16 years agoMake sure prototype is included from addExternal() as well,
Michael J. Rubinsky [Fri, 31 Jul 2009 21:34:19 +0000 (17:34 -0400)]
Make sure prototype is included from addExternal() as well,
otherwise includeing an external script file before any other horde
file would cause prototype.js to not be loaded.

16 years agoMake sure to return true here
Michael M Slusarz [Fri, 31 Jul 2009 19:51:29 +0000 (13:51 -0600)]
Make sure to return true here

16 years agoFix urlencoding in escapeJson()
Michael M Slusarz [Fri, 31 Jul 2009 17:35:10 +0000 (11:35 -0600)]
Fix urlencoding in escapeJson()

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

16 years agoSimplify specifying the mailer configuration.
Jan Schneider [Fri, 31 Jul 2009 12:03:24 +0000 (14:03 +0200)]
Simplify specifying the mailer configuration.

16 years agoFix prototype loading.
Jan Schneider [Fri, 31 Jul 2009 09:40:05 +0000 (11:40 +0200)]
Fix prototype loading.

16 years agoMe != Jan
Michael M Slusarz [Thu, 30 Jul 2009 20:09:25 +0000 (14:09 -0600)]
Me != Jan

16 years agoUse simple PHP-based javascript minification.
Michael M Slusarz [Thu, 30 Jul 2009 19:58:08 +0000 (13:58 -0600)]
Use simple PHP-based javascript minification.

In the future, possibly allow more powerful compressors (e.g. YUI
compressor). Or allow automatic compression of all files, and then piece
these compressed files into a single, servable file. Any method will be
better than having to manually compress the javascript files.

16 years agoAdd javascript minifier filter.
Michael M Slusarz [Thu, 30 Jul 2009 18:28:50 +0000 (12:28 -0600)]
Add javascript minifier filter.

16 years agoOutput prototype.js script tag separately from other script files
Michael M Slusarz [Thu, 30 Jul 2009 18:28:50 +0000 (12:28 -0600)]
Output prototype.js script tag separately from other script files

16 years agoRemove unneeded code; ensure prototype.js is always loaded
Michael M Slusarz [Thu, 30 Jul 2009 18:03:56 +0000 (12:03 -0600)]
Remove unneeded code; ensure prototype.js is always loaded

16 years agoRemove version string from md5 hash
Michael M Slusarz [Thu, 30 Jul 2009 04:20:03 +0000 (22:20 -0600)]
Remove version string from md5 hash

Thinking about this a bit more - any version upgrade should cause a new
mtime for a file that has been altered. So there is no need to tack on
version information.

This allows different applications that have the same include files
(will only ever happen with javascript) to share a single cached file.

16 years agoAdd ability to add external script files.
Michael J. Rubinsky [Thu, 30 Jul 2009 16:16:07 +0000 (12:16 -0400)]
Add ability to add external script files.
(Code ported from Ansel's Ansel_Script_Files)

16 years agoThird time's a charm?
Michael J. Rubinsky [Thu, 30 Jul 2009 14:52:52 +0000 (10:52 -0400)]
Third time's a charm?

Move this before we *determine* if prototype is needed...not just
before we include it.

16 years agoNeed to move loading tooltips.js to before the stanza that
Michael J. Rubinsky [Thu, 30 Jul 2009 14:39:59 +0000 (10:39 -0400)]
Need to move loading tooltips.js to before the stanza that
checks for required prototype.js

16 years agotooltips.js needs prototype.js to be loaded first.
Michael J. Rubinsky [Thu, 30 Jul 2009 14:29:11 +0000 (10:29 -0400)]
tooltips.js needs prototype.js to be loaded first.

16 years agounused private variable
Michael J. Rubinsky [Thu, 30 Jul 2009 14:05:35 +0000 (10:05 -0400)]
unused private variable

16 years agohint on check_perms setting
Michael M Slusarz [Thu, 30 Jul 2009 03:48:56 +0000 (21:48 -0600)]
hint on check_perms setting

16 years agoOnly run logintasks if we have checked permissions.
Michael M Slusarz [Thu, 30 Jul 2009 03:32:35 +0000 (21:32 -0600)]
Only run logintasks if we have checked permissions.

16 years agoFix adding tasks when the lastrun timestamp doesn't exist.
Michael M Slusarz [Thu, 30 Jul 2009 03:14:31 +0000 (21:14 -0600)]
Fix adding tasks when the lastrun timestamp doesn't exist.

16 years agoFix adding/running system tasks.
Michael M Slusarz [Thu, 30 Jul 2009 03:14:10 +0000 (21:14 -0600)]
Fix adding/running system tasks.

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)