b3ed510f6e63453a7d84bb6cacf3b772a487d694
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15) */
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

16) 
17) require_once('session/start.php');
18) 
19) require_once('vhosts.php');
20) 
Bernd Wurst Weise Benutzer auf Wartezei...

Bernd Wurst authored 11 years ago

21) require_once('inc/error.php');
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

22) require_once('inc/security.php');
23) require_once('class/domain.php');
24) 
25) require_role(ROLE_SYSTEMUSER);
26) 
27) require_once("inc/debug.php");
28) global $debugmode;
29) 
30) 
31) if ($_GET['action'] == 'edit')
32) {
33)   check_form_token('vhosts_edit_vhost');
34)   $id = (int) $_GET['vhost'];
35)   $vhost = empty_vhost();
36)   if ($id != 0)
37)     $vhost = get_vhost_details( $id );
38)   DEBUG($vhost);
39) 
bernd Erlaube wildcards bei vhosts

bernd authored 13 years ago

40)   $hostname = filter_input_hostname($_POST['hostname'], true);
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

41) 
Bernd Wurst Zeige Userdomains nur noch...

Bernd Wurst authored 9 years ago

42)   $domainname = NULL;
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

43)   $domain_id = (int) $_POST['domain'];
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

44)   if ($domain_id >= 0) {
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

45)     $domain = new Domain( (int) $_POST['domain'] );
bernd Mehr config-optionen und co...

bernd authored 14 years ago

46)     $domain->ensure_userdomain();
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

47)     $domain_id = $domain->id;
Bernd Wurst Zeige Userdomains nur noch...

Bernd Wurst authored 9 years ago

48)     $domainname = $domain->fqdn;
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

49)   }
Bernd Wurst Zeige Userdomains nur noch...

Bernd Wurst authored 9 years ago

50)   elseif ($domain_id == -1) {
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

51)     # use configured user_vhosts_domain
52)     $userdomain = userdomain();
53)     $domain = new Domain( (int) $userdomain['id'] );
54)     $domain_id = $domain->id;
Bernd Wurst Zeige Userdomains nur noch...

Bernd Wurst authored 9 years ago

55)     $domainname = $domain->fqdn;
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

56)     $hostname = $hostname.'.'.$_SESSION['userinfo']['username'];
57)     $hostname = trim($hostname, " .-");
58)   }
Bernd Wurst Zeige Userdomains nur noch...

Bernd Wurst authored 9 years ago

59)   elseif ($domain_id == -2) {
60)     # use system masterdomain
61)     $domainname = $_SESSION['userinfo']['username'].".".config('masterdomain');
62)   }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

63) 
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 14 years ago

64)   if (! (isset($_POST['options']) && is_array($_POST['options'])))
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

65)     $_POST['options'] = array();
66)   $aliaswww = in_array('aliaswww', $_POST['options']);
67) 
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

68)   $docroot = '';
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

69)   if ($_POST['vhost_type'] == 'regular' || $_POST['vhost_type'] == 'dav')
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

70)   {
Bernd Wurst Zeige Userdomains nur noch...

Bernd Wurst authored 9 years ago

71)     $defaultdocroot = $vhost['homedir'].'/websites/'.((strlen($hostname) > 0) ? $hostname.'.' : '').($domainname).'/htdocs';
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

72)   
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 14 years ago

73)     $docroot = '';
74)     if (isset($_POST['docroot']))
75)     {
76)       if (! check_path( $_POST['docroot'] ))
77)         system_failure("Eingegebener Pfad enthält ungültige Angaben");
78)       $docroot = $vhost['homedir'].'/websites/'.$_POST['docroot'];
79)     }
80)     if ((isset($_POST['use_default_docroot']) && $_POST['use_default_docroot'] == '1') || ($docroot == $defaultdocroot)) {
Bernd Wurst Bugfix: Werte dürfen nicht...

Bernd Wurst authored 10 years ago

81)       $docroot = NULL;
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

