Path problems Path problems
 

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

Path problems

Started by slyzen, February 26, 2004, 02:33:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

slyzen

It seems that I have some troubles with my root folder path. My domain is www.slyzen.com and I installed coppermine files in the folder cpg121 so the path of the config.php file is

http://www.slyzen.com/cpg121/config.php

when I try to save changes on this page for exampel, I'm redirected on another config file on the path http://www.slyzen.com/config.php and this problem also exists on the "batch add" page and probably elsewhere .. Moreover I wondered where to indicate the folder in which the coppermine files are (cpg121) .. because without that I dont't understand how php will find its pages.. I saw that the server var $php_self is used to get the current php file name but the "/" before the file name redirect to the parent folder ..

could somebody help me ?

thx :D
sly

Joachim Müller

make sure you have set "Target address for the 'See more pictures' link in e-cards" in coppermine config to http://www.slyzen.com/cpg121

GauGau

slyzen

thx Gaugau, the post was apparement not rather clearly (my english is so bad  :? )

I finally solved my problem by replacing the line
// $PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];

by the following line

$PHP_SELF = 'http://www.slyzen.com/cpg121'.$HTTP_SERVER_VARS['SCRIPT_NAME'];

There is surely a better solution but for the moment I will be satisfied with this one..

Now I have some troubles with the album manager function (can't create any album) but I'll search some answers on the board.. :D
sly