f6545c526eaa3f21178a10606b26f45f9971d226
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 domain = NULL ==> user-subd...

bernd authored 16 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 VHosts können bearbeitet we...

bernd authored 16 years ago

51) if ($vhost['hostname'])
52)   $defaultdocroot = $vhost['hostname'].'.'.$defaultdocroot;
53) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

55) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

56) $is_default_docroot = ($vhost['docroot'] == NULL) || ($vhost['homedir'].'/websites/'.$defaultdocroot == $vhost['docroot']);
57) 
58) if ($vhost['docroot'] != '' && ! strstr($vhost['docroot'], '/websites/'))
59) {
60)   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.");
61)   $is_default_docroot = True;
62) }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

63) 
64) $docroot = '';
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

66)   $docroot = $defaultdocroot;
67) else
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

72) 
73) $vhost_type = 'regular';
74) if ($vhost['is_dav'])
75)   $vhost_type = 'dav';
76) elseif ($vhost['is_svn'])
77)   $vhost_type = 'svn';
78) elseif ($vhost['is_webapp'])
79)   $vhost_type = 'webapp';
80) 
bernd Webapps implementiert

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 10 years ago

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

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

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

Bernd Wurst authored 10 years ago

97)     <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 mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

102) 
Bernd Wurst prepare for experimental PH...

Bernd Wurst authored 12 years ago

103) /*
104)  * Boolean option, to be used when only one PHP version is available
105)  */
Bernd Wurst VHost-Edit-Seite auf JQuery...

Bernd Wurst authored 10 years ago

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

bernd authored 13 years ago

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

Bernd Wurst authored 12 years ago

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

bernd authored 13 years ago

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

Bernd Wurst authored 12 years ago

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

bernd authored 13 years ago

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

Bernd Wurst authored 12 years ago

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

bernd authored 13 years ago

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

Bernd Wurst authored 12 years ago

118) //if ($vhost['php'] == 'php54')
119) //{
Hanno Böck php 5.5 default

Hanno Böck authored 10 years ago

120)   $options = array("none" => 'ausgeschaltet', "php53" => 'PHP 5.3 (veraltet)' , "php54" => "PHP 5.4", "php55" => "PHP 5.5");
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

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

Bernd Wurst authored 12 years ago

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

bernd authored 14 years ago

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

bernd authored 13 years ago

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

bernd authored 14 years ago

129) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 13 years ago

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

bernd authored 13 years ago

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

bernd authored 14 years ago

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

bernd authored 13 years ago

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

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

bernd authored 15 years ago

137) </div>
138) ";
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

139) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

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

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 10 years ago

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

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

Bernd Wurst authored 10 years ago

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

162) ";
163) }
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

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

bernd authored 15 years ago

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

Bernd Wurst authored 10 years ago

171) 	  <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 />
172) 	  <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

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

bernd authored 16 years ago

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

bernd authored 15 years ago

175) <br />
176) <br />
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

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

bernd authored 16 years ago

178) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 16 years ago

180) <div style=\"margin-left: 2em;\">
181)     <h5>SSL-Verschlüsselung</h5>
182)     <div style=\"margin-left: 2em;\">
183)     <select name=\"ssl\" id=\"ssl\">
Bernd Wurst Menüpunkt umbenannt: Webser...

Bernd Wurst authored 11 years ago

184)       <option value=\"none\" ".($vhost['ssl'] == NULL ? 'selected="selected"' : '')." >Normal</option>
185)       ".($vhost['ssl'] == 'http' ? "<option value=\"http\" selected=\"selected\">kein SSL</option>" : '')."
186)       ".($vhost['ssl'] == 'https' ? "<option value=\"https\" selected=\"selected\">nur SSL</option>" : '')."
bernd SSL auch über webinterface...

bernd authored 16 years ago

187)       <option value=\"forward\" ".($vhost['ssl'] == 'forward' ? 'selected="selected"' : '')." >Immer auf SSL umleiten</option>
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

188)     </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=\"http://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>
189)     </span>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

190)     </div>
191)     <h5>Logfiles <span class=\"warning\">*</span></h5>
192)     <div style=\"margin-left: 2em;\">
193)       <select name=\"logtype\" id=\"logtype\">
194)         <option value=\"none\" ".($vhost['logtype'] == NULL ? 'selected="selected"' : '')." >keine Logfiles</option>
195)         <option value=\"anonymous\" ".($vhost['logtype'] == 'anonymous' ? 'selected="selected"' : '')." >anonymisiert</option>
196)         <option value=\"default\" ".($vhost['logtype'] == 'default' ? 'selected="selected"' : '')." >vollständige Logfile</option>
197)       </select><br />
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

