[Solved]: Problem with banning [Solved]: Problem with banning
 

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

[Solved]: Problem with banning

Started by ornic, July 04, 2004, 10:40:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ornic

Hello all!

When I ban a user and choose "5 hours" is became "03:33:20 01 Jan 1970 MSK". Is there problem with Coppermine or OS setup?
"Timezone difference relative to GMT" is set to 3.

Joachim Müller

you can't use relative time settings like "5 hours", you have to use an absolute time in Unix format.

GauGau

ornic

It will be very useful for such field to count relative time from now(). May this topic be moved to "Feature requests"?

Joachim Müller

moved to feature requests. Will need some looking into...

GauGau

ornic

The problem solved in CVS. Thanx a lot! Calendar is great!
But there is still some small issure:
\include\init.inc.php
=================
$now = time();
db_query("DELETE FROM {$CONFIG['TABLE_BANNED']} WHERE expiry < $now");
=================
should be (in our variant: PHP Version 4.3.7, Linux 2.6.6-1.435.2.3 Fedore Core)
=================
$now = date("Y-m-d H:i:s");
db_query("DELETE FROM {$CONFIG['TABLE_BANNED']} WHERE expiry < '$now'");
=================
to proper deleting old bans from base

Joachim Müller

The calendar is only in the devel branch of the cvs so far - you mustn't use devel files unless you really, really know what you're doing. Additionally, there's no support for devel versions at all.

GauGau

ornic

The devel branch is the only version for now where the banning system working. So we had no choice. And i decided to to help people who in the same situation.

Just for information: is there the place for user to post such information (possible issures on devel branch)?

IMHO this request may be marked as [solved].

Joachim Müller

there is only one place where issues on the devel branch of the cvs will be discussed: the closed developer board. Devel simply isn't meant for "regular" users, unless you can live with bugs and fix them for yourself.

I have just committed fixes to the stable branch as well, they should show up in webcvs in a short while.

GauGau