| | |
| | | } |
| | | |
| | | public function warning($msg) { |
| | | echo('WARNING: '.$msg."\n"); |
| | | echo 'WARNING: '.$msg."\n"; |
| | | } |
| | | |
| | | public function simple_query($query, $answers, $default) { |
| | |
| | | } |
| | | |
| | | /** Create the database for ISPConfig */ |
| | | |
| | | |
| | | public function configure_database() { |
| | | global $conf; |
| | | |
| | |
| | | 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()) { |
| | |
| | | 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()) { |
| | |
| | | |
| | | return $tContents; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |