Revisions for chora/lib/base.php

Location: [ Horde ] / chora / 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.106 (+6 -4 lines) 03/26/2008 03:19 AM Chuck Hagenbuch chuck

constant cleanliness

1.105 (+6 -2 lines) 12/22/2007 10:20 AM Jan Schneider jan

Use Horde::loadConfiguration() for vhost support.

1.101.10.1 FRAMEWORK_3 (+2 -2 lines) 02/22/2007 10:58 PM Matt Selsky selsky

Chora::fatal() only takes one argument in FW_3.

Tags: CHORA_2_0_2

1.104 (+2 -2 lines) 09/20/2006 09:17 PM Chuck Hagenbuch chuck

initialize() instead of init()

1.103 (+3 -7 lines) 09/20/2006 09:15 PM Chuck Hagenbuch chuck

Move the isRestricted() check into init() for scope reasons.

1.102 (+2 -2 lines) 10/13/2005 01:47 AM Matt Selsky selsky

ws

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

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

Tags: FRAMEWORK_3, CHORA_2_0_1, CHORA_2_0_1_RC1, CHORA_2_0, CHORA_2_0_RC3, CHORA_2_0_RC2, CHORA_2_0_RC1, CHORA_2_0_BETA

1.100 (+5 -1 lines) 04/17/2004 12:49 PM Jan Schneider jan

Remove Cache initialization from VC.

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

No more HORDE_LIBS.

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

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

Tags: CHORA_2_0_ALPHA

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

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

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

Browser:: is now a framework package.

