tbrehm
2008-12-15 eb0645bb0d5079d12b84213d95d3e21fcce66e4c
server/plugins-available/shelluser_base_plugin.inc.php
@@ -32,6 +32,7 @@
   
   var $plugin_name = 'shelluser_base_plugin';
   var $class_name = 'shelluser_base_plugin';
   var $min_uid = 499;
   
   //* This function is called during ispconfig installation to determine
   //  if a symlink shall be created for this plugin.
@@ -73,7 +74,7 @@
      
      // Get the UID of the parent user
      $uid = intval($app->system->getuid($data['new']['puser']));
      if($uid > 999) {
      if($uid > $this->min_uid) {
         $command = 'useradd';
         $command .= ' --home '.escapeshellcmd($data['new']['dir']);
         $command .= ' --gid '.escapeshellcmd($data['new']['pgroup']);
@@ -98,7 +99,7 @@
      
      // Get the UID of the parent user
      $uid = intval($app->system->getuid($data['new']['puser']));
      if($uid > 999) {
      if($uid > $this->min_uid) {
         $command = 'usermod';
         $command .= ' --home '.escapeshellcmd($data['new']['dir']);
         $command .= ' --gid '.escapeshellcmd($data['new']['pgroup']);
@@ -125,7 +126,7 @@
      
      // Get the UID of the user
      $userid = intval($app->system->getuid($data['old']['username']));
      if($userid > 999) {
      if($userid > $this->min_uid) {
         $command = 'userdel';
         $command .= ' '.escapeshellcmd($data['old']['username']);