82)     }
83)   
84)     DEBUG("Document-Root: ".$docroot);
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

85)   }
Bernd Wurst Bugfix: Werte dürfen nicht...

Bernd Wurst authored 10 years ago

86)   $php = NULL;
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 14 years ago

87)   if ($_POST['vhost_type'] == 'regular' && isset($_POST['php']))
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

88)   {
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

89)     switch ($_POST['php']) {
Bernd Wurst PHP 5.6 experimentell

Bernd Wurst authored 9 years ago

90)       case 'php56':
91)         $php = 'php56';
92)         break;
Bernd Wurst PHP <= 5.5 entfernt und Vor...

Bernd Wurst authored 7 years ago

93)       case 'php70':
94)       case 'fpm70':
Bernd Wurst zwinge PHP 7.0 auf FPM (har...

Bernd Wurst authored 8 years ago

95)         $php = 'fpm70';
Hanno Böck PHP 7.0 support

Hanno Böck authored 8 years ago

96)         break;
Bernd Wurst PHP <= 5.5 entfernt und Vor...

Bernd Wurst authored 7 years ago

97)       case 'php71':
98)       case 'fpm71':
99)         $php = 'fpm71';
100)         break;
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

101)       /* Wenn etwas anderes kommt, ist das "kein PHP". So einfach ist das. */
102)     }
103)   }
bernd "CGI-Aktivieren" ist jetzt...

bernd authored 13 years ago

104)   $cgi = 1;
105)   if (isset($_POST['safemode']) && $_POST['safemode'] == 'yes')
bernd CGI abschaltbar

bernd authored 14 years ago

106)   {
bernd "CGI-Aktivieren" ist jetzt...

bernd authored 13 years ago

107)     $cgi = 0;
bernd CGI abschaltbar

bernd authored 14 years ago

108)   }
109) 
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

110)   if (isset($_POST['suexec_user']))
111)     $vhost['suexec_user'] = $_POST['suexec_user'];
112) 
Bernd Wurst Ermögliche das Auswählen de...

Bernd Wurst authored 11 years ago

113)   if (isset($_POST['server']))
114)     $vhost['server'] = $_POST['server'];
115) 
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

116)   if ($_POST['vhost_type'] == 'regular') {
117)     $vhost['is_dav'] = 0;
118)     $vhost['is_svn'] = 0;
119)     $vhost['is_webapp'] = 0;
120)   }
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

121)   elseif ($_POST['vhost_type'] == 'dav') {
122)     $vhost['is_dav'] = 1;
123)     $vhost['is_svn'] = 0;
124)     $vhost['is_webapp'] = 0;
125)   }
126)   elseif ($_POST['vhost_type'] == 'svn') {
127)     $vhost['is_dav'] = 0;
128)     $vhost['is_svn'] = 1;
129)     $vhost['is_webapp'] = 0;
130)   }
131)   elseif ($_POST['vhost_type'] == 'webapp') {
132)     $vhost['is_dav'] = 0;
133)     $vhost['is_svn'] = 0;
134)     $vhost['is_webapp'] = 1;
bernd Webapps implementiert

bernd authored 16 years ago

135)     $vhost['webapp_id'] = (int) $_POST['webapp'];
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

136)   }
137) 
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

138)   
Bernd Wurst Bugfix: Werte dürfen nicht...

Bernd Wurst authored 10 years ago

139)   $ssl = NULL;
bernd SSL auch über webinterface...

bernd authored 16 years ago

140)   switch ($_POST['ssl']) {
141)     case 'http':
142)       $ssl = 'http';
143)       break;
144)     case 'https':
145)       $ssl = 'https';
146)       break;
147)     case 'forward':
148)       $ssl = 'forward';
149)       break;
150)     /* Wenn etwas anderes kommt, ist das "beides". So einfach ist das. */
151)   }
152) 
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

