Brad Whitaker (whitaker) wrote in lj_dev,
Brad Whitaker
whitaker
lj_dev

bin/maint/clean_oldusers.pl

Confused.

I'm looking at this script. It checks to see if an account is over 2 months old and has never been posted in. Then it goes to check and see if they've ever posted comments. So then we have:


if ($commented) { next; }
print "$u->{'user'} ... $u->{'userid'}\n";


Am I missing what's going on here? There's no delete getting done? It seems like the "next;" should be skipping over a delete query, but there is none to be found. Has this been disabled or something? It wouldn't make sense to have it "disabled" but still running tons of useless queries on a cron job.


Also found that on line 14, the variable $posted seems useless?
Subscribe

  • cl-journal livejournal client

    Hey everyone, I'd like to present a livejournal client that I wrote to fulfill my needs but maybe there are other people that can find it…

  • SessionGenerate and ljloggedin

    Are there any information after release 86 and changes in cookies scheme to use sessiongenerate? It returns ljsession key, but this key is not enough…

  • Retrieving comments

    Hi, Is there a way to retrieve a list of comments made by user XXX (which may or may be not the currently logged in user) in the journals of users…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 9 comments