1.95 (+6 -3 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.94 (+1 -7 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.93 (+2 -2 lines) 12/12/2003 07:10 PM Michael M Slusarz slusarz

Moved Horde_Text to framework.

1.92 (+2 -3 lines) 10/14/2003 03:02 PM Chuck Hagenbuch chuck

[cjh] CVSLib and SVNLib are no longer part of Chora; they are part of the
new Horde VC:: package.

- lots of cleanups to use the VC:: classes or $VC methods instead of
hardcoded CVSLib references, etc.

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

prevent errors with transparent authentication.

1.90 (+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.89 (+3 -2 lines) 08/27/2003 12:01 AM Chuck Hagenbuch chuck

[cjh] Chora isn't just CVS now. Initial commit of Subversion support
("Jay Freeman (saurik)" <saurik@saurik.com>).

- note that a). I don't have subversion so I haven't tested this, and
b). I mucked around with a bunch of stuff to start getting rid
of CVS-specific terminology/variable names, so bits may have
broken.

1.88 (+2 -2 lines) 04/20/2003 04:50 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.87 (+2 -2 lines) 04/11/2003 02:54 PM Michael M Slusarz slusarz

Use Browser::singleton().

1.86 (+6 -4 lines) 03/04/2003 02:38 PM Chuck Hagenbuch chuck

[cjh] Finally get most setup code into functions in the Chora:: class.

- removed constants.php
- plenty of long-overdue cleanup
- 'login' is now a session variable so that it doesn't pollute the URL.
- UI update; no need for including version.php

1.85 (+3 -3 lines) 02/21/2003 08:21 PM Chuck Hagenbuch chuck

Fix viral typo.

1.84 (+19 -10 lines) 01/05/2003 01:35 PM Jan Schneider jan

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

1.83 (+2 -2 lines) 01/05/2003 12:37 AM mikec

revert last commit on apps that don't have registry calls.

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

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

1.81 (+10 -19 lines) 01/04/2003 10:58 PM Jan Schneider jan

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

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

Added Horde::authenticationFailureRedirect().

1.66.2.6 RELENG_1 (+0 -5 lines) 12/19/2002 07:24 AM Jan Schneider jan

The notification backend is neither bc nor used anywhere.

Tags: CHORA_1_2_3, CHORA_1_2_2, CHORA_1_2_1, CHORA_1_2_1_RC2, CHORA_1_2_1_RC1, CHORA_1_2, CHORA_1_2_RC3, CHORA_1_2_RC2

1.79 (+3 -6 lines) 12/18/2002 06:22 PM Chuck Hagenbuch chuck

More cleanup; remove all of the bogus echo "\n"; lines after header()
calls that at one point seemed to be needed for mobile devices, but
all of my emulators work without them now.

1.66.2.5 RELENG_1 (+14 -14 lines) 10/28/2002 04:55 PM Jan Schneider jan

MFH 1.78

Tags: CHORA_1_2_RC1

1.78 (+14 -14 lines) 10/28/2002 04:54 PM Jan Schneider jan

Reorder loading of libraries, so that the framework (notification etc)
works if there is an error while initilizing Chora.

1.66.2.4 RELENG_1 (+9 -2 lines) 10/06/2002 07:07 AM Jan Schneider jan

MFH: Move the isRestricted check and output compression into lib/base.php
from the individual files involved.

1.66.2.3 RELENG_1 (+2 -1 lines) 09/24/2002 07:42 PM Jan Schneider jan

MFH:
* Add menu bar to pages as needed.
* Add preferences page.
* Added "Chora" to the menu bar.

1.77 (+5 -1 lines) 08/23/2002 12:50 PM avsm

move the isRestricted check into lib/base.php from the individual
files involved

1.76 (+2 -1 lines) 07/22/2002 11:36 PM Eric Rostetter ericr

* Add menu bar to pages as needed.
* Add preferences page.
* Added "Chora" to the menu bar, but it really should have a different
name/graphic.  Will work on this yet.

1.75 (+4 -1 lines) 07/03/2002 12:54 AM Chuck Hagenbuch chuck

use Horde::compressOutput()

1.66.2.2 RELENG_1 (+19 -145 lines) 06/23/2002 09:45 AM Jan Schneider jan

MFH:
* Use 'rb' with filesystem calls in case of windows.
* Show line numbers in the annotate view.
* Show links to view, annotate and download files in the annotate and view
  pages.
* Replace <?= with <?php echo to remove the short_open_tags requirement.
* Several bugfixes.
* Move some code from lib/base.php to lib/Chora.php.

1.74 (+1 -3 lines) 04/24/2002 02:39 AM Chuck Hagenbuch chuck

woops, remove debug code

1.73 (+21 -145 lines) 04/24/2002 02:38 AM Chuck Hagenbuch chuck

Clean up base.php by moving a number of things into Chora.php. lots
of cleanup can still happen here.

1.72 (+4 -4 lines) 04/15/2002 04:59 PM Jan Schneider jan

Next shot of superglobals patch. After MFH is completed I'll commit Horde,
IMP and Nag.

Submitted by: Nuno Loureiro <nuno@eth.pt>

1.66.2.1 RELENG_1 (+53 -20 lines) 03/20/2002 03:30 PM Chuck Hagenbuch chuck

MFH: lots of changes.

Tags: CHORA_1_1, CHORA_1_1_RC1

1.71 (+41 -10 lines) 03/20/2002 01:32 PM Chuck Hagenbuch chuck

Add preferences for tracking last cvsroot and last file visited.

Submitted by: Mathieu CLABAUT <mathieu.clabaut@free.fr>

1.70 (+2 -1 lines) 02/02/2002 08:57 PM jon

Pass $errmsg through htmlspecialchars() in fatal().

Submitted by: "Sverre H. Huseby" <shh@thathost.com>

1.69 (+2 -2 lines) 01/31/2002 10:00 AM Chuck Hagenbuch chuck

more short-circuiting if condition

1.68 (+8 -6 lines) 01/24/2002 05:45 PM Chuck Hagenbuch chuck

use $registry->getParam()
use CHORA_TEMPLATES

1.67 (+4 -5 lines) 12/18/2001 08:46 PM jon

Clean up the PATH_INFO assignment logic.

1.66 (+11 -1 lines) 11/14/2001 11:43 PM Chuck Hagenbuch chuck

implement guest controls and fix version problem

Tags: RELENG_1, CHORA_1_0, CHORA_1_0_RC1

1.65 (+1 -2 lines) 11/09/2001 06:24 PM Chuck Hagenbuch chuck

includes are expensive - don't include version.php everywhere when we don't need it.

1.64 (+3 -2 lines) 11/05/2001 10:47 AM Chuck Hagenbuch chuck

fix diff types when PATH_INFO isn't being used, and the ws diff stuff now
works.

1.63 (+2 -1 lines) 10/02/2001 12:56 PM jon

Various formatting fixes (Text::htmlallspaces() calls, mainly).

Submitted by: Mathieu Arnold <arn_mat@club-internet.fr>

1.62 (+3 -3 lines) 09/13/2001 04:29 PM jon

IMP -> Chora

1.61 (+2 -2 lines) 09/13/2001 04:28 PM jon

IMP -> Chora

1.60 (+2 -2 lines) 08/26/2001 05:14 PM Jan Schneider jan

Make $conf global to include contact address to error messages.

1.59 (+1 -18 lines) 08/18/2001 02:07 AM avsm

repositories() -> Chora::repositories()

Tags: CHORA_0_6_4

1.58 (+2 -44 lines) 08/18/2001 02:00 AM avsm

Move the global url() function to Chora::url()

1.57 (+4 -61 lines) 08/15/2001 12:44 AM avsm

move lots of the global funcs in lib/base.php into the Chora
utility class.

clean them up and optimise a bit while I'm there

1.56 (+1 -4 lines) 08/15/2001 12:19 AM avsm

move some logic out of the templates into Chora::wherePath(),
and start losing some global variables from base.php

1.55 (+14 -5 lines) 08/15/2001 12:05 AM avsm

new $conf['options']['use_path_info'] option which defaults to
true (since PATH_INFO results in shorter URLs than GET propagation)

PATH_INFO is always preferred if present in a URL to preserve
existing links even if use_path_info is set to false

1.54 (+12 -11 lines) 08/14/2001 11:40 PM avsm

move away from depending on PATH_INFO for pathnames

lots of cleanup needed here (and coming soon)

1.53 (+5 -5 lines) 08/10/2001 06:30 PM avsm

add another string to gettext, and some minor spacing

1.52 (+2 -1 lines) 08/03/2001 04:36 PM avsm

Internationalise Chora via the Horde framework.

Added a sample DE locale with three words translated - can anyone
help out and submit some proper ones?

1.51 (+3 -3 lines) 07/17/2001 06:10 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.50 (+1 -5 lines) 07/12/2001 09:48 AM avsm

fix broken image tag as a result of using Horde::img()

get rid of the graphic() function, and use Chora::img() which
wraps Horde::img(), but passes it the Chora webroot queried from the registry.

1.49 (+7 -1 lines) 07/10/2001 03:54 PM avsm

convert to the new MIME_Viewer API.

Since I couldn't think of anything better, Chora overrides text/plain from
Horde, and performs URL syntax highlighting using its new local driver.

1.48 (+2 -2 lines) 06/23/2001 07:11 PM avsm

revert rev 1.45

use SCRIPT_NAME instead of PHP_SELF or else paths break

1.47 (+2 -2 lines) 06/14/2001 10:38 AM Chuck Hagenbuch chuck

oops, this is a better solution.

1.46 (+2 -2 lines) 06/14/2001 10:37 AM Chuck Hagenbuch chuck

fix path issue

1.45 (+2 -2 lines) 06/14/2001 10:34 AM Chuck Hagenbuch chuck

use PHP_SELF instead of SCRIPT_NAME in all scripts/apps.

1.44 (+2 -3 lines) 05/23/2001 07:12 PM avsm

No need for Chora's mime.php anymore since we are using Horde's

Tags: CHORA_0_6_1

1.43 (+12 -35 lines) 05/23/2001 01:22 PM Chuck Hagenbuch chuck

use Text::htmlspaces() and Text::htmlallspaces(); remove the definitions in
base.php.

1.42 (+4 -7 lines) 04/25/2001 08:20 PM avsm

use Horde::getFormData

1.41 (+3 -2 lines) 04/21/2001 01:48 AM Chuck Hagenbuch chuck

style/require Horde.php.

1.40 (+2 -2 lines) 04/14/2001 02:43 PM avsm

Do a repository-move of common.php -> lib/base.php to be consistent
with Horde

The code in this file is still very bad, but at least it's bad code in
the right place :-)