153)   $hsts = NULL;
154)   if (isset($_POST['hsts'])) {
155)     if (is_numeric($_POST['hsts']) && (int) $_POST['hsts'] > -2) {
156)       $hsts = (int) $_POST['hsts'];
157)     } else {
158)       system_failure('Es wurde ein ungültiger HSTS-Wert eingegeben. Dort sind nur Sekunden erlaubt.');
159)     }
160)   }
161)  
bernd fix a warning

bernd authored 14 years ago

162)   $cert = (isset($_POST['cert']) ? (int) $_POST['cert'] : NULL);
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

163) 
bernd fix a warning

bernd authored 14 years ago

164)   $ipv4 = (isset($_POST['ipv4']) ? $_POST['ipv4'] : NULL);
bernd IP-Adressen aktivieren

bernd authored 14 years ago

165) 
bernd IPv6

bernd authored 14 years ago

166)   if (isset($_POST['ipv6']) && $_POST['ipv6'] == 'yes')
167)   {
168)     $vhost['autoipv6'] = 1;
bernd Zusätzlicher Haken für eige...

bernd authored 13 years ago

169)     if (isset($_POST['ipv6_separate']) && $_POST['ipv6_separate'] = 'yes')
170)     {
171)       $vhost['autoipv6'] = 2;
172)     }
bernd IPv6

bernd authored 14 years ago

173)   } else {
174)     $vhost['autoipv6'] = 0;
175)   }
176)   
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

177) 
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

178)   $logtype = '';
179)   switch ($_POST['logtype']) {
180)     case 'anonymous':
181)       $logtype = 'anonymous';
182)       break;
183)     case 'default':
184)       $logtype = 'default';
185)       break;
186)     /* Wenn etwas anderes kommt, ist das "kein Logging". So einfach ist das. */
187)   }
188) 
bernd error_log konfigurierbar

bernd authored 16 years ago

189)   $errorlog = 0;
190)   if (isset($_POST['errorlog']) and ($_POST['errorlog'] == 1))
191)     $errorlog = 1;
192) 
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

193) 
194)   if (isset($_POST['stats']) && $_POST['stats'] == 1)
195)   {
196)     if ($vhost['stats'] == NULL)
197)       $vhost['stats'] = 'private';
198)   }
199)   else
200)     $vhost['stats'] = NULL;
201) 
202)   if ($logtype == '')
203)     $vhost['stats'] = NULL;
204)   
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

205)   DEBUG("PHP: {$php} / Logging: {$logtype}");
206) 
207)   $old_options = explode(',', $vhost['options']);
208)   $new_options = array();
209)   foreach ($old_options AS $op)
210)   {
Bernd Wurst * Ermögliche SAN bei CSRs *...

Bernd Wurst authored 8 years ago

211)     if ($op != 'aliaswww') {
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

212)       array_push($new_options, $op);
Bernd Wurst * Ermögliche SAN bei CSRs *...

Bernd Wurst authored 8 years ago

213)     }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

214)   }
Bernd Wurst Status der letsencrypt-Opti...

Bernd Wurst authored 8 years ago

215)   if ($aliaswww) {
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

216)     array_push($new_options, 'aliaswww');
Bernd Wurst * Ermögliche SAN bei CSRs *...

Bernd Wurst authored 8 years ago

217)   }
Bernd Wurst Status der letsencrypt-Opti...

Bernd Wurst authored 8 years ago

218)   $letsencrypt = ($cert == 0 ? false : ($cert == -1 || cert_is_letsencrypt($cert)));
219) 
220)   if ($letsencrypt) {
Bernd Wurst * Ermögliche SAN bei CSRs *...

Bernd Wurst authored 8 years ago

221)     array_push($new_options, 'letsencrypt');
Bernd Wurst Letsencrypt vorbereitet und...

Bernd Wurst authored 8 years ago

