tbrehm
2007-06-29 e2d6ed954b42c72645aeb2476591e6d42cf48991
server/mods-enabled/web_module.inc.php
@@ -60,7 +60,10 @@
       class that contains the function functionname.
      */
      
      $app->modules->registerTableHook('web_domain','mail_module','process');
      $app->modules->registerTableHook('web_domain','web_module','process');
      // Register service
      $app->services->registerService('httpd','web_module','restartHttpd');
      
   }
   
@@ -80,6 +83,18 @@
         break;
      } // end switch
   } // end function
   // This function is used
   function restartHttpd($action = 'restart') {
      global $app;
      if($action == 'restart') {
         exec('/etc/init.d/apache2 restart');
      } else {
         exec('/etc/init.d/apache2 reload');
      }
   }
} // end class