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.
76 2004-10-24 05:46
Re: Coppermine Integration... (80 replies, posted in PunBB 1.2 modifications, plugins and integrations)
77 2004-08-21 00:41
Re: Coppermine Integration... (80 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
78 2004-08-20 18:34
Re: random image (9 replies, posted in Programming)
Run pic.php in your browser and see what it does.
79 2004-08-20 18:20
Re: random image (9 replies, posted in Programming)
It has just been released in Coppermine 1.3.2 available here
80 2004-08-20 12:30
Re: random image (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 2004-07-30 18:47
Re: modding punbb for my site. (11 replies, posted in PunBB 1.2 discussion)
Looks like you haven't even setup the bridge yet.
82 2004-07-30 12:08
Re: modding punbb for my site. (11 replies, posted in PunBB 1.2 discussion)
Can you post/PM a link to where coppermine is installed ?
83 2004-07-27 23:39
Re: modding punbb for my site. (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.
84 2004-07-26 22:34
Re: Counting posts (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 2004-07-25 23:54
Re: Counting posts (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.
86 2004-07-25 15:41
Re: Coppermine Integration... (80 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Get it here.
87 2004-07-24 20:11
Re: Coppermine Integration... (80 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.