Coppermine is perfectly secure - there have been no reports of any security breach that I can recall. If you are looking to integrate coppermine with punbb then coppermine will obviously use the hashed passwords from the punbb database so no worries about plain text passwords.

Production version of the bridge is included in the newly released Coppermine 1.3.2. It is also the smallest bridge file of all the BBs smile

78

(9 replies, posted in Programming)

Run pic.php in your browser and see what it does.

79

(9 replies, posted in Programming)

It has just been released in Coppermine 1.3.2 available here

80

(9 replies, posted in Programming)

<?php

$dir = 'images';

function scan_directory($dir)
{
    global $list;
    
    $dirlist = opendir($dir);
    while (false !== ($file = readdir($dirlist)))
    {
        if ($file != '.' && $file != '..')
        {
            $newpath = $dir.'/'.$file;
            if (is_dir($newpath)){
                scan_directory($newpath);
            } else {
                array_push($list,$newpath);
            }
        }
    }
    closedir($dirlist);
}

$list = array();
scan_directory($dir);
$key = array_rand($list);
header("Location: http://" . $_SERVER['HTTP_HOST'] . "/{$list[$key]}");
exit;
?>

Put that in a file pic.php outside the images directory, and you can use it in an img tag <img src="pic.php"> from any page.

81

(11 replies, posted in PunBB 1.2 discussion)

Looks like you haven't even setup the bridge yet.

82

(11 replies, posted in PunBB 1.2 discussion)

Can you post/PM a link to where coppermine is installed ?

83

(11 replies, posted in PunBB 1.2 discussion)

You can get coppermine to run out of your punbb user table, so no extra registering needed.

http://punbb.org/forums/viewtopic.php?id=4208

84

(5 replies, posted in PunBB 1.2 discussion)

Use this block instead then:

$postcount = $db->query('SELECT max(id) FROM '.$db->prefix.'posts') or error('Unable to fetch post count', __FILE__, __LINE__, $db->error());

$total = $db->result($postcount, 0);

while ($cur_post = $db->fetch_assoc($result))
{
    echo "post {$cur_post['id']} of $total"; 
    // If the poster is a registered user.

it will have gaps if you delete posts though

85

(5 replies, posted in PunBB 1.2 discussion)

I'd just make my own variables, open your viewtopic.php, find

while ($cur_post = $db->fetch_assoc($result))
{
    // If the poster is a registered user.

and replace with

$total = $db->num_rows($result);
$i = 0;

while ($cur_post = $db->fetch_assoc($result))
{
    $i++;
    echo "post $i of $total"; 
    // If the poster is a registered user.

That gives you this

You can then move the echo to wherever you want the info to display.

Get it here. smile

Hello,

I am creating a bridge for PunBB integration with Coppermine. The bridge file will not be included with coppermine until the next version (1.4) I expect.

[Demo removed]

Limited to MySQL databases only since coppermine currently lacks a db abstraction layer.

All feedback welcome.

Nibbler
Coppermine Developer.