NAME

Apache::Onanox

ABSTRACT

Apache handler for Apache::Onanox.

SYNOPSIS

Copy onanox.conf and startup.pl to your Apache configuration directory ($APACHE_ROOT/conf/).

Put the following into your httpd.conf

include onanox.conf

Edit onanox.conf to suit your needs, specifically the database connection variables.

DESCRIPTION

Apache::Onanox is an application framework for customisable multi-user websites.

METHODS

handler

Apache handler.

request

Get/set request object

status

Get/set the HTTP return status.

user

Get/set the current user

uri

Gets Apache request URI

tt_vars

Get or set Template Toolkit variables.

parameters

Get/set parameter object

document

Get/set document object

init

Initialisation sequence.

setup_log

Sets up Apache logging.

Loglevels: EMERG ALERT CRIT ERR WARNING NOTICE INFO DEBUG

setup_database

Global database setup. Instantiates Apache::Onanox::Database::Base object.

Uses Apache config file parameters 'dbconn', 'dbuser' and 'dbpass'.

setup_parameters

Sets up parameters for untainting.

send_response

Sends response and debugging info.

send_headers

Sends HTTP content type and headers.

check_exists

Checks to see if the document requested exists.

get_document

Does the document stuff.

authenticate

Runs authentication phase.

setup_tt_vars

Set some useful Template Toolkit variables.

TODO

Below is a list of things that need done.

  • Automated tests!

  • Code refactoring.

  • Movable side panels.

  • Make it more usable.

  • Add some themes.

  • Colour schemes.

  • Documentation.

  • Installation client.

BUGS / KNOWN PROBLEMS

Security / authorisation / ACLs. Currently anyone can read or create any doc or theme.

~user translation.

AVAILABILITY

Available for download from CPAN http://www.cpan.org/ or from http://russell.matbouli.org/code/apache-onanox/

AUTHOR

Russell Matbouli <apache-onanox-spam@russell.matbouli.org>

http://russell.matbouli.org

LICENSE

Distributed under GPL v2. See COPYING included with this distibution.

SEE ALSO

Apache

mod_perl

Template

Class::DBI

MySQL