#!/usr/bin/env php . // usage: delete_user.php ID // effectively delete the user with given ID // USE THIS WITH EXTREME CAUTION. CAN'T UNDO. require_once("../inc/user.inc"); require_once("../inc/boinc_db.inc"); die("Delete this line first\n"); $id = (int) $argv[1]; $user = BoincUser::lookup_id($id); if (!$user) die("no such user\n"); delete_account($user); ?>