Redirect link Redirect link
 

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 link

Started by Traxman, May 08, 2005, 09:18:34 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Traxman

My gallery has been working great, I have skinned it to my sites theme and everything is great. I have one small issue tho.

I inserted a link in my forums header for my gallery which works most of the time. By most of the time I mean it works every single time you click it except when you already logged into the forum previously.

There is a test account on my board.

http://www.gamingdynasty.com/forum2/index.php
http://www.gamingdynasty.com/PhotoAlbum/index.php

user: test1
pass: test1

It may have been a small oversight on my part but here is the cpg_redir.php


<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/PhotoAlbum';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Traxman

As an example I had my forum in another browser and just tested my links I posted and when I click the gallery link from this page and beings that I am logged into my board already it just sends me straight to my forum.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Nibbler

It sends me to your forums login page if I click it while not logged in, and to your gallery when I am logged in. Seems ok to me.

Traxman

Hmm could it be my cookies you think? Either way ima try it but when I am logged in on my forum page and hit my gallery link it reloads my gallery. Maybe it's just me. I wonder if anyone else has had that problem. Thanks for the feedback tho.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)