| | |
| | | var $language = 'en'; |
| | | var $db; |
| | | public $conf; |
| | | public install_ispconfig_interface = true; |
| | | public $install_ispconfig_interface = true; |
| | | |
| | | |
| | | public function __construct() |
| | |
| | | if($cf['host'] == 'localhost') { |
| | | $from_host = 'localhost'; |
| | | } else { |
| | | $from_host = $inst->conf['hostname']; |
| | | $from_host = $this->conf['hostname']; |
| | | } |
| | | |
| | | //* Create the ISPConfig database user |
| | |
| | | // Dont just copy over the virtualhost template but add some custom settings |
| | | |
| | | $content = rf("tpl/apache_ispconfig.vhost.master"); |
| | | $content = str_replace('{vhost_port}', $conf['apache']['vhost_port'], $content); |
| | | $content = str_replace('{vhost_port}', $this->conf['apache']['vhost_port'], $content); |
| | | wf("$vhost_conf_dir/ispconfig.vhost", $content); |
| | | |
| | | //copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost"); |