How to delete 8916 pages of spam users. How to delete 8916 pages of spam users.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to delete 8916 pages of spam users.

Started by wardsweb, February 02, 2015, 03:51:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wardsweb

Even with my registration turned off, hackers managed to register 8916 pages of users yesterday. I have upgraded the gallery today to the latest version. How do I do a mass delete, instead of one page at a time for almost 9000 pages?

allvip

If you want to delete all users is very simple.
Let me know if you want to delete all users and keep only you (the admin users).

wardsweb

That will wor, delete all users except the admin.

allvip

Open your_gallery_folder/include/init.inc.php and paste at the end after }

cpg_db_query("DELETE FROM {$CONFIG['TABLE_USERS']} WHERE user_group = '2' AND user_regdate < NOW() - INTERVAL 1 HOUR");


then refresh users page

You shoul have all users delete but not the admin and users registred in the last hour.

Go back to init.inc.php and delete the code.

wardsweb

I did as instructed. It deleted all but the original first page of users (21 users). It did delete test, but I have added it back in.

allvip

Click Topic solved if you are ok with the solution.