1.39 (+8 -7 lines) 04/14/2001 02:15 PM avsm

use CHORA_BASE

1.38 (+3 -1 lines) 04/11/2001 06:32 PM Chuck Hagenbuch chuck

start using Horde framework and fix a couple of CODING_STANDARDS things
(there are a lot of spacing issues left).

1.37 (+3 -1 lines) 04/10/2001 01:18 PM Chuck Hagenbuch chuck

encode ampersands in urls.

1.36 (+39 -10 lines) 04/10/2001 11:15 AM Chuck Hagenbuch chuck

fixes for problems with filenames with weird characters.

Submitted by: Mathieu Arnold <arn_mat@club-internet.fr>

1.35 (+42 -43 lines) 04/09/2001 11:57 AM Chuck Hagenbuch chuck

style

1.34 (+4 -4 lines) 04/09/2001 11:53 AM Chuck Hagenbuch chuck

long diff, default sort, and htmlspaces patches.

Submitted by: Mathieu Arnold <arn_mat@club-internet.fr>

1.33 (+8 -5 lines) 04/09/2001 11:09 AM Chuck Hagenbuch chuck

fix bug with chora in webroot

Submitted by: Mathieu Arnold <arn_mat@club-internet.fr>

1.32 (+2 -2 lines) 03/17/2001 08:52 PM avsm

