From 7169100cff3a2c5e8ff481f5be59e8872bd7c1fa Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Sun, 21 Apr 2013 09:48:05 +0000 Subject: [PATCH] =?UTF-8?q?Hook=20de=20m=C3=A9nage=20dans=20la=20table=20v?= =?UTF-8?q?m=20quand=20on=20supprime=20un=20utilisateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_lxc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bureau/class/m_lxc.php b/bureau/class/m_lxc.php index 4e22efc5..8f551d12 100644 --- a/bureau/class/m_lxc.php +++ b/bureau/class/m_lxc.php @@ -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) {