09cf76ade7fe49fdca9282da2eefc28018bc6171
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;
Bernd Wurst HSTS-Optionen includeSubdom...

Bernd Wurst authored 7 years ago

154)   $hsts_subdomains = false;
155)   $hsts_preload = false;
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

156)   if (isset($_POST['hsts'])) {
157)     if (is_numeric($_POST['hsts']) && (int) $_POST['hsts'] > -2) {
158)       $hsts = (int) $_POST['hsts'];
159)     } else {
160)       system_failure('Es wurde ein ungültiger HSTS-Wert eingegeben. Dort sind nur Sekunden erlaubt.');
161)     }
Bernd Wurst HSTS-Optionen includeSubdom...

Bernd Wurst authored 7 years ago

162)     if (isset($_POST['hsts_subdomains']) and $_POST['hsts_subdomains'] == 1) {
163)       $hsts_subdomains = true;
164)       if (isset($_POST['hsts_preload']) and $_POST['hsts_preload'] == 1) {
165)         $hsts_preload = true;
166)       }
167)     }
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

168)   }
169)  
bernd fix a warning

bernd authored 14 years ago

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

bernd authored 14 years ago

171) 
bernd fix a warning

bernd authored 14 years ago

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

bernd authored 14 years ago

173) 
bernd IPv6

bernd authored 14 years ago

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

bernd authored 13 years ago

177)     if (isset($_POST['ipv6_separate']) && $_POST['ipv6_separate'] = 'yes')
178)     {
179)       $vhost['autoipv6'] = 2;
180)     }
bernd IPv6

bernd authored 14 years ago

181)   } else {
182)     $vhost['autoipv6'] = 0;
183)   }
184)   
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

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

bernd authored 16 years ago

186)   $logtype = '';
187)   switch ($_POST['logtype']) {
188)     case 'anonymous':
189)       $logtype = 'anonymous';
190)       break;
191)     case 'default':
192)       $logtype = 'default';
193)       break;
194)     /* Wenn etwas anderes kommt, ist das "kein Logging". So einfach ist das. */
195)   }
196) 
bernd error_log konfigurierbar

bernd authored 16 years ago

197)   $errorlog = 0;
198)   if (isset($_POST['errorlog']) and ($_POST['errorlog'] == 1))
199)     $errorlog = 1;
200) 
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

201) 
202)   if (isset($_POST['stats']) && $_POST['stats'] == 1)
203)   {
204)     if ($vhost['stats'] == NULL)
205)       $vhost['stats'] = 'private';
206)   }
207)   else
208)     $vhost['stats'] = NULL;
209) 
210)   if ($logtype == '')
211)     $vhost['stats'] = NULL;
212)   
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

213)   DEBUG("PHP: {$php} / Logging: {$logtype}");
214) 
215)   $old_options = explode(',', $vhost['options']);
216)   $new_options = array();
217)   foreach ($old_options AS $op)
218)   {
Bernd Wurst HSTS-Optionen includeSubdom...

Bernd Wurst authored 7 years ago

219)     if ($op != 'aliaswww' && $op != 'hsts_subdomains' && $op != 'hsts_preload') {
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

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

Bernd Wurst authored 8 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 8 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 8 years ago

225)   }
Bernd Wurst HSTS-Optionen includeSubdom...

Bernd Wurst authored 7 years ago

226)   if ($hsts_subdomains) {
227)     array_push($new_options, 'hsts_subdomains');
228)   }
229)   if ($hsts_preload) {
230)     array_push($new_options, 'hsts_preload');
231)   }
Bernd Wurst Status der letsencrypt-Opti...

Bernd Wurst authored 8 years ago

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

Bernd Wurst authored 8 years ago

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

Bernd Wurst authored 8 years ago

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

Bernd Wurst authored 8 years ago

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

Bernd Wurst authored 8 years ago

238)       # 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

239)       $cert = $vhost['cert'];
240)     } elseif ($cert > 0) {
241)       # Das Cert was der user gewählt hat, ist von Lets encrypt
242)       # tu nix, $cert ist schon korrekt
243)     } else {
244)       # Wenn vorher kein Zertifikat aktiv war, dann setze jetzt auch keines. 
245)       # Der letsencrypt-Automatismus macht das dann schon.
246)       $cert = 0;
247)     }
248)   } else {
249)     # Wenn kein Letsencrypt gewünscht ist, entferne die Letsencrypt-Option
250)     $key = array_search('letsencrypt',$new_options);
251)     if ($key !== false) {
252)       unset($new_options[$key]);
Bernd Wurst Letsencrypt vorbereitet und...