198)       <input type=\"checkbox\" id=\"errorlog\" name=\"errorlog\" value=\"1\" ".($vhost['errorlog'] == 1 ? ' checked="checked" ' : '')." />&#160;<label for=\"errorlog\">Fehlerprotokoll (error_log) einschalten</label><br />
199)       <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

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

bernd authored 14 years ago

201)     <p>Logfiles werden unter <b>/var/log/apache2/".$_SESSION['userinfo']['username']."</b> abgelegt.</p>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

202) </div>
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

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

bernd authored 16 years ago

204) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

205) $ipaddrs = user_ipaddrs();
206) $certs = user_certs();
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

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

Bernd Wurst authored 11 years ago

208) $available_servers = additional_servers();
209) $available_servers[] = my_server_id();
210) $available_servers = array_unique($available_servers);
211) 
212) $selectable_servers = array();
213) $all_servers = server_names();
214) foreach ($all_servers as $id => $fqdn) {
215)   if (in_array($id, $available_servers)) {
216)     $selectable_servers[$id] = $fqdn;
217)   }
218) }
219) if (!$vhost['server']) {
220)   $vhost['server'] = my_server_id();
221) }
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 13 years ago

223) $extended = '';
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

224)   if (count($certs))
225)   {
226)     $certselect = array(0 => 'kein Zertifikat / System-Standard benutzen');
227)     foreach ($certs as $c)
228)     {
229)       $certselect[$c['id']] = $c['subject'];
230)     }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

231)     $extended .= "
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

232)       <h5>verwendetes SSL-Zertifikat</h5>
233)       <div style=\"margin-left: 2em;\">
234)       ".html_select('cert', $certselect, $vhost['certid'])."
235)       </div>";
236)   }
bernd IP-Adressen aktivieren

bernd authored 14 years ago

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

bernd authored 14 years ago

238)   {
239)     $ipselect = array(0 => 'System-Standard');
240)     foreach ($ipaddrs AS $i)
241)     {
242)       $ipselect[$i] = $i;
243)     }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

244)     $extended .= "
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

249)   } 
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

250)   if (count($available_users))
251)   {
252)     $userselect = array(0 => 'Eigener Benutzeraccount');
253)     foreach ($available_users AS $u)
254)     {
255)       $userselect[$u['uid']] = $u['username'];
256)     }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

257)     $extended .= "
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

258)       <h5>SuExec-Benutzeraccount</h5>
259)       <div style=\"margin-left: 2em;\">
260)       ".html_select('suexec_user', $userselect, $vhost['suexec_user'])."
261)       </div>";
262)   }
Bernd Wurst Zeige Server-Auswahl nur we...

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

264)   {
265)     $extended .= "
266)       <h5>Einrichten auf Server</h5>
267)       <div style=\"margin-left: 2em;\">
268)       ".html_select('server', $selectable_servers, $vhost['server'])."
269)       </div>";
270) 
271)   }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

272) if ($have_v6) 
273) {
bernd IPv6-Regelbetrieb vorbereit...

bernd authored 13 years ago

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

bernd authored 13 years ago

275)   if ($vhost['id'] && ($vhost['autoipv6'] >0 ))
276)     $ipv6_address = '<strong>IPv6-Adresse dieser Subdomain:</strong> '.autoipv6_address($vhost['id'], $vhost['autoipv6']);
277)   $checked = ($vhost['autoipv6'] > 0) ? ' checked="checked"' : '';
278)   $checked2 = ($vhost['autoipv6'] == 2) ? ' checked="checked"' : '';
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

279)   $extended .= '<h5>IPv6</h5>
bernd IPv6

bernd authored 14 years ago

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

bernd authored 13 years ago

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

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

283) '.$ipv6_address.'
bernd IPv6

bernd authored 14 years ago

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

bernd authored 13 years ago

285) }
286) if ($extended)
287)   $form .= "
288) <h4 style=\"margin-top: 3em;\">Erweiterte Optionen</h4>
289) <div style=\"margin-left: 2em;\">
290) ".$extended."</div>";
bernd IPv6

bernd authored 14 years ago

291) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

292) 
293) 
294) 
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

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

bernd authored 15 years ago

296)   <p><input type="submit" value="Speichern" />&#160;&#160;&#160;&#160;'.internal_link('vhosts', 'Abbrechen').'</p>
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

297)   <p class="warning"><span class="warning">*</span>Es ist im Moment fraglich, ob die Speicherung von Logfiles mit IP-Adressen auf Webservern
bernd warnung bzgl. logfiles eing...

bernd authored 16 years ago

298)   zulässig ist. Wir weisen alle Nutzer darauf hin, dass sie selbst dafür verantwortlich sind, bei geloggten Nutzerdaten die
299)   Seitenbesucher darauf hinzuweisen. Wir empfehlen, wenn möglich, Logfiles abzuschalten oder anonymes Logging einzusetzen.</p>
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

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

bernd authored 15 years ago

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