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: picmgmtbatch.inc.php can paths be variables?  (Read 5714 times)

0 Members and 1 Guest are viewing this topic.

yrret

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • http://electricocean.com
picmgmtbatch.inc.php can paths be variables?
« on: October 12, 2003, 08:31:04 pm »

on lines 28-30
Code: [Select]

        $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.
Logged

tallar

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
same problem
« Reply #1 on: October 22, 2003, 09:50:04 pm »

is there anybody whw can help us??
Logged

tallar

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
????
« Reply #2 on: October 26, 2003, 02:35:18 am »

Hello ????
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
picmgmtbatch.inc.php can paths be variables?
« Reply #3 on: October 26, 2003, 06:17:19 am »

Go to your coppermine config page.

There you can setup the directories.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • http://electricocean.com
Actually I posted this because the paths don't change
« Reply #4 on: November 01, 2003, 09:24:23 pm »

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.

Code: [Select]
$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)

Code: [Select]
$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.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.