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

Recent posts

#1
cpg1.6 plugins / Re: serch for a "userpics to s...
Last post by ron4mac - Yesterday at 08:23:27 PM
That would have to be modified to work with CPG 1.6
I've modified a copy of the FileMove plugin to work with only 250 files at a time. Maybe that can work for you. ( I have no way to fully test it )
#2
cpg1.6 plugins / Re: serch for a "userpics to s...
Last post by Chris99 - Yesterday at 10:54:28 AM
Hi, thank you. Ive tried this tool, but it seems there are too many files (500.000) in userpics folder. I get a white page and nothing happens.... neither after 30 min...


Andre wrote this tool, it works perfect in those days with 1.5, does it work also with 1.6?

Thank you.
 
<?php
define
('IN_COPPERMINE'true);
define('DB_INPUT_PHP'true);
require(
'include/init.inc.php');

if (!
GALLERY_ADMIN_MODE) {
    
cpg_die(ERROR$lang_errors['access_denied']);
}

$limit 50;
$result cpg_db_query("SELECT pid, aid, filepath, filename FROM {$CONFIG['TABLE_PICTURES']} WHERE filepath LIKE '{$CONFIG['userpics']}%' AND filepath NOT LIKE CONCAT('%/', aid, '/') LIMIT $limit");

if (
mysql_num_rows($result)) {
    
pageheader('Moving''<meta http-equiv="refresh" content="1; URL='.$CPG_PHP_SELF.'">');
    echo 
'<table width="100%"><tr><td class="tableh1" width="50%">File</td><td class="tableh1" width="50%">Moved to</td></tr>';
} else {
    
pageheader('Done');
    echo 
'<table width="100%"><tr><td>Done.</td></tr>';
}

while (
$row mysql_fetch_assoc($result)) {
    
$dest_dir_sql $row['filepath'].$row['aid'].'/';
    
$dest_dir $CONFIG['fullpath'].$dest_dir_sql;
    
$src_dir $CONFIG['fullpath'].$row['filepath'];
    
$images = array($row['filename'], $CONFIG['normal_pfx'].$row['filename'], $CONFIG['thumb_pfx'].$row['filename'], $CONFIG['orig_pfx'].$row['filename']);

    if (!
is_dir($dest_dir)) {
        
mkdir($dest_diroctdec($CONFIG['default_dir_mode']));
        if (!
is_dir($dest_dir)) {
            
cpg_die(CRITICAL_ERRORsprintf($lang_db_input_php['err_mkdir'], $dest_dir), __FILE____LINE__);
        }
        @
chmod($dest_diroctdec($CONFIG['default_dir_mode'])); //silence the output in case chmod is disabled
        
$fp fopen($dest_dir '/index.php''w');
        
fwrite($fp' ');
        
fclose($fp);
    }

    foreach (
$images as $image) {
        if (!
file_exists($src_dir.$image)) {
            continue;
        }
        if (!
rename($src_dir.$image$dest_dir.$image)) {
            
cpg_die(CRITICAL_ERRORsprintf($lang_db_input_php['err_move'], $src_dir.$image$dest_dir), __FILE____LINE__);
        } else {
            echo 
'<tr><td>'.$src_dir.$image.'</td><td>'.$dest_dir.'</td></tr>';
        }
    }

    
cpg_db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET filepath = '$dest_dir_sql' WHERE pid = {$row['pid']}");
}

echo 
'</table>';
pagefooter();
#3
cpg1.6 plugins / Re: serch for a "userpics to s...
Last post by ron4mac - August 03, 2026, 10:37:57 PM
#4
cpg1.6 plugins / serch for a "userpics to subdi...
Last post by Chris99 - August 03, 2026, 08:02:42 PM
Hi,
 I searching for a plugin "userpics to subdir" which creates a subdir in Userpics Folder and move the files in the subdir. 

I have that same problem like in 2015. too much files in Userpics Directory:
André creates a script:
https://coppermine-gallery.com/forum/index.php/topic,78004.0.html

Will this work with the 1.6 Coppermine?

Thank you.
#5
Mods: Permissions / Re: Moderators for Album pictu...
Last post by phill104 - July 29, 2026, 04:28:34 PM
Quote from: Xyzz on July 29, 2026, 03:58:51 PMAbbas, are you the owner of copper mine. Someone is unlawfully using my photos and name through this platform and I need the site removed please if you can help me. If not, I will have to take legal action. Please contact me immediately

Coppermine is a community run open source project. It has bee not only distributed by us, the makers of the tool, but by many service providers like godaddy, 1&1 etc. Anyone can download and install coppermine gallery software in much the same way anyone can download and install linux. How it is used is not something we can deal with. Coppermine does not host the images, it is just a tool for uploading and viewing said images. You will need to take legal action against the owener of watever site is hosting your images.

I do know how bad it feels when your iages are used elsewhere without your permission. I have seen images of mine used in a magazine, on a poster and in many places on the web. There are companies like Pixsy https://www.pixsy.com/ that may be able to help you get these taken down IF they are hosted in a country where they have influence. or the legal power to do so. That is not always the case I am afraid.
#6
Mods: Permissions / Re: Moderators for Album pictu...
Last post by Xyzz - July 29, 2026, 03:58:51 PM
Quote from: Abbas Ali on January 14, 2006, 05:53:27 PMThe files modified for both the mods are same and hence you will have to undo previous mod. If you hadn't any other mod other then my previous mod (upload approval) then it is recommended that you just replace your existing files with this one (do make backups).

Note: This mod also does upload approval.

Abbas, are you the owner of copper mine. Someone is unlawfully using my photos and name through this platform and I need the site removed please if you can help me. If not, I will have to take legal action. Please contact me immediately
#7
Mods: Permissions / Re: Moderators for Album pictu...
Last post by Xyzz - July 29, 2026, 03:56:28 PM
Quote from: Abbas Ali on April 18, 2006, 03:26:24 PMOpen the gallery's index page in browser. You will see the output there. Also post a link to your gallery so that i can see the output.


I need an owner of copper mine to contact me immediately. A user of your illegally posted a website in my name with photos not meant to be public which will ruin my reputation personally and professionally and is very serious. I have no idea how to navigate this site. I need the site removed immediately. Someone please contact me
#8
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by Slava - July 13, 2026, 08:13:31 PM
Quote from: Legacies on June 03, 2026, 08:16:16 PMThank you very much for any assistance.
Vibe coding may be helpful here.
A method that has worked very well for me is to make a full backup, then create a ZIP archive containing all gallery files except the `/albums/` directory and upload it to ChatGPT together with a detailed description of the problem. Before uploading, make sure to remove or replace any database passwords, API keys, email credentials, or other sensitive information from configuration files.
Ask ChatGPT to investigate the issue and return only the files that need to be changed. This makes it much easier to compare the modified files with the originals and restore the backup if necessary.
Using this approach, I have already modernized several old Coppermine galleries based on CPG 1.4.* and 1.5.* that previously worked only with PHP 5.3. They now run on PHP 8.5 and also have search-engine-friendly URLs, various SEO improvements, mobile-friendly layouts, and much better indexing.
Of course, always test the modified files on a copy of the gallery first and keep a complete backup of both the files and the database.
#9
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by websdinamicas - July 13, 2026, 10:49:51 AM
Hi,

i could not found where Coppermine is using PHP Assertions but finally solved creating a .htaccess file in Coppermine dir with:

<IfModule mod_php.c>
  php_value assert.active                  -1
</IfModule>
#10
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by ron4mac - July 09, 2026, 05:00:00 PM
It should not be needed for Drupal. That assertion has been deprecated by zend.assertions -1