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: Delete Inactive Users automatically  (Read 2848 times)

0 Members and 1 Guest are viewing this topic.

scottking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Delete Inactive Users automatically
« on: May 28, 2006, 03:02:33 am »

I referred to the following post and get the error below. Can someone help assist. For now I have removed the suggested code.
http://forum.coppermine-gallery.net/index.php?topic=13372.0

db_query("DELETE FROM {$CONFIG['TABLE_USERS']} WHERE user_active = 'NO' AND user_regdate < NOW() - INTERVAL 24 HOUR");

I added the above before ?> in the init.inc.php page.

Fatal error: Call to undefined function: db_query() in /home/marghel/public_html/photos/include/init.inc.php on line 412

Thanks
Scott
« Last Edit: May 28, 2006, 03:17:58 pm by Nibbler »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Delete Inactive Users automatically
« Reply #1 on: May 28, 2006, 09:25:34 am »

Change db_query to cpg_db_query
Logged

scottking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Delete Inactive Users automatically
« Reply #2 on: May 28, 2006, 02:10:09 pm »

Thank you that solved the problem
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.