From: Evan Prodromou Date: Fri, 2 Oct 2009 19:42:58 +0000 (-0400) Subject: script to permanently delete a user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54b22c0c0bb1e7f5fbbcf9035219b5ed07e1b80c;p=quix0rs-gnu-social.git script to permanently delete a user --- diff --git a/scripts/deleteuser.php b/scripts/deleteuser.php new file mode 100644 index 0000000000..67aea7921c --- /dev/null +++ b/scripts/deleteuser.php @@ -0,0 +1,68 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); + +$shortoptions = 'i::n::y'; +$longoptions = array('id::nickname::yes'); + +$helptext = <<nickname}' ({$user->id}). Are you sure? [y/N] "; + $response = fgets(STDIN); + if (strtolower($response) != 'y') { + print "Aborting.\n"; + exit(0); + } +} + +print "Deleting..."; +$user->delete(); +print "DONE.\n";