| | |
| | | if(substr($this->document_root, -1) != '/') $this->document_root .= '/'; |
| | | |
| | | // Attention: ISPConfig Special: web files are in subfolder 'web' -> append it: |
| | | if($domain_res['type'] == 'vhostsubdomain') $this->document_root .= $domain_res['web_folder'] . '/'; |
| | | if(($domain_res['type'] == 'vhostsubdomain') || ($domain_res['type'] == 'vhostalias')) |
| | | $this->document_root .= $domain_res['web_folder'] . '/'; |
| | | else $this->document_root .= 'web/'; |
| | | |
| | | // If a subfolder is given, make sure it's path doesn't begin with / i.e. /phpbb |
| | |
| | | setups get enough time to create the database */ |
| | | if($this->handle_type == 'install') { |
| | | for($n = 1; $n < 15; $n++) { |
| | | $link = mysql_connect($newdb_host, $newdb_login, $newdb_pw); |
| | | $link = mysqli_connect($newdb_host, $newdb_login, $newdb_pw); |
| | | if (!$link) { |
| | | unset($link); |
| | | sleep(5); |