redirect a logged user to the index page redirect a logged user to the index page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

redirect a logged user to the index page

Started by bit bit spears, February 10, 2004, 04:47:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bit bit spears

OK: I love casper's if user not logged it will send you to login php.

But lets say a user who is already logged in, when they come to a directory:

/gallery/index.php

if (USER_ID){

} else {
{
$redirect = $redirect . "login.php";
header("Location: $redirect");

exit();
}}


I know that script would refer you to login.php if you aren't logged in. But how would you make it to where if you would goto

/gallery/index.php

then it will redirect you to

images/index.php

If you are already logged in?

Thanks in advance!

Joachim Müller

I don't understand the question. Maybe some of the english native speakers could answer this. If not, please try to write the question in more detail - I don't get it...

GauGau

P.S. what mod are you referring to?

Casper

If I understand this correctly, you want to have the gallery/index.php direct you to another index.php, in a folder called images.  What is the point of that?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bit bit spears

because it is a gallery that is in another directory, but people will go to /whatever/ to get forwarded to the gallery.

Joachim Müller


bit bit spears

um gau gau-it is, because you need to be logged into coppermine LOL.