Redirect to URL via login.php
-----------------------------

You can provide link functionality from other applications into OpenDb by using a 
generic guest username/passwd combination.

The login.php requires you to specify a urlencoded 'redirect' variable as an argument 
to op=login.  You will also need to supply the correct uid=user and pass=passwd 
url parameters.  In newer versions of OpenDb (0.53+), the login.php will still 
redirect to specified URL, even if user is  already logged.

To load the listings for jpell, you would format a url like so:
http://www.mydomain.com/opendb/login.php?op=login&uid=guest&pass=guest&redirect=listings.php%3Fuid%3Djpell

To see stats for OpenDb site, you would format a url like so:
http://www.mydomain.com/opendb/login.php?op=login&uid=guest&pass=guest&redirect=stats.php

Remember that the 'redirect' must be urlencoded, before inclusion, otherwise the 
login form will only see the name of the php script, and no parameters.

Some basic urlencoded characters, you might need:
   %3F : '?'
   %3D : '='
   %26 : '&'

A final example, to see DVD's for jpell, you would have a url like:
	http://www.mydomain.com/opendb/login.php?op=login&uid=guest&pass=guest&redirect=listings.php%3Fuid%3Djpell%26s_item_type%3DDVD

Which would result in a redirect url like so:
	listings.php?uid=jpell&s_item_type=DVD

Public Access Configuration
---------------------------

Starting with OpenDb 0.60-dev37, you can configure OpenDb to be a publicly accessible website.
Set the include/config.php variable $CONFIG_VARS['site.public_access.enable'] = TRUE;  Then configure
the $CONFIG_VARS['site.public_access.user_id'] to an Active user.  It is recommended that you
specify a guest user, otherwise anyone can reserve items (if you use a borrow user), or add/edit/delete
(a normal user), or really screw up the database (if an administrator)

Currently if you set the include/config.php variable $CONFIG_VARS['site.public_access.enable'] = TRUE; the
OpenDb will not be available for any other user to log in.

This may be changed in a future release, to allow a public non-login user, and also allow users to login
to their specific accounts even if $CONFIG_VARS['site.public_access.enable'] is TRUE.