Revisions for whups/lib/base.php

Location: [ Horde ] / whups / lib / base.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.75 (+3 -2 lines) 06/24/2008 06:25 PM Jan Schneider jan

Limit Robert's copyright to the years of his contributions. We should really find him.

Tags: WHUPS_1_0, WHUPS_1_0_RC2, WHUPS_1_0_RC1

1.74 (+9 -7 lines) 02/21/2008 10:40 AM Jan Schneider jan

Add @package tag.

1.73 (+6 -4 lines) 01/06/2008 07:00 PM Chuck Hagenbuch chuck

@define -> define

1.72 (+2 -2 lines) 06/27/2007 01:24 PM Jan Schneider jan

Bump year, looks like a missed a few last time.

1.71 (+3 -3 lines) 06/15/2007 11:22 AM Chuck Hagenbuch chuck

Rename $whups to $whups_driver

1.70 (+1 -2 lines) 02/08/2007 11:47 AM Jan Schneider jan

Move datetime form variable to Horde_Form.

1.69 (+2 -1 lines) 08/08/2006 03:00 PM Chuck Hagenbuch chuck

due dates now have hours and minutes. This is a big commit just for that, but
I needed to add a custom renderer because we don't have a datetime field in Horde_Form proper, and it was either this or add the hours/minutes seperately as
another field.

1.68 (+2 -2 lines) 06/26/2006 06:28 PM Chuck Hagenbuch chuck

more reference cleanup - keep them for forms since  is an object, but remove where not needed elsewhere. some of these are php 4.4 fixes

1.67 (+2 -2 lines) 01/01/2006 04:12 PM Jan Schneider jan

Happy new year\!

1.66 (+2 -2 lines) 10/12/2005 11:48 PM Matt Selsky selsky

ws

1.65 (+2 -2 lines) 01/03/2005 09:35 AM Jan Schneider jan

Happy New Year

1.64 (+2 -2 lines) 10/18/2004 08:46 PM Chuck Hagenbuch chuck

Registry::getParam() -> Registry::get().

1.63 (+4 -1 lines) 05/02/2004 05:42 PM Chuck Hagenbuch chuck

Make sure that Whups does output compression, tweak comments.

