tbrehm
2011-09-20 52407705d64ebabbf3de87fdb78602d24af5a673
server/mods-available/web_module.inc.php
@@ -43,7 +43,13 @@
                           'shell_user_delete',
                           'webdav_user_insert',
                           'webdav_user_update',
                           'webdav_user_delete');
                           'webdav_user_delete',
                           'web_folder_insert',
                           'web_folder_update',
                           'web_folder_delete',
                           'web_folder_user_insert',
                           'web_folder_user_update',
                           'web_folder_user_delete');
   
   //* This function is called during ispconfig installation to determine
   //  if a symlink shall be created for this plugin.
@@ -121,6 +127,16 @@
            if($action == 'u') $app->plugins->raiseEvent('webdav_user_update',$data);
            if($action == 'd') $app->plugins->raiseEvent('webdav_user_delete',$data);
         break;
         case 'web_folder':
            if($action == 'i') $app->plugins->raiseEvent('web_folder_insert',$data);
            if($action == 'u') $app->plugins->raiseEvent('web_folder_update',$data);
            if($action == 'd') $app->plugins->raiseEvent('web_folder_delete',$data);
         break;
         case 'web_folder_user':
            if($action == 'i') $app->plugins->raiseEvent('web_folder_user_insert',$data);
            if($action == 'u') $app->plugins->raiseEvent('web_folder_user_update',$data);
            if($action == 'd') $app->plugins->raiseEvent('web_folder_user_delete',$data);
         break;
      } // end switch
   } // end function
   
@@ -137,6 +153,9 @@
      switch ($web_config['server_type']) {
         case 'nginx':
            $daemon = $web_config['server_type'];
            // Reload PHP-FPM as well
            $restart_second_service['daemon'] = $web_config['php_fpm_init_script'];
            $restart_second_service['action'] = 'reload';
            break;
         default:
            if(is_file($conf['init_scripts'] . '/' . 'httpd')) {
@@ -146,6 +165,10 @@
            }
      }
      
      if($restart_second_service['daemon'] != '' && $restart_second_service['action'] != ''){
         exec($conf['init_scripts'] . '/' . $restart_second_service['daemon'] . ' ' . $restart_second_service['action']);
      }
      if($action == 'restart') {
         exec($conf['init_scripts'] . '/' . $daemon . ' restart');
      } else {