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


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

Who's Online

355 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 355


more...

Donat-O-Meter

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

Latest GitHub Commits