Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: Problem with banning  (Read 4517 times)

0 Members and 1 Guest are viewing this topic.

ornic

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Problem with banning
« 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.
« Last Edit: July 09, 2004, 09:46:35 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with banning
« Reply #1 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
Logged

ornic

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Problem with banning
« Reply #2 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"?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with banning
« Reply #3 on: July 05, 2004, 09:16:50 am »

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

GauGau
Logged

ornic

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Problem with banning
« Reply #4 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with banning
« Reply #5 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
Logged

ornic

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Problem with banning
« Reply #6 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].
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with banning
« Reply #7 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.