Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
install/lib/installer_base.lib.php
@@ -53,7 +53,7 @@
   }
   public function warning($msg) {
      echo('WARNING: '.$msg."\n");
      echo 'WARNING: '.$msg."\n";
   }
   public function simple_query($query, $answers, $default) {
@@ -141,6 +141,8 @@
   }
   /** Create the database for ISPConfig */
   public function configure_database() {
      global $conf;
@@ -1737,7 +1739,7 @@
         if ($dh = opendir($dir)) {
            while (($file = readdir($dh)) !== false) {
               if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') {
                  include_once($install_dir.'/server/mods-available/'.$file);
                  include_once $install_dir.'/server/mods-available/'.$file;
                  $module_name = substr($file,0,-8);
                  $tmp = new $module_name;
                  if($tmp->onInstall()) {
@@ -1766,7 +1768,7 @@
               if($conf['apache']['installed'] == true && $file == 'nginx_plugin.inc.php') continue;
               if($conf['nginx']['installed'] == true && $file == 'apache2_plugin.inc.php') continue;
               if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') {
                  include_once($install_dir.'/server/plugins-available/'.$file);
                  include_once $install_dir.'/server/plugins-available/'.$file;
                  $plugin_name = substr($file,0,-8);
                  $tmp = new $plugin_name;
                  if(method_exists($tmp,'onInstall') && $tmp->onInstall()) {
@@ -2278,6 +2280,7 @@
      return $tContents;
   }
}
?>