222)     if ($vhost['cert'] != 0) {
Bernd Wurst Status der letsencrypt-Opti...

Bernd Wurst authored 8 years ago

223)       # Wenn der User manuell von einem gültigen Cert auf "letsencrypt" umgestellt hat, 
Bernd Wurst Letsencrypt vorbereitet und...

Bernd Wurst authored 8 years ago

224)       # dann sollte das alte Cert noch so lange eingetragen bleiben bis das neue da ist.
Bernd Wurst Status der letsencrypt-Opti...

Bernd Wurst authored 8 years ago

225)       $cert = $vhost['cert'];
226)     } elseif ($cert > 0) {
227)       # Das Cert was der user gewählt hat, ist von Lets encrypt
228)       # tu nix, $cert ist schon korrekt
229)     } else {
230)       # Wenn vorher kein Zertifikat aktiv war, dann setze jetzt auch keines. 
231)       # Der letsencrypt-Automatismus macht das dann schon.
232)       $cert = 0;
233)     }
234)   } else {
235)     # Wenn kein Letsencrypt gewünscht ist, entferne die Letsencrypt-Option
236)     $key = array_search('letsencrypt',$new_options);
237)     if ($key !== false) {
238)       unset($new_options[$key]);
Bernd Wurst Letsencrypt vorbereitet und...

Bernd Wurst authored 8 years ago

239)     }
Bernd Wurst * Ermögliche SAN bei CSRs *...

Bernd Wurst authored 8 years ago

240)   }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

241) 
242)   DEBUG($old_options);
243)   DEBUG($new_options);
244)   $options = implode(',', $new_options);
245)   DEBUG('New options: '.$options);
246) 
247)   $vhost['hostname'] = $hostname;
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

248)   $vhost['domain_id'] = $domain_id;
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

249)   $vhost['docroot'] = $docroot;
250)   $vhost['php'] = $php;
bernd CGI abschaltbar

bernd authored 14 years ago

251)   $vhost['cgi'] = $cgi;
bernd SSL auch über webinterface...

bernd authored 16 years ago

252)   $vhost['ssl'] = $ssl;
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

253)   $vhost['hsts'] = $hsts;
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

254)   $vhost['cert'] = $cert;
bernd IP-Adressen aktivieren

bernd authored 14 years ago

255)   $vhost['ipv4'] = $ipv4;
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

256)   $vhost['logtype'] = $logtype;
bernd error_log konfigurierbar

bernd authored 16 years ago

257)   $vhost['errorlog'] = $errorlog; 
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

258)   $vhost['options'] = $options;
259)     
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

260)   DEBUG($vhost);
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

261)   save_vhost($vhost);
Bernd Wurst Weise Benutzer auf Wartezei...

Bernd Wurst authored 11 years ago

262)   success_msg("Ihre Einstellungen wurden gespeichert. Es dauert jedoch einige Minuten bis die Änderungen wirksam werden.");
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

263) 
264)   if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

265)     header('Location: vhosts');
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

266) 
267) }
bernd Aliases editieren

bernd authored 16 years ago

268) elseif ($_GET['action'] == 'addalias')
269) {
270)   check_form_token('vhosts_add_alias');
271)   $id = (int) $_GET['vhost'];
272)   $vhost = get_vhost_details( $id );
273)   DEBUG($vhost);
274) 
275)   $alias = empty_alias();
276)   $alias['vhost'] = $vhost['id'];
277) 
278)   
bernd Erlaube wildcards bei vhosts

bernd authored 13 years ago

279)   $hostname = filter_input_hostname($_POST['hostname'], true);
bernd auch aliases dürfen usernam...

bernd authored 16 years ago

280)   $domainid = (int) $_POST['domain'];
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

281)   if ($domainid >= 0) {
bernd auch aliases dürfen usernam...

bernd authored 16 years ago

282)     $domain = new Domain( (int) $_POST['domain'] );
bernd Mehr config-optionen und co...

bernd authored 14 years ago

283)     $domain->ensure_userdomain();
bernd auch aliases dürfen usernam...

