b4ad48d3c3ae87cb22054ed2e23cdb483a1448ab
bernd neues VHosts-Modul (unbenut...

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 neues VHosts-Modul (unbenut...

bernd authored 16 years ago

16) 
17) require_once('inc/debug.php');
18) require_once('inc/security.php');
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

19) require_once('inc/jquery.php');
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

20) javascript();
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

21) 
22) require_once('vhosts.php');
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

23) require_once('certs.php');
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

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

bernd authored 16 years ago

25) $section = 'vhosts_vhosts';
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

26) 
27) require_role(ROLE_SYSTEMUSER);
28) 
bernd Einige notices (undefined i...

bernd authored 14 years ago

29) $id = (isset($_GET['vhost']) ? (int) $_GET['vhost'] : 0);
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

30) $vhost = empty_vhost();
31) 
32) if ($id != 0)
33)   $vhost = get_vhost_details($id);
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

34) 
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

35) $have_v6 = false;
36) $server = (isset($vhost['server']) ? $vhost['server'] : $_SESSION['userinfo']['server']);
37) if (ipv6_possible($server))
38)   $have_v6 = true;
39) 
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

40) DEBUG($vhost);
bernd Aliases editieren

bernd authored 16 years ago

41) if ($id == 0) {
bernd Benutze überall title() sta...

bernd authored 13 years ago

42)   title("Neue Subdomain anlegen");
bernd Aliases editieren

bernd authored 16 years ago

43) }
44) else {
bernd Benutze überall title() sta...

bernd authored 13 years ago

45)   title("Subdomain bearbeiten");
bernd Aliases editieren

bernd authored 16 years ago

46) }
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

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

bernd authored 16 years ago

48) $defaultdocroot = $vhost['domain'];
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

49) if (! $vhost['domain']) {
bernd Mehr config-optionen und co...

bernd authored 14 years ago

50)   $defaultdocroot = $_SESSION['userinfo']['username'].'.'.config('masterdomain');
Bernd Wurst Ermögliche dem user Hosts m...

Bernd Wurst authored 9 years ago

51) }
52) if ($vhost['domain_id'] == -1) {
53)   $defaultdocroot = $_SESSION['userinfo']['username'].'.'.config('user_vhosts_domain');
54) }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

55) if ($vhost['hostname'])
56)   $defaultdocroot = $vhost['hostname'].'.'.$defaultdocroot;
57) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

58) $defaultdocroot = $defaultdocroot.'/htdocs';
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

59) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

60) $is_default_docroot = ($vhost['docroot'] == NULL) || ($vhost['homedir'].'/websites/'.$defaultdocroot == $vhost['docroot']);
61) 
62) if ($vhost['docroot'] != '' && ! strstr($vhost['docroot'], '/websites/'))
63) {
64)   warning("Sie verwenden einen Speicherplatz außerhalb von »~/websites/«. Diese Einstellung ist momentan nicht mehr gestattet. Ihre Einstellung wurde daher auf die Standardeinstellung zurückgesetzt. Prüfen Sie dies bitte und verschieben Sie ggf. ihre Dateien.");
65)   $is_default_docroot = True;
66) }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

67) 
68) $docroot = '';
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

69) if ($is_default_docroot)
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

70)   $docroot = $defaultdocroot;
71) else
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

72)   $docroot = substr($vhost['docroot'], strlen($vhost['homedir'].'/websites/'));
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

73) 
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

74) $s = (strstr($vhost['options'], 'aliaswww') ? ' checked="checked" ' : '');
bernd Einige notices (undefined i...

bernd authored 14 years ago

75) $errorlog = ($vhost['errorlog'] == 1 ? ' checked="checked" ' : '');
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

76) 
77) $vhost_type = 'regular';
78) if ($vhost['is_dav'])
79)   $vhost_type = 'dav';
80) elseif ($vhost['is_svn'])
81)   $vhost_type = 'svn';
82) elseif ($vhost['is_webapp'])
83)   $vhost_type = 'webapp';
84) 
bernd Webapps implementiert

bernd authored 16 years ago

85) $applist = list_available_webapps();
86) $webapp_options = '';
87) foreach ($applist as $app)
88)   $webapp_options .= "<option value=\"{$app['id']}\">{$app['displayname']}</option>\n";
89) 
90) 
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

91) $form = "
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

92) <h4 style=\"margin-top: 2em;\">Name des VHost</h4>
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