1.62 (+6 -6 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

1.61 (+1 -5 lines) 02/13/2004 11:02 PM Chuck Hagenbuch chuck

Remove includes of Browser.php that are no longer needed.

1.60 (+2 -2 lines) 02/13/2004 08:36 PM Chuck Hagenbuch chuck

Config:: and Help:: moved to framework packages.

1.59 (+2 -2 lines) 02/12/2004 03:50 PM Chuck Hagenbuch chuck

Browser:: is now a framework package.

1.58 (+2 -2 lines) 01/24/2004 03:04 PM Chuck Hagenbuch chuck

[cjh] Various $no_auth and $self_contained_auth flags have been standardized
into an AUTH_HANDLER constant, which if defined signals the application
that it should not check permissions upon calling $registry->pushApp(),
as the calling script will handle that itself, or is a system-level cron
job/script/etc.
[cjh] Add an option to $registry->pushApp() to specify whether or not to check
application permissions.

1.57 (+1 -9 lines) 01/24/2004 12:15 AM Chuck Hagenbuch chuck

[cjh] The 'allow_guests' setting, and $registry->allowGuests(), have been
removed in favor of Horde_Perms application permissions.

1.56 (+1 -2 lines) 01/16/2004 05:27 PM Jan Schneider jan

Instantiate a global  object in core.php.

1.55 (+2 -2 lines) 01/15/2004 06:23 PM Jan Schneider jan

Move Horde_Perms to framework.

1.54 (+2 -2 lines) 01/15/2004 05:59 PM Jan Schneider jan

Move Horde_Group to framework.

1.53 (+3 -3 lines) 01/13/2004 01:46 PM mdjukic

updated paths for Horde_Form

1.52 (+4 -5 lines) 01/10/2004 11:48 AM eraserhd

Registry::pushApp() permissions cleanup

* Don't use constant when raising permissions error from pushApp().
* Pass error from pushApp() to user.

1.51 (+6 -2 lines) 01/10/2004 01:18 AM eraserhd

If we get an error in pushApp(), check for the specific case that it is a
a permissions issue and redirect to login if so.

This is a hack to avoid a circular dependency: you need to authenticate to
push an app and you need to push an app to check whether to allow guests to
authenticate.  This is visible in apps which allow guests after the session
expires, for example.

1.50 (+2 -2 lines) 01/01/2004 11:18 AM Jan Schneider jan

Happy new year everyone.

1.49 (+3 -3 lines) 11/14/2003 11:13 AM Chuck Hagenbuch chuck

Add the Horde_UI package, with the Horde_UI_Tabs class replacing the
Actions class in Whups, and now available to other Horde apps.

("Jason M. Felice" <jfelice@cronosys.com>)

1.48 (+5 -5 lines) 09/24/2003 04:28 PM Chuck Hagenbuch chuck

We push the last_login time onto the $notification stack, so we need to set up notification before checking authentication (probably only an issue for transparent auth).

1.47 (+31 -27 lines) 09/20/2003 04:10 PM Chuck Hagenbuch chuck

Use horde/lib/core.php in all applications. For now, I've commented
out the HORDE_LIBS-based includes in core.php and we're still using
the old HORDE_BASE . '/lib/' includes everywhere. But the HORDE_LIBS
constant is now available everywhere and core.php is included to
properly set up the base framework.

I also hit a bunch of other base.php things while I was at it:

- always check the results of $registry->pushApp() and display an
error if it fails.

- removed old cache_ssl code which is handled by
Browser::downloadHeaders() now.

- make sure all base.php files check authentication (you may need to
specify allow_guests = true on some applications that were open
beforehand).

- move the auth check up as soon as possible so as not to do
unnecessary work.

- remove libraries and code that aren't used.

- try and organize files consistently.

- probably a few other minor things.

Please test out everything as you can and report problems or syntax
errors; I'm sure I missed a thing or two.

1.46 (+2 -2 lines) 09/16/2003 07:08 PM Jan Schneider jan

Use the new Util:: class.

1.45 (+2 -2 lines) 09/01/2003 07:19 PM Jan Schneider jan

Simplify driver instantiation even more.

1.44 (+2 -2 lines) 08/22/2003 09:19 PM Jan Schneider jan

No hardcoded params anymore.

1.43 (+2 -2 lines) 06/29/2003 09:15 PM mdjukic

tweak the  element naming

1.42 (+6 -7 lines) 06/23/2003 10:57 PM Chuck Hagenbuch chuck

[cjh] Allow clearing of all or individual searches (Bo Daley
<bo@tilda.com.au>).

1.41 (+5 -3 lines) 06/19/2003 08:27 AM Jan Schneider jan

Allow self contained authentication

1.40 (+2 -2 lines) 04/26/2003 08:28 PM Chuck Hagenbuch chuck

Fix license URL.

1.39 (+2 -2 lines) 04/20/2003 04:51 PM Chuck Hagenbuch chuck

[cjh] Add a new API call, Auth::isAuthenticated($realm = null), for
determining whether or not a user is logged in to the current
realm (by default null). Auth::getAuth() is still used to get
the current user, but now you don't need to know the auth realm
to get the current user - just to check authentication.

This commit replaces Auth::getAuth() with Auth::isAuthenticated()
where appropriate. Hopefully I didn't miss anywhere or cause any
problems; let me know if you find anything.

1.38 (+2 -2 lines) 04/11/2003 02:54 PM Michael M Slusarz slusarz

Use Browser::singleton().

1.37 (+2 -2 lines) 02/21/2003 08:22 PM Chuck Hagenbuch chuck

Fix viral typo.

1.36 (+3 -3 lines) 01/29/2003 12:29 PM Chuck Hagenbuch chuck

Use $whups instead of $backend to avoid potential naming clashes
between apps (at least, make them much less likely).

1.35 (+15 -9 lines) 01/05/2003 01:35 PM Jan Schneider jan

Revert the mess. I hope I got all files and correct rollback positions.

1.34 (+5 -2 lines) 01/05/2003 12:03 AM Chuck Hagenbuch chuck

Jan, all this is what is necessary to get the summary screen and
registry calls working again after your changes - and this is only for
the apps currently on my summary; I'm missing a bunch. Are you SURE
standard.php is worth it?

Mike Cochrane: please revert the rest of your changes now. They were
not necessary, and they defeat the entire point of putting that code
in one place and only doing it once.

1.33 (+2 -2 lines) 01/04/2003 11:51 PM mikec

require_once => require on standard.php so registry calls work.

1.32 (+6 -15 lines) 01/04/2003 10:58 PM Jan Schneider jan

Condense some code from the applications' base.php files into standard.php.

1.31 (+2 -2 lines) 01/03/2003 07:47 AM Jan Schneider jan

Bump year.

1.30 (+2 -3 lines) 01/02/2003 05:48 PM Michael M Slusarz slusarz

Added Horde::authenticationFailureRedirect().

1.29 (+2 -2 lines) 11/21/2002 03:36 PM Chuck Hagenbuch chuck

pass along parameters here.

1.28 (+5 -5 lines) 10/28/2002 03:03 PM Chuck Hagenbuch chuck

More flexible permissioning; distinguish between who can add to a
module and whoc an search it (_PERMS_READ vs. _PERMS_EDIT, which you
must have to add a new ticket).

Also, more permissions checks in various places, and better error
checking (permissions and otherwise) when viewing a ticket, so that
non-existant tickets or ones you shouldn't have permissions to view
are caught better.

1.27 (+3 -3 lines) 09/24/2002 06:59 PM Chuck Hagenbuch chuck

phase 2: complete the renaming of FormSprocket:: to Horde_Form:: and
GraphSprocket:: to Horde_Graph::

1.26 (+1 -11 lines) 08/01/2002 01:22 PM Chuck Hagenbuch chuck

This should work; will do more extensive testing later.

1.25 (+2 -2 lines) 08/01/2002 11:55 AM Jan Schneider jan

Revert last commit. My PHP is broken.

1.24 (+2 -2 lines) 08/01/2002 11:34 AM Jan Schneider jan

Fix template path.

1.23 (+2 -2 lines) 07/23/2002 08:49 PM Chuck Hagenbuch chuck

Might make SVG reports a bit more reliable.

1.22 (+2 -2 lines) 07/22/2002 11:29 PM Chuck Hagenbuch chuck

Comments in the .dist file!

And, we now use a regular $params array, instead of a DSN.

1.21 (+2 -2 lines) 07/18/2002 02:46 PM Chuck Hagenbuch chuck

fix a few style nits.

1.20 (+7 -5 lines) 07/17/2002 04:31 PM Chuck Hagenbuch chuck

- whups now has a standard horde menu
- add an Options screen
- fix a bunch of bugs
- convert to the Notification framework
- remove a bunch of unneeded code.

1.19 (+13 -4 lines) 07/16/2002 02:54 PM Chuck Hagenbuch chuck

Whups now uses the FormSprocket:: API for all form handling.

1.18 (+15 -1 lines) 06/26/2002 04:41 PM Chuck Hagenbuch chuck

have to cache the SVG objects.

1.17 (+1 -7 lines) 06/18/2002 10:31 PM Chuck Hagenbuch chuck

- Make sure to silence warnings in safe_mode
- Consolidate a whole bunch of code. Yay simplicity.

1.16 (+3 -2 lines) 01/24/2002 02:38 PM Chuck Hagenbuch chuck

use $registry->getParam()
use WHUPS_TEMPLATES
let Types be either global or linked to a specific module.

1.15 (+4 -4 lines) 12/23/2001 10:53 PM Chuck Hagenbuch chuck

rename Backend to Driver - I think all of the apps are consistent now.

1.14 (+13 -17 lines) 12/23/2001 12:48 PM Chuck Hagenbuch chuck

Lots of work on WHUPS. Make assignment actually work
without whups-specific users, remove unused files, remove whups-specific
users, cleanup, etc.

1.13 (+16 -11 lines) 11/22/2001 07:27 PM rec

Ok, this is a bit of a big commit, I'll be more incremental in future.

Changes to the look - it's a bit more horde like now.
Changes to the forms, as much html as possible has moved out of the forms
and into the renderer.  Forms also know how to execute themselves, which
is a better design.
Changes to the ui, especially the details page.  The four edit ticket forms
have moved to links at the bottom and the forms only appear when you
actually want to perform that action.

Biggest addition - the Advanced Query Builder.  This is more complex - I'll
describe it in a mail to the whups list in a bit.

1.12 (+6 -1 lines) 11/19/2001 12:06 PM Chuck Hagenbuch chuck

assignment/user patches
Submitted by: Alex L.

1.11 (+1 -7 lines) 11/07/2001 04:21 AM Chuck Hagenbuch chuck

a lot of references cleanup/optimization

1.10 (+1 -5 lines) 10/21/2001 05:37 PM Chuck Hagenbuch chuck

remove the last session_start calls that shouldn't be there

1.9 (+4 -4 lines) 09/17/2001 10:27 AM jon

Use HORDE_BASE where appropriate.

1.8 (+2 -2 lines) 09/17/2001 10:24 AM jon

Chora -> Whups (woops)

1.7 (+4 -4 lines) 09/17/2001 10:22 AM jon

This constant style is neater.

1.6 (+9 -6 lines) 07/17/2001 06:13 AM avsm

Cleanup: change all the $conf['paths'] variables to query this information
from the registry using the new API functions:

getTemplatePath(), getWebRoot(), getFileRoot(), getGraphicsPath()

Update your config files!

1.5 (+3 -2 lines) 06/04/2001 07:35 PM jon

Revert the last registry change.  It would break things under certain
circumstances.

1.4 (+2 -3 lines) 06/04/2001 07:17 PM jon

Pass the current application name to the Registry constructor instead of
explicitly calling $registry->pushApp().

1.3 (+3 -2 lines) 05/21/2001 12:11 PM Chuck Hagenbuch chuck

use &Registry::singleton() to get the registry object.

1.2 (+3 -3 lines) 03/22/2001 02:16 PM Chuck Hagenbuch chuck

- Fix errors caused by having error_reporting set to E_ALL.

- Fix license to be BSD, as intended/requested by original contributor

- Fix short tags (<?) - change to <?php

1.1 03/22/2001 12:07 AM bjn

Code reorganization, to bring Whups more in line with the modern Horde
framework layout.  Please feel free to change the names of files in
lib/, where functions are defined, how they're grouped into files,
etc. as you see fit!

I did not alter any functionality at all with these changes... however,
one result is that error_reporting() is now at E_ALL, and this has
revealed a lot of issues that need to be dealt with (Undefined index
and property all over).  However, the code is functional as it was before.