Bernd Wurst authored 8 years ago

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

Bernd Wurst authored 8 years ago

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

bernd authored 16 years ago

255) 
256)   DEBUG($old_options);
257)   DEBUG($new_options);
258)   $options = implode(',', $new_options);
259)   DEBUG('New options: '.$options);
260) 
261)   $vhost['hostname'] = $hostname;
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

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

bernd authored 16 years ago

263)   $vhost['docroot'] = $docroot;
264)   $vhost['php'] = $php;
bernd CGI abschaltbar

bernd authored 14 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 10 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 11 years ago

276)   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

277) 
278)   if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

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

bernd authored 16 years ago

280) 
281) }
bernd Aliases editieren

bernd authored 16 years ago

282) elseif ($_GET['action'] == 'addalias')
283) {
284)   check_form_token('vhosts_add_alias');
285)   $id = (int) $_GET['vhost'];
286)   $vhost = get_vhost_details( $id );
287)   DEBUG($vhost);
288) 
289)   $alias = empty_alias();
290)   $alias['vhost'] = $vhost['id'];
291) 
292)   
bernd Erlaube wildcards bei vhosts

bernd authored 13 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 9 years ago

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

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 9 years ago

300)   if ($domainid == -1) {
301)     # use configured user_vhosts_domain
302)     $userdomain = userdomain();
303)     $domain = new Domain( (int) $userdomain['id'] );
304)     $domainid = $domain->id;
305)     $hostname = $hostname.'.'.$_SESSION['userinfo']['username'];
306)     $hostname = trim($hostname, " .-");
307)   }
bernd Aliases editieren

bernd authored 16 years ago

308) 
309)   if (! is_array($_POST['options']))
310)     $_POST['options'] = array();
311)   $aliaswww = in_array('aliaswww', $_POST['options']);
312)   $forward = in_array('forward', $_POST['options']);
313) 
314)   $new_options = array();
315)   if ($aliaswww)
316)     array_push($new_options, 'aliaswww');
317)   if ($forward)
318)     array_push($new_options, 'forward');
319)   DEBUG($new_options);
320)   $options = implode(',', $new_options);
321)   DEBUG('New options: '.$options);
322) 
323)   $alias['hostname'] = $hostname;
bernd domainid -> domain_id, fies...

bernd authored 14 years ago

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

bernd authored 16 years ago

325)     
326)   $alias ['options'] = $options;
327)     
328)   save_alias($alias);
329) 
330)   if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

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

bernd authored 16 years ago

332) 
333) }
334) elseif ($_GET['action'] == 'deletealias')
335) {
336)   $title = "Subdomain löschen";
337)   $section = 'vhosts_vhosts';
338)   
339)   $alias = get_alias_details( (int) $_GET['alias'] );
340)   DEBUG($alias);
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

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

bernd authored 16 years ago

342)   
343)   $vhost = get_vhost_details( $alias['vhost'] );
344)   DEBUG($vhost);
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

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

bernd authored 16 years ago

346)   
347)   $sure = user_is_sure();
348)   if ($sure === NULL)
349)   {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

350)     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

351)   }
352)   elseif ($sure === true)
353)   {
354)     delete_alias($alias['id']);
355)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

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

bernd authored 16 years ago

357)   }
358)   elseif ($sure === false)
359)   {
360)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

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

bernd authored 16 years ago

362)   }
363) }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

364) elseif ($_GET['action'] == 'delete')
365) {
bernd Aliases editieren

bernd authored 16 years ago

366)   $title = "Subdomain löschen";
367)   $section = 'vhosts_vhosts';
368)   
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

371)   
372)   $sure = user_is_sure();
373)   if ($sure === NULL)
374)   {
bernd * alle internen Links sinnv...

bernd authored 15 years ago

375)     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

376)   }
377)   elseif ($sure === true)
378)   {
379)     delete_vhost($vhost['id']);
380)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

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

bernd authored 16 years ago

382)   }
383)   elseif ($sure === false)
384)   {
385)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 15 years ago

386)       header("Location: vhosts");