coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: ornic on July 04, 2004, 10:40:50 PM

Title: [Solved]: Problem with banning
Post by: ornic on July 04, 2004, 10:40:50 PM
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.
Title: Re: Problem with banning
Post by: Joachim Müller on July 05, 2004, 02:56:58 AM
you can't use relative time settings like "5 hours", you have to use an absolute time in Unix format.

GauGau
Title: Re: Problem with banning
Post by: ornic on July 05, 2004, 09:10:21 AM
It will be very useful for such field to count relative time from now(). May this topic be moved to "Feature requests"?
Title: Re: Problem with banning
Post by: Joachim Müller on July 05, 2004, 09:16:50 AM
moved to feature requests. Will need some looking into...

GauGau
Title: Re: Problem with banning
Post by: ornic on July 08, 2004, 10:04:24 PM
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
Title: Re: Problem with banning
Post by: Joachim Müller on July 09, 2004, 07:32:48 AM
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
Title: Re: Problem with banning
Post by: ornic on July 09, 2004, 09:29:08 AM
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].
Title: Re: Problem with banning
Post by: Joachim Müller on July 09, 2004, 09:46:14 AM
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