93)     <div style=\"margin-left: 2em;\"><input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"{$vhost['hostname']}\" /><strong>.</strong>".domainselect($vhost['domain_id']);
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

94) $form .= "<br /><input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" {$s}/> <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label></div>
95) 
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

96) <div class=\"vhostsidebyside\">
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

97) <div class=\"vhostoptions\" id=\"options_docroot\" ".($vhost_type=='regular' || $vhost_type=='dav' ? '' : 'style="display: none;"').">
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

98)   <h4>Optionen</h4>
99)   <h5>Speicherort für Dateien (»Document Root«)</h5>
100)   <div style=\"margin-left: 2em;\">
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

101)     <input type=\"checkbox\" id=\"use_default_docroot\" name=\"use_default_docroot\" value=\"1\" ".($is_default_docroot ? 'checked="checked" ' : '')."/>&#160;<label for=\"use_default_docroot\">Standardeinstellung benutzen</label><br />
Bernd Wurst Sprre da Docroot-Eingabefel...

Bernd Wurst authored 9 years ago

102)     <strong>".$vhost['homedir']."/websites/</strong>&#160;<input type=\"text\" id=\"docroot\" name=\"docroot\" size=\"30\" value=\"".$docroot."\"/>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

103)   </div>
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

104) </div>
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

105) ";
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

106) 
Bernd Wurst prepare for experimental PH...

Bernd Wurst authored 12 years ago

107) /*
108)  * Boolean option, to be used when only one PHP version is available
109)  */
Hanno Böck php 5.6 zum default, php 5....

Hanno Böck authored 9 years ago

110) $have_php = ($vhost['php'] == 'php56' ? ' checked="checked" ' : '');
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

111) 
Bernd Wurst make PHP 5.4 available as e...

Bernd Wurst authored 12 years ago

112) /*
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

113) $phpoptions = "<h5>PHP</h5>
114)   <div style=\"margin-left: 2em;\">
115)     <input type=\"checkbox\" name=\"php\" id=\"php\" value=\"php53\" {$have_php}/>&#160;<label for=\"php\">PHP einschalten</label>
116)   </div>
117) ";
Bernd Wurst make PHP 5.4 available as e...

Bernd Wurst authored 12 years ago

118) */
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

119) /*
Bernd Wurst prepare for experimental PH...

Bernd Wurst authored 12 years ago

120)  * Choose what PHP version to use
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

121)  */
Bernd Wurst make PHP 5.4 available as e...

Bernd Wurst authored 12 years ago

122) //if ($vhost['php'] == 'php54')
123) //{
Hanno Böck support for php 7.1

Hanno Böck authored 7 years ago

124)   $options = array("none" => 'ausgeschaltet', "php56" => "PHP 5.6", "fpm70" => "PHP 7.0", "fpm71" => "PHP 7.1");
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

125)   $phpoptions = "
126)   <h5>PHP</h5>
127)   <div style=\"margin-left: 2em;\">
128)     ".html_select("php", $options, $vhost['php'])."
129)   </div>";
Bernd Wurst make PHP 5.4 available as e...

Bernd Wurst authored 12 years ago

130) //}
bernd Vorbereitung für PHP 5.3

bernd authored 14 years ago

131) 
bernd "CGI-Aktivieren" ist jetzt...

bernd authored 13 years ago

132) $safemode = ($vhost['cgi'] == 1 ? '' : ' checked="checked" ');
bernd CGI abschaltbar

bernd authored 14 years ago

133) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

134) $form .= "
135) <div class=\"vhostoptions\" id=\"options_scriptlang\" ".($vhost_type=='regular' ? '' : 'style="display: none;"').">
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

136)   ".$phpoptions."
bernd "CGI-Aktivieren" ist jetzt...

bernd authored 13 years ago

137)   <h5>Abgesicherter Modus</h5>
bernd CGI abschaltbar

bernd authored 14 years ago

138)   <div style=\"margin-left: 2em;\">
bernd "CGI-Aktivieren" ist jetzt...

bernd authored 13 years ago

139)     <input type=\"checkbox\" name=\"safemode\" id=\"safemode\" value=\"yes\" {$safemode}/>&#160;<label for=\"safemode\">Abgesicherter Modus</label><br /><em>(Deaktiviert CGI, mod_rewrite und einige weitere Funktionen mit denen die Website auf andere Orte des Home-Verzeichnisses zugreifen könnte.)</em>
bernd CGI abschaltbar

bernd authored 14 years ago

