temporary access to a page temporary access to a 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

temporary access to a page

Started by pdiddy8117, February 10, 2007, 03:16:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pdiddy8117

how can i give temporary access to a page. when your logged in and try to view a link from another browser it goes to log in page (of course this is when Allow unlogged users (guest or anonymous) access is set to No)
example: user is directed to my registration page from another site where i have a link, if they try to copy and paste link to another browser etc it will go to home page. the same way it does when you have Allow unlogged users (guest or anonymous) access is set to No that way i can stop people from registering from the link on the browser
anyway of doing this will be fine.

Joachim Müller

I don't understand. Please rephrase.

pdiddy8117

lets say i am on cpgsample.com and i click on a  link which redirects me to register.php i dont want the user to be able to copy and paste register.php or send anyone the link for free access to register to my site. I tried sending a link to another browser with access to guest off when i am logged in and it works. the link sends me to the home page. looks something like this --> /displayimage.php?album=random&cat=10001&pos=-5 (not actual link) im not sure if its because of the extra stuff in the link but it sent me to loggin page

Joachim Müller

What's so bad about users being able to copy and paste the URL of the login page and sending them to others? This does not equal granting them access to anything. After all, they need to get to the login page sooner or later in order to be able to log in. They could copy and paste the URL then (at that later stage). However, this is up to you: if you need to see this changed, edit index.php, displayimage.php and thumbnails.php, find if (!USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
    $redirect = $redirect . "login.php";
    header("Location: $redirect");
    exit();
}
and edit the redirection target as you see fit.

pdiddy8117

what i am trying to do is stop users from going to register.php not login page. i want to stop them from copying register.php from their browser unless they are coming from page (sample) myform.php

Joachim Müller

Well, then go ahead and change your gallery as you see fit. I told you what piece of code needs modification. I can't and won't do more - don't expect copy&paste instructions.