tbrehm
2008-12-16 74ba4e9af03b0c2995039aaf8b4470872d38daeb
server/plugins-available/shelluser_jailkit_plugin.inc.php
@@ -70,6 +70,10 @@
   function insert($event_name,$data) {
      global $app, $conf;
      
      $app->uses('system');
      if($app->system->is_user($data['new']['username'])) {
      /**
       * Setup Jailkit Chroot System If Enabled 
       */
@@ -87,11 +91,19 @@
      
      $app->log("Jalikit Plugin -> insert username:".$data['new']['username'],LOGLEVEL_DEBUG);
      
      } else {
         $app->log("Jalikit Plugin -> insert username:".$data['new']['username']." skipped, the user does not exist.",LOGLEVEL_WARN);
      }
   }
   
   //* This function is called, when a shell user is updated in the database
   function update($event_name,$data) {
      global $app, $conf;
      $app->uses('system');
      if($app->system->is_user($data['new']['username'])) {
      
      /**
       * Setup Jailkit Chroot System If Enabled 
@@ -110,6 +122,10 @@
      
      $app->log("Jalikit Plugin -> update username:".$data['new']['username'],LOGLEVEL_DEBUG);
      
      } else {
         $app->log("Jalikit Plugin -> update username:".$data['new']['username']." skipped, the user does not exist.",LOGLEVEL_WARN);
      }
   }
   
   //* This function is called, when a shell user is deleted in the database
@@ -119,6 +135,8 @@
   function delete($event_name,$data) {
      global $app, $conf;
      
      $app->uses('system');
      if ($data['old']['chroot'] == "jailkit")
      {
         $app->uses("getconf");