batch add files batch add files
 

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

batch add files

Started by cracker, May 01, 2005, 06:42:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cracker

How do I use the function "batch add files"`

I get this info:

"Select directory This function allows you to add a batch of file that your have uploaded to your server by FTP.
Select the directory where you have uploaded your files "

Where must I give this?

Nibbler

Create a new folder in the albums directory and upload the pics you wish to add into the new folder. Then read the manual.

busterbel

#2
Problem resolved at home but
when I click on "inserted selected files"
Error message "page not found"
http://www.mydomain.com/www.mydomain.com/coppermine/searchnew.php?startdir=batch

same if I want to create a category...

Why Coppermine suggests this :

http://www.mydomain.com/www.mydomain.com/coppermine/...

Very annoying this bug

Nibbler

It's not a bug, it's poor server setup. Please search the board for the workaround code.

busterbel

Hello Nibbler
Thanks for your reply but that doesn't help me very much.
You are certainly right, maybe it's not a bug, maybe a server setup mistake. But how can I change this server setup ??

As you suggest me, I made a search on the field "workaround code" but I haven't found any solution for my problem.
How can I edit my workaround for fixing finally this issue ?

I had the problem for the file config.php...I change the code inside this file and now that works but only for this config.php file
I still have a problem with the batch add files "searchnew.php" & creating a category "catmgr.php"...

EXAMPLE :
same type of error again searchnew.php
Batch Add Files...
when I click on "inserted selected files"
Error message "page not found"
http://www.mydomain.com/www.mydomain.com/coppermine/searchnew.php?startdir=batch
same errror if I want to create a category...

here is my url :
http://www.donadi.be/coppermine/


Regards thanks in advance for your help

Nibbler

init.inc.php, find

$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];


and replace it with

$PHP_SELF = '';
$possibilities = array('REDIRECT_URL', 'PHP_SELF', 'SCRIPT_URL', 'SCRIPT_NAME','SCRIPT_FILENAME');
foreach ($possibilities as $test){
if (isset($_SERVER[$test]) && preg_match('/([^\/]+\.php)$/', $_SERVER[$test], $matches)){
$PHP_SELF = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $matches[1];
break;
}
}

busterbel

Hi Nibller

It seems to me it now works fine.
I would like to thank you for having fixed the problem
Thank you for your fast reply and the solution detailed
regards have a good day