WebmasterSite.net

Cron job to delete members

Version: 4.1.61
URL:

PrintPrint


Cron job to delete members
idaida
Beginner

Usergroup: Customer
Joined: Apr 02, 2010

Total Topics: 2
Total Posts: 4
quote post #1
Posted 04/04/10 - 4:31 AM:

Hello,

Was wondering if this cron job would work ok. My captcha stopped working so I want to delete spam members that get past my javascript form validation.

I want to delete any members that do not have "human" typed in the field called visitor..

$db->delete('memberstable', "visitor != "human");

Thank you!
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 04/06/10 - 5:02 PM:

Use single quotes inside the double quotes:
<?php // member deletion cron
$db->delete('memberstable', "visitor != 'human'");
?>

Save that as a .php file and add it in the crons area and it'll work, yes. That leaves them time to do stuff before being deleted though.

GD has been bundled with PHP for years, so I don't see how your CAPTCHA could stop working.

Edited by Paul on 04/10/10 - 12:55 AM
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.