140)   </div>
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

141) </div>
142) ";
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

143) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

144) $form .= "
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

145) <div class=\"vhostoptions\" id=\"options_webapp\" ".($vhost_type=='webapp' ? '' : 'style="display: none;"').">
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

146)   <h4>Optionen</h4>
147)   <h5>Anwendung</h5>
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

148)   <select name=\"webapp\" id=\"webapp\" size=\"1\">
bernd Webapps implementiert

bernd authored 16 years ago

149)     {$webapp_options}
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

150)   </select>
bernd Info-Text über E-mail mit Z...

bernd authored 16 years ago

151)   <p>Wenn Sie diese Option wählen, wird die Anwendung automatisch eingerichtet. Sie erhalten dann ihre Zugangsdaten per E-Mail.</p>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

152) </div>
bernd R.I.P. Shared-Drupal

bernd authored 15 years ago

153) ";
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

154) 
bernd R.I.P. Shared-Drupal

bernd authored 15 years ago

155) $form .= "
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

156) <h4>Verwendung</h4>
157)         <div style=\"margin-left: 2em;\">
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

158) 	  <input class=\"usageoption\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_regular\" value=\"regular\" ".(($vhost_type=='regular') ? 'checked="checked" ' : '')."/><label for=\"vhost_type_regular\">&#160;Normal (selbst Dateien hinterlegen)</label><br />
bernd R.I.P. Shared-Drupal

bernd authored 15 years ago

159) ";
160) if ($vhost_type=='webapp')
161) {
162)   // Wird nur noch angezeigt wenn der Vhost schon auf webapp konfiguriert ist, ansonsten nicht.
163)   // Die User sollen den Webapp-Installer benutzen.
164)   $form .= "
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

165) 	  <input class=\"usageoption\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_webapp\" value=\"webapp\" ".(($vhost_type=='webapp') ? 'checked="checked" ' : '')."/><label for=\"vhost_type_webapp\">&#160;Eine vorgefertigte Applikation nutzen</label><br />
bernd R.I.P. Shared-Drupal

bernd authored 15 years ago

166) ";
167) }
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

168) $hsts_value = $vhost['hsts'];
169) $hsts_preset_values = array("-1" => "aus", "86400" => "1 Tag", "2592000" => "30 Tage", "31536000" => "1 Jahr", "63072000" => "2 Jahre", "custom" => "Individuell");
170) $hsts_preset_value = 'custom';
171) if (isset($hsts_preset_values[$hsts_value])) {
172)   $hsts_preset_value = $hsts_value;
173) }
bernd R.I.P. Shared-Drupal

bernd authored 15 years ago

174) $form .= "
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

175) 	  <input class=\"usageoption\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_dav\" value=\"dav\" ".(($vhost_type=='dav') ? 'checked="checked" ' : '')."/><label for=\"vhost_type_dav\">&#160;WebDAV</label><br />
176) 	  <input class=\"usageoption\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_svn\" value=\"svn\" ".(($vhost_type=='svn') ? 'checked="checked" ' : '')."/><label for=\"vhost_type_svn\">&#160;Subversion-Server</label>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

177) 	</div>
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

178) <br />
bernd R.I.P. Shared-Drupal

bernd authored 15 years ago

179) <br />
180) <br />
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

181) </div>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

182) 
Hanno Böck Reihenfolge geändert: TLS-O...

Hanno Böck authored 7 years ago

183) <h4 style=\"clear: right; margin-top: 3em;\">Optionen</h4>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

184) <div style=\"margin-left: 2em;\">
Bernd Wurst Wähle automatisch ein Lets-...

Bernd Wurst authored 7 years ago

185)     <h5>Sichere Verbindung erzwingen</h5>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

186)     <div style=\"margin-left: 2em;\">
187)     <select name=\"ssl\" id=\"ssl\">
Bernd Wurst Formulierung für vhost-SSL...

Bernd Wurst authored 9 years ago

188)       <option value=\"none\" ".($vhost['ssl'] == NULL ? 'selected="selected"' : '')." >Nein</option>
Bernd Wurst Interface für Zertifikate i...

Bernd Wurst authored 7 years ago

189)       ".($vhost['ssl'] == 'http' ? "<option value=\"http\" selected=\"selected\">kein HTTPS anbieten</option>" : '')."
190)       ".($vhost['ssl'] == 'https' ? "<option value=\"https\" selected=\"selected\">Konfiguration nur für HTTPS verwenden</option>" : '')."
Bernd Wurst Formulierung für vhost-SSL...

