News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

picmgmtbatch.inc.php can paths be variables?

Started by yrret, October 12, 2003, 08:31:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yrret

on lines 28-30

        $image = "modules/coppermine/albums/$image";
        $normal = "modules/coppermine/albums/$normal";
        $thumb = "modules/coppermine/albums/$thumb";


I like to keep my albums folder outside my Nuke folder to ease back-up chores. The batch upload is not modified by the configuration file variable. I have changed this to be hard coded specific to my site, but wonder if I could just stick a variable in there (one that exists). I am still getting my brain around the code and appreciate any help.

tallar

is there anybody whw can help us??

tallar


DJMaze

Go to your coppermine config page.

There you can setup the directories.
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

yrret

The problem I am talking about is that if you move the folder outside your nuke folder, the batch function is not using the paths from the variable. Which is pretty evident when you look at the code I posted.

$image = "modules/coppermine/albums/$image";
   $normal = "modules/coppermine/albums/$normal";
   $thumb = "modules/coppermine/albums/$thumb";

If you want to move your folder, change to hard code your path till the new nuke version is out... (The new coppermine uses the variables here)

$image = "../albums/$image";
   $normal = "../albums/$normal";
   $thumb = "../albums/$thumb";


So the ../ is telling coppermine to jump up one level, instead of starting at the root level of your nuke intsall.
If your albums folder is different than albums, you will have to change it in the code.