[PHPLIB] Authentication of Framesets. From: Lauren Daniel Stegman (lstegman <email protected>)
Date: 03/13/00

I have read the previous posts on frameset authentication, but have not yet
been able to get things working properly on my site.

I need to have the following sort of framset:

----------------------------------
| | |
| Nav | |
| Bar | MAIN |
| | |
| | |
----------------------------------

The way I have things now, when you first open the index.php3 file the a
single frame login form appears. However, after authenticating this login
the frameset opens with loginforms in EACH of the frames. Obviously, I want
the login screen to pass the session, authentication, user, and permissions
on to each of the daughter frames. I have copied the code I am using below.

Help would be greatly appreciated.

Sincerely,
Lauren Stegman

Right now I have the following code for the frameset:

<?php
  page_open(
    array("sess" => "Neo_Session",
          "auth" => "Neo_Challenge_Auth",
           "user" => "Neo_User",
          "perm" => "Neo_Perm"));
  require('lib.inc.php3');
?>
<html>
<head>
<title>Journalsoft Manuscript Management System</title>
</head>
<frameset cols="100,*" rows="*" border="0" frameborder="0">
<frame src="<?php $sess->purl("left.php3"); ?>" name="nav">
<frame src="<?php $sess->purl("main2.php3") ?>" name="'main">
</frameset>");
<noframes>
<body bgcolor="#FFFFFF">

</body>
</noframes>
</html>

The component frames are both as follows:

left.php3
----------------------------------------
<?php
  page_open(
    array("sess" => "Neo_Session",
          "auth" => "Neo_Default_Auth"));
           "user" => "Neo_User",
         "perm" => "Neo_Perm"));
require("lib.inc.php3");
?>

<html>
<head>
<title>Test</title>
<base target="main">
<style type="text/css">
//<!--
body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
//-->
</style>

</head>

<body bgcolor="#D0DCE0">
<?php
if ($perm->have_perm("admin")) {
print("<A HREF=main2.php3?status=assignrev>Assign reviewers.</A><HR>
<A HREF=main2.php3?status=4>Show overdue reviews.</A><HR>
<A HREF=main2.php3?status=5>Make editorial decisions.</A><HR>
<A HREF=main2.php3?status=all>View all manuscripts.</A><HR>
<A HREF=ms.php3?newms=Yes>Add new manuscript.</A>");
}
?>
</body>
</html>

main2.php3
-------------------------------------------------------------
<?php
/* $Id: main.php3,v 1.18 1999/06/28 16:45:31 tobias Exp $ */
   page_open(
     array("sess" => "Neo_Session",
           "auth" => "Neo_Challenge_Auth",
           "user" => "Neo_User",
           "perm" => "Neo_Perm")
           );
    define("JOURNAL", "Neoplasia");
    $Today = date("l F d, Y");
   include("header.inc.php3");
?>

<h1>Welcome</h1>
...

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.