bernd authored 16 years ago

284)     $domainid = $domain->id;
285)   }
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

286)   if ($domainid == -1) {
287)     # use configured user_vhosts_domain
288)     $userdomain = userdomain();
289)     $domain = new Domain( (int) $userdomain['id'] );
290)     $domainid = $domain->id;
291)     $hostname = $hostname.'.'.$_SESSION['userinfo']['username'];
292)     $hostname = trim($hostname, " .-");
293)   }
bernd Aliases editieren

bernd authored 16 years ago

294) 
295)   if (! is_array($_POST['options']))
296)     $_POST['options'] = array();
297)   $aliaswww = in_array('aliaswww', $_POST['options']);
298)   $forward = in_array('forward', $_POST['options']);
299) 
300)   $new_options = array();
301)   if ($aliaswww)
302)     array_push($new_options, 'aliaswww');
303)   if ($forward)
304)     array_push($new_options, 'forward');
305)   DEBUG($new_options);
306)   $options = implode(',', $new_options);
307)   DEBUG('New options: '.$options);
308) 
309)   $alias['hostname'] = $hostname;
bernd domainid -> domain_id, fies...

bernd authored 14 years ago

310)   $alias['domain_id'] = $domainid;
bernd Aliases editieren

bernd authored 16 years ago

311)     
312)   $alias ['options'] = $options;
313)     
314)   save_alias($alias);
315) 
316)   if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

317)     header('Location: aliases?vhost='.$vhost['id']);
bernd Aliases editieren

bernd authored 16 years ago

318) 
319) }
320) elseif ($_GET['action'] == 'deletealias')
321) {
322)   $title = "Subdomain löschen";
323)   $section = 'vhosts_vhosts';
324)   
325)   $alias = get_alias_details( (int) $_GET['alias'] );
326)   DEBUG($alias);
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

327)   $alias_string = $alias['fqdn'];
bernd Aliases editieren

bernd authored 16 years ago

328)   
329)   $vhost = get_vhost_details( $alias['vhost'] );
330)   DEBUG($vhost);
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

331)   $vhost_string = $vhost['fqdn'];
bernd Aliases editieren

bernd authored 16 years ago

332)   
333)   $sure = user_is_sure();
334)   if ($sure === NULL)
335)   {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

336)     are_you_sure("action=deletealias&alias={$_GET['alias']}", "Möchten Sie das Alias »{$alias_string}« für die Subdomain »{$vhost_string}« wirklich löschen?");
bernd Aliases editieren

bernd authored 16 years ago

337)   }
338)   elseif ($sure === true)
339)   {
340)     delete_alias($alias['id']);
341)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

342)       header('Location: aliases?vhost='.$vhost['id']);
bernd Aliases editieren

bernd authored 16 years ago

343)   }
344)   elseif ($sure === false)
345)   {
346)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

347)       header('Location: aliases?vhost='.$vhost['id']);
bernd Aliases editieren

bernd authored 16 years ago

348)   }
349) }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

350) elseif ($_GET['action'] == 'delete')
351) {
bernd Aliases editieren

bernd authored 16 years ago

352)   $title = "Subdomain löschen";
353)   $section = 'vhosts_vhosts';
354)   
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

355)   $vhost = get_vhost_details( (int) $_GET['vhost'] );
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

356)   $vhost_string = $vhost['fqdn'];
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

357)   
358)   $sure = user_is_sure();
359)   if ($sure === NULL)
360)   {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

361)     are_you_sure("action=delete&vhost={$_GET['vhost']}", "Möchten Sie die Subdomain »{$vhost_string}« wirklich löschen?");
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

362)   }
363)   elseif ($sure === true)
364)   {
365)     delete_vhost($vhost['id']);
366)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

367)       header("Location: vhosts");
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

368)   }
369)   elseif ($sure === false)
370)   {
371)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

372)       header("Location: vhosts");