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: Path problems  (Read 2940 times)

0 Members and 1 Guest are viewing this topic.

slyzen

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.slyzen.com/cpg121/
Path problems
« on: February 26, 2004, 02:33:01 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Path problems
« Reply #1 on: February 26, 2004, 03:57:20 pm »

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
Logged

slyzen

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.slyzen.com/cpg121/
Path problems
« Reply #2 on: February 27, 2004, 11:02:02 am »

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
Logged
sly
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.