| | |
| | | public $conf; |
| | | public $install_ispconfig_interface = true; |
| | | public $is_update = false; // true if it is an update, falsi if it is a new install |
| | | public $min_php = '5.3.3'; // minimal php-version for update / install |
| | | protected $mailman_group = 'list'; |
| | | |
| | | |
| | |
| | | } |
| | | */ |
| | | |
| | | //** Detect PHP-Version |
| | | public function get_php_version() { |
| | | if(version_compare(PHP_VERSION, $this->min_php, '<')) return false; |
| | | else return true; |
| | | } |
| | | |
| | | //** Detect installed applications |
| | | public function find_installed_apps() { |
| | | global $conf; |
| | |
| | | return $force; |
| | | } |
| | | |
| | | public function reconfigure_app($service, $reconfigure_services_answer) { |
| | | $reconfigure = false; |
| | | if ($reconfigure_services_answer != 'selected') { |
| | | $reconfigure = true; |
| | | } else { |
| | | if(strtolower($this->simple_query("Reconfigure $service", array('y', 'n'), 'y') ) == 'y') { |
| | | $reconfigure = true; |
| | | } else { |
| | | swriteln("Skip reconfigure $service\n"); |
| | | } |
| | | } |
| | | return $reconfigure; |
| | | } |
| | | |
| | | /** Create the database for ISPConfig */ |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | ?> |
| | | ?> |