My site has accumulated a large number of user accounts that go nowhere (bots of course). These have failed to even create an initial album. Is there a way to delete these quickly and easily, yet at no risk to my real users?
I am no expert at website administration, but can roughly find my way around a database with command-line. Might this be the best way to go? Suggestions will be appreciated!
Thanks!
Gallery version (not just "2"): 2.3.1 core 1.3.0.1
PHP version (e.g. 5.1.6): 5.2
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache
Database (e.g. MySql 5.0.32): mysql 5.1
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): linux
Browser (e.g. Firefox 2.0):
Posts: 8339
create a file in your gallery2 directory "deleteUsers.php"
add the following:
change the $usersToDelete array to the usernames you actually want to delete.
visit this page w/ your browser once - you must be logged in as an admin to perform this operation.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 4
Hmmm... I seem to be getting no response - just a blank page - not even an error. Maybe something about the api commands isn't working with my install(?)
Is there any reason I should not just get into mysql and do a DELETE FROM LP_g2_User ?
Posts: 8339
embed.php is in the same directory?
you changed $usersToDelete = array('tom', 'dick', 'harry'); to contain some of your actual users?
do not do that.
When gallery creates an Entity it has many entries in many tables.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2