1
claymc
Xoops authentication on static pages
  • 2004/7/19 20:25

  • claymc

  • Just popping in

  • Posts: 3

  • Since: 2004/7/19


I would like to include some static pages in my XOOPS intranet site. I read the FAQ part of the manual that explains what include statements to use, but I want the user to be prompted to authenticate if they have not already done so. The way I have it now is the opposite...you can access the URL of the page directly and bypass XOOPS authentication altogether. Some of the information I am including is semi-sensitive and I would like to keep prying eyes from it. Thanks in advance.

2
tom
Re: Xoops authentication on static pages
  • 2004/7/19 22:40

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Two options:

You could use WFsections or another module of this type, or maybe evem iframes, or you could make it into a simple module of your own.

WFSections, allows you to set group permissions per article, which maybe handy for you, from what I see of your post.

3
claymc
Re: Xoops authentication on static pages
  • 2004/7/20 12:39

  • claymc

  • Just popping in

  • Posts: 3

  • Since: 2004/7/19


Hi Tom.

Thanks for your suggestions. I have been meaning to look into XOOPS module development more closely so I think I might take that route.

4
ackbarr
Re: Xoops authentication on static pages

you can also do something like this:
//Adjust to be path to XOOPS mainfile.php
require('mainfile.php'); 

//Adjust to path of current page
$spage XOOPS_URL'/staticpage.php';

//Check if user is authenticated
if (!$xoopsUser) {
  
header('Location: ' XOOPS_URL.'/user.php?xoops_redirect='$spage)
}

require(
XOOPS_ROOT_PATH.'/header.php');
?>

require(XOOPS_ROOT_PATH.'/footer.php');
?>

5
claymc
Re: Xoops authentication on static pages
  • 2004/7/20 20:38

  • claymc

  • Just popping in

  • Posts: 3

  • Since: 2004/7/19


Thanks ackbarr. This will do nicely.

Login

Who's Online

575 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 575


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits