Hook de ménage dans la table vm quand on supprime un utilisateur
This commit is contained in:
parent
776bdfb342
commit
7169100cff
|
@ -14,6 +14,7 @@ class m_lxc implements vm
|
||||||
function m_lxc() {
|
function m_lxc() {
|
||||||
$this->IP = variable_get('lxc_ip', '', "IP address of the Alternc's LXC server. If empty, no LXC server.");
|
$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->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;
|
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)
|
private function sendMessage($action, $user, $password, $uid)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue