1
nightr
How to redirect unregistered user
  • 2004/10/24 16:09

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


In the news module there is a short and a full story of an artice. Short displayed in one .php file and the full article in other .php file. I want to make that only registered users could get to full story (to the other .php file). What code do i need to insert, to redirect unregistered users to page register.php when they try to reach the article.php
Thanx in advance!

2
ejuden01
Re: How to redirect unregistered user
  • 2004/11/19 22:04

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


le="color: #000000"><?php if(!$xoopsUser){ redirect_header('register.php',3, $message); // 'register.php' is the page to redirect to // 3 is # of seconds to wait before redirecting // optional 3rd parameter($message) is a message displayed }

Login

Donat-O-Meter

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

Latest GitHub Commits