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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.