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: Error in Coppermine??  (Read 2841 times)

0 Members and 1 Guest are viewing this topic.

The Milkman

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
  • Live Long & Prosper
Error in Coppermine??
« on: July 02, 2004, 04:39:45 pm »

Hey,
I installed Coppermine succesfully, and didn't mod it at all.
It is a clean install.
But then, under at the commermine page is written:

flush(); break; } } pagefooter(); ob_end_flush(); // Speed-up the random image query by 'keying' the image table if (time() - $CONFIG['randpos_interval'] > 86400) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1"); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; $granularity = floor($pic_count / RANDPOS_MAX_PIC); $result = db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET randpos = ROUND(RAND()*$granularity) WHERE 1"); $result = db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . time() . "' WHERE name = 'randpos_interval'"); } ?>

Is this a bug? Or a misconfiguration.
Please help me, thanks in advance.

Bert
Logged
Greetz Bert

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Error in Coppermine??
« Reply #1 on: July 02, 2004, 06:05:40 pm »

http://forum.coppermine-gallery.net/index.php?topic=7439.0

It seems you have a file that has been corrupted.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.