Bernd Wurst authored 9 years ago

191)       <option value=\"forward\" ".($vhost['ssl'] == 'forward' ? 'selected="selected"' : '')." >Ja, immer auf HTTPS umleiten</option>
Hanno Böck wikipedia link to https

Hanno Böck authored 7 years ago

192)     </select>  <span id=\"hsts_block\" style=\"padding-top: 0.2em;\"> <label for=\"hsts\"><a title=\"Mit HSTS können Sie festlegen, dass eine bestimmte Website niemals ohne Verschlüsselung aufgerufen werden soll. Zudem werden Zertifikate strenger geprüft.\" href=\"https://de.wikipedia.org/wiki/Hypertext_Transfer_Protocol_Secure#HSTS\">HSTS</a>:</label> ".html_select('hsts_preset', $hsts_preset_values, $hsts_preset_value)." <span id=\"hsts_seconds\"><input type=\"text\" name=\"hsts\" id=\"hsts\" size=\"10\" style=\"text-align: right;\" value=\"{$hsts_value}\" /> Sekunden</span>
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

193)     </span>
Hanno Böck Reihenfolge geändert: TLS-O...

Hanno Böck authored 7 years ago

194)     </div>";
195) 
196)   $certs = user_certs();
197)   $certselect = array(0 => 'kein Zertifikat / System-Standard benutzen', -1 => 'Automatische Zertifikatsverwaltung mit Let\'s Encrypt');
198)   foreach ($certs as $c)
199)   {
200)     $certselect[$c['id']] = $c['subject'];
201)   }
202)   if (strstr($vhost['options'], 'letsencrypt')) {
203)     $vhost['certid'] = -1;
204)   }
205)   $form .= "
206)     <h5>verwendetes Zertifikat</h5>
207)     <div style=\"margin-left: 2em;\">
208)     ".html_select('cert', $certselect, $vhost['certid'])."
209) </div>
210) <p class=\"warning\"><b>Datenschutz-Hinweis:</b><br>
211) Alle erstellten HTTPS-Zertifikate werden
212) automatisch in den für jeden zugänglichen Certificate-Transparency-Logs abgelegt.
213) Die zugehörigen Subdomains sind damit auch öffentlich.
214) Sie können die Logs mit dem Service <a href=\"https://crt.sh/\">crt.sh</a> durchsuchen.</p>";
215) 
216)   $form.="
217)     <h5>Logfiles</h5>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

218)     <div style=\"margin-left: 2em;\">
219)       <select name=\"logtype\" id=\"logtype\">
220)         <option value=\"none\" ".($vhost['logtype'] == NULL ? 'selected="selected"' : '')." >keine Logfiles</option>
221)         <option value=\"anonymous\" ".($vhost['logtype'] == 'anonymous' ? 'selected="selected"' : '')." >anonymisiert</option>
222)         <option value=\"default\" ".($vhost['logtype'] == 'default' ? 'selected="selected"' : '')." >vollständige Logfile</option>
223)       </select><br />
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

224)       <input type=\"checkbox\" id=\"errorlog\" name=\"errorlog\" value=\"1\" ".($vhost['errorlog'] == 1 ? ' checked="checked" ' : '')." />&#160;<label for=\"errorlog\">Fehlerprotokoll (error_log) einschalten</label><br />
225)       <input type=\"checkbox\" id=\"stats\" name=\"stats\" value=\"1\" ".($vhost['stats'] != NULL ? ' checked="checked" ' : '')." />&#160;<label for=\"stats\">Statistiken/Auswertungen erzeugen</label>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

226)     </div>
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

227)     <p>Logfiles werden unter <b>/var/log/apache2/".$_SESSION['userinfo']['username']."</b> abgelegt.</p>
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

228)     ";
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

229) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

230) $ipaddrs = user_ipaddrs();
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

231) $available_users = available_suexec_users();
Bernd Wurst Ermögliche das Auswählen de...

Bernd Wurst authored 11 years ago

232) $available_servers = additional_servers();
233) $available_servers[] = my_server_id();
234) $available_servers = array_unique($available_servers);
235) 
236) $selectable_servers = array();
237) $all_servers = server_names();
238) foreach ($all_servers as $id => $fqdn) {
239)   if (in_array($id, $available_servers)) {
240)     $selectable_servers[$id] = $fqdn;
241)   }
242) }
243) if (!$vhost['server']) {
244)   $vhost['server'] = my_server_id();
245) }
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