Dont display the exact location of the CVSROOT, if it isnt found
(agreed by bjn@ as well).  We will move towards having a test.php to
sort out these kinds of problems, and not reveal them in error messages
to end users.

Tags: CHORA_0_4_1

1.31 (+2 -2 lines) 03/09/2001 07:08 PM bjn

Display value of CVSROOT in fatal error to improve troubleshooting.

Submitted by: Pixel Date <pixeldate@hotmail.com>

1.30 (+3 -3 lines) 02/27/2001 02:05 AM avsm

add 2001 to copyright year, and other style tweaks

1.29 (+4 -4 lines) 02/23/2001 11:21 AM Chuck Hagenbuch chuck

a few small register_globals fixes, and try to ignore all intro (non-dist)
files.

1.28 (+3 -3 lines) 01/26/2001 03:45 PM jon

$SCRIPT_NAME -> $HTTP_SERVER_VARS['SCRIPT_NAME']

1.27 (+2 -2 lines) 01/26/2001 03:37 PM Chuck Hagenbuch chuck

capitalization standards, lowercase package name

1.26 (+2 -2 lines) 01/16/2001 03:05 PM avsm

And fix an xhtml problem; thats the last one I can find

Tags: CHORA_0_2_0

1.25 (+4 -3 lines) 01/16/2001 02:55 PM avsm

clean up urls in page header slightly

1.24 (+2 -2 lines) 01/16/2001 02:50 PM avsm

if there is no cvsusers file, dont show the username twice in the 'fullname'
view

1.23 (+2 -2 lines) 01/16/2001 02:43 PM avsm

make the diff request forms work again

1.22 (+43 -5 lines) 01/16/2001 02:05 PM avsm

Multiple repository support, with a new config/cvsroots.php config
file.

This whole thing is real messy at the moment, especially the
dependency of CVSLib on $conf, but I'm going to clean it up all in
one go, so this commit is kind of building on the mess ;)  Primarily
so demo.horde.org can show off five or six major repositories, to help
the testing effort as well.

1.21 (+2 -2 lines) 01/10/2001 06:16 PM avsm

Add a conf[paths][cvsusers] var to control where the cvsusers file is
(not everyone keeps it in CVSROOT it seems)

1.20 (+10 -5 lines) 01/10/2001 05:58 PM avsm

Add support for parsing the cvsusers file, if present, and remove the
old method (which was to tack on a domain name at the end of the commitname)

Part of this commit snuck in with the version.php bump by mistake.

1.19 (+2 -2 lines) 01/10/2001 03:37 PM avsm

whups -> chora

Should find a new image for chora soon, but the whups one is the current
placeholder

1.18 (+2 -1 lines) 12/26/2000 07:49 PM avsm

add in the version number to the top right (probably should bump that up)

1.17 (+6 -2 lines) 12/26/2000 05:36 PM avsm

Now, this is neat ... a visual representation of the branching history
of a given repository file.

It starts off with the trunk on a single column, and then as more branches
come along, they sprout off from the tree in different colours.

The balancing algorithm for the grid can cope with an infinite number of
branch nests, so extremely complex repositories can be viewed with this
method (although it'll get pretty confusing)

Some points:

- You can view this from the 'visual branch' line in the log view,
  or the link on the top right (switch to branch view)

- The colours are temporary.  I am working on a hue/saturation -> RGB
  class, which will allow 'intelligent' use of colours for the branches.
  So that a sub-branch will be a related colour to the parent branch.
  Or perhaps high-activity branches (with lots of changed lines) will
  be stronger colours than maintainance (feature frozen) branches.

- This commit also introduces a new CVSLib_rev class, which is a
  collection of static methods to deal with cvs revisions, such as
  to validate them, and figure out root branches and so on.

- Numerous other cleanups.

1.16 (+3 -2 lines) 12/24/2000 08:15 AM avsm

Trim excessive whitespace in log messages

1.15 (+2 -1 lines) 12/23/2000 07:28 PM avsm

clean up url generation slightly by not having trailing slashes

1.14 (+2 -5 lines) 12/23/2000 07:21 PM avsm

use dirname() and basename(), instead of manually exploding/imploding

1.13 (+2 -3 lines) 12/23/2000 02:18 PM avsm

Start validation of most of our output into XHTML 1.0,
and output the relevant DOCTYPE (stolen from IMP)

1.12 (+1 -4 lines) 12/22/2000 12:08 PM avsm

fix the error pages

Only showing the 100 latest revisions. Show all revisions? (may take a while).