MRBS - Meeting Room Booking System: Difference between revisions

From RavenWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
MRBS - Meeting Room Booking System
MRBS - Meeting Room Booking System, version 1.2.3


This is a very simple booking system that is OSS:
This is a very simple booking system that is OSS:
Line 12: Line 12:
         if (isset($_SERVER['REMOTE_USER']) && ($_SERVER['REMOTE_USER'] != ""))
         if (isset($_SERVER['REMOTE_USER']) && ($_SERVER['REMOTE_USER'] != ""))
             return $_SERVER['REMOTE_USER'];
             return $_SERVER['REMOTE_USER'];
for version 1.2.4 the code is very similar, but with a few { and } in it.





Revision as of 15:10, 6 February 2007

MRBS - Meeting Room Booking System, version 1.2.3

This is a very simple booking system that is OSS: MRBS Home Page

To use Raven authentication you could put in your own PHP code, or take the quicker approach and use Apache Raven authentication combined with a simple code change in session_php.inc, in the function "getUserName":


//        if (isset($HTTP_SESSION_VARS["UserName"]) && ($HTTP_SESSION_VARS["UserName"] != ""))
//            return $HTTP_SESSION_VARS["UserName"];
       if (isset($_SERVER['REMOTE_USER']) && ($_SERVER['REMOTE_USER'] != ""))
           return $_SERVER['REMOTE_USER'];

for version 1.2.4 the code is very similar, but with a few { and } in it.


and this bit of configuration in config.inc.php :

$auth["session"] = "php";
$auth["type"] = "none";

The .htaccess file is very simple:

<Limit GET>
order deny,allow
deny from all
AuthType Ucam-WebAuth
Require valid-user
Satisfy any
</Limit>