246) 
bernd IP-Adressen aktivieren

bernd authored 14 years ago

247)   if (count($ipaddrs))
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

248)   {
249)     $ipselect = array(0 => 'System-Standard');
250)     foreach ($ipaddrs AS $i)
251)     {
252)       $ipselect[$i] = $i;
253)     }
Hanno Böck Reihenfolge geändert: TLS-O...

Hanno Böck authored 7 years ago

254)     $form .= "
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

255)       <h5>IP-Adresse</h5>
256)       <div style=\"margin-left: 2em;\">
bernd IP-Adressen aktivieren

bernd authored 14 years ago

257)       ".html_select('ipv4', $ipselect, $vhost['ipv4'])."
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

258)       </div>";
bernd IP-Adressen aktivieren

bernd authored 14 years ago

259)   } 
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

260)   if (count($available_users))
261)   {
262)     $userselect = array(0 => 'Eigener Benutzeraccount');
263)     foreach ($available_users AS $u)
264)     {
265)       $userselect[$u['uid']] = $u['username'];
266)     }
Hanno Böck Reihenfolge geändert: TLS-O...

Hanno Böck authored 7 years ago

267)     $form .= "
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

268)       <h5>SuExec-Benutzeraccount</h5>
269)       <div style=\"margin-left: 2em;\">
270)       ".html_select('suexec_user', $userselect, $vhost['suexec_user'])."
271)       </div>";
272)   }
Bernd Wurst Zeige Server-Auswahl nur we...

Bernd Wurst authored 11 years ago

273)   if (count($available_servers) > 1)
Bernd Wurst Ermögliche das Auswählen de...

Bernd Wurst authored 11 years ago

274)   {
Hanno Böck Reihenfolge geändert: TLS-O...

Hanno Böck authored 7 years ago

275)     $form .= "
Bernd Wurst Ermögliche das Auswählen de...

Bernd Wurst authored 11 years ago

276)       <h5>Einrichten auf Server</h5>
277)       <div style=\"margin-left: 2em;\">
278)       ".html_select('server', $selectable_servers, $vhost['server'])."
279)       </div>";
280) 
281)   }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

282) if ($have_v6) 
283) {
bernd IPv6-Regelbetrieb vorbereit...

bernd authored 13 years ago

284)   $ipv6_address = '';
bernd Zusätzlicher Haken für eige...

bernd authored 13 years ago

285)   if ($vhost['id'] && ($vhost['autoipv6'] >0 ))
286)     $ipv6_address = '<strong>IPv6-Adresse dieser Subdomain:</strong> '.autoipv6_address($vhost['id'], $vhost['autoipv6']);
287)   $checked = ($vhost['autoipv6'] > 0) ? ' checked="checked"' : '';
288)   $checked2 = ($vhost['autoipv6'] == 2) ? ' checked="checked"' : '';
Hanno Böck Reihenfolge geändert: TLS-O...

Hanno Böck authored 7 years ago

289)   $form .= '<h5>IPv6</h5>
bernd IPv6

bernd authored 14 years ago

290) <div style="margin-left: 2em;">
bernd IPv6-Regelbetrieb vorbereit...

bernd authored 13 years ago

291) <input type="checkbox" name="ipv6" id="ipv6" value="yes" '.$checked.'/>&#160;<label for="ipv6">Auch über IPv6 erreichbar machen</label><br />
bernd Zusätzlicher Haken für eige...

bernd authored 13 years ago

292) <input type="checkbox" name="ipv6_separate" id="ipv6_separate" value="yes" '.$checked2.'/>&#160;<label for="ipv6_separate">Für diese Website eine eigene IPv6-Adresse reservieren</label><br />
bernd IPv6-Regelbetrieb vorbereit...

bernd authored 13 years ago

293) '.$ipv6_address.'
bernd IPv6

bernd authored 14 years ago

294) </div>';
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

295) }
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

296) 
297) 
298) 
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

299) $form .= '
bernd eliminate .php extensions f...

bernd authored 15 years ago

300)   <p><input type="submit" value="Speichern" />&#160;&#160;&#160;&#160;'.internal_link('vhosts', 'Abbrechen').'</p>
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

301) ';
bernd eliminate .php extensions f...

bernd authored 15 years ago

302) output(html_form('vhosts_edit_vhost', 'save', 'action=edit&vhost='.$vhost['id'], $form));