Advanced search  

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]

Pages: [1]   Go Down

Author Topic: redirect a logged user to the index page  (Read 3017 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
redirect a logged user to the index page
« on: February 10, 2004, 04:47:40 am »

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

Code: [Select]
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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
redirect a logged user to the index page
« Reply #1 on: February 11, 2004, 12:28:34 am »

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?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
redirect a logged user to the index page
« Reply #2 on: February 11, 2004, 12:34:13 am »

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?
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
bc
« Reply #3 on: February 11, 2004, 12:50:45 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
redirect a logged user to the index page
« Reply #4 on: February 11, 2004, 01:28:46 am »

not coppermine related, but anyway: http://www.pageresource.com/html/metref.htm (or 1 million other pages when googling for "meta refresh")
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
um yea
« Reply #5 on: February 11, 2004, 03:08:24 am »

um gau gau-it is, because you need to be logged into coppermine LOL.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 14 queries.