Hook de ménage dans la table vm quand on supprime un utilisateur

This commit is contained in:
Alan Garcia 2013-04-21 09:48:05 +00:00
parent 776bdfb342
commit 7169100cff
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class m_lxc implements vm
function m_lxc() {
$this->IP = variable_get('lxc_ip', '', "IP address of the Alternc's LXC server. If empty, no LXC server.");
$this->PORT = variable_get('lxc_port', '6504', "Port of the Alternc's LXC server");
$this->KEY = variable_get('lxc_key', '', "Shared key with the Alternc's LXC server");
}
@ -30,6 +31,13 @@ class m_lxc implements vm
return $obj;
}
function hook_admin_del_member() {
global $db,$err,$cuid;
$err->log("lxc","alternc_del_member");
$db->query("DELETE FROM vm_history WHERE uid='$cuid'");
return true;
}
private function sendMessage($action, $user, $password, $uid)
{