c208bd906b3991555db11b9229846c4601ca408c
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) 
5) Written 2008-2012 by schokokeks.org Hosting, namely
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');
19) 
20) require_once('vhosts.php');
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

24) 
25) require_role(ROLE_SYSTEMUSER);
26) 
bernd Einige notices (undefined i...

bernd authored 14 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 16 years ago

38) DEBUG($vhost);
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 16 years ago

41) }
42) else {
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

45) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

46) html_header("<script type=\"text/javascript\">
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

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

bernd authored 16 years ago

48)   function selectedDomain() {
49)     var selected;
50)     selected=document.getElementById('domain').options.selectedIndex;
51)     return document.getElementById('domain').options.item(selected).text;
52)     }
53)   
54)   function defaultDocumentRoot() {
55)     var hostname;
56)     if (document.getElementById('hostname').value == '') 
57)       hostname = selectedDomain();
58)     else
59)       hostname = document.getElementById('hostname').value + '.' + selectedDomain();
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

60)     var default_docroot = hostname + '/htdocs';
61)     useDefaultDocroot(default_docroot);
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

62)   }
63)   
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

64)   function useDefaultDocroot( default_docroot ) {
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

65)     var do_it = (document.getElementById('use_default_docroot').checked == true);
66)     var inputfield = document.getElementById('docroot');
67)     inputfield.disabled = do_it;
68)     if (do_it) {
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

69)       document.getElementById('docroot').value = default_docroot;
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

70)     }
71)   }
bernd Erster Versuch, SVN, DAV un...

bernd authored 16 years ago

72)   
73)   function showAppropriateLines() {
74)     if (document.getElementById('vhost_type_regular').checked == true) {
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

75)       document.getElementById('options_docroot').style.display = 'block';
76)       document.getElementById('options_scriptlang').style.display = 'block';
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

77)       document.getElementById('options_webapp').style.display = 'none';
bernd Erster Versuch, SVN, DAV un...

bernd authored 16 years ago

78)     }
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

79)     else if (document.getElementById('vhost_type_dav').checked == true) { 
80)       document.getElementById('options_docroot').style.display = 'block';
81)       document.getElementById('options_scriptlang').style.display = 'none';
82)       document.getElementById('options_webapp').style.display = 'none';
83)     }
84)     else if (document.getElementById('vhost_type_svn').checked == true) {
85)       document.getElementById('options_docroot').style.display = 'none';
86)       document.getElementById('options_scriptlang').style.display = 'none';
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

87)       document.getElementById('options_webapp').style.display = 'none';
bernd Erster Versuch, SVN, DAV un...

bernd authored 16 years ago

88)     }
89)     else if (document.getElementById('vhost_type_webapp').checked == true) {
bernd Docroot auch bei WebDAV anz...

bernd authored 16 years ago

90)       document.getElementById('options_docroot').style.display = 'none';
91)       document.getElementById('options_scriptlang').style.display = 'none';
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

92)       document.getElementById('options_webapp').style.display = 'block';
bernd Erster Versuch, SVN, DAV un...

bernd authored 16 years ago

93)     }
94)   }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

95)   </script>");
96) 
97) $defaultdocroot = $vhost['domain'];
bernd domain = NULL ==> user-subd...

bernd authored 16 years ago

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

bernd authored 14 years ago

99)   $defaultdocroot = $_SESSION['userinfo']['username'].'.'.config('masterdomain');
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

100) if ($vhost['hostname'])
101)   $defaultdocroot = $vhost['hostname'].'.'.$defaultdocroot;
102) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

104) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

105) $is_default_docroot = ($vhost['docroot'] == NULL) || ($vhost['homedir'].'/websites/'.$defaultdocroot == $vhost['docroot']);
106) 
107) if ($vhost['docroot'] != '' && ! strstr($vhost['docroot'], '/websites/'))
108) {
109)   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.");
110)   $is_default_docroot = True;
111) }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

112) 
113) $docroot = '';
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

115)   $docroot = $defaultdocroot;
116) else
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

121) 
122) $vhost_type = 'regular';
123) if ($vhost['is_dav'])
124)   $vhost_type = 'dav';
125) elseif ($vhost['is_svn'])
126)   $vhost_type = 'svn';
127) elseif ($vhost['is_webapp'])
128)   $vhost_type = 'webapp';
129) 
bernd Webapps implementiert

bernd authored 16 years ago

130) $applist = list_available_webapps();
131) $webapp_options = '';
132) foreach ($applist as $app)
133)   $webapp_options .= "<option value=\"{$app['id']}\">{$app['displayname']}</option>\n";
134) 
135) 
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

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

bernd authored 16 years ago

137) <h4 style=\"margin-top: 2em;\">Name des VHost</h4>
bernd Schon beim tippen ändern, n...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

143)   <h4>Optionen</h4>
144)   <h5>Speicherort für Dateien (»Document Root«)</h5>
145)   <div style=\"margin-left: 2em;\">
bernd Fix bug #488

bernd authored 15 years ago

146)     <input type=\"checkbox\" id=\"use_default_docroot\" name=\"use_default_docroot\" value=\"1\" onclick=\"defaultDocumentRoot()\" ".($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

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

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

151) 
bernd Vorbereitung für PHP 5.3

bernd authored 14 years ago

152) 
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

153) $have_php = ($vhost['php'] == 'php53' ? ' checked="checked" ' : '');
154) 
155) $phpoptions = "<h5>PHP</h5>
156)   <div style=\"margin-left: 2em;\">
157)     <input type=\"checkbox\" name=\"php\" id=\"php\" value=\"php53\" {$have_php}/>&#160;<label for=\"php\">PHP einschalten</label>
158)   </div>
159) ";
160) 
161) /*
162)  * Zeige ein Auswahlmenü, wenn bisher PHP 5.2 eingestellt war!
163)  */
164) if ($vhost['php'] == 'fastcgi')
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

165) {
bernd Zeige PHP-Versionsauswahl n...

bernd authored 13 years ago

166)   $options = array("none" => 'ausgeschaltet', "php53" => 'PHP 5.3' , "fastcgi" => "Kompatibilitätsmodus: PHP 5.2");
167)   $phpoptions = "
168)   <h5>PHP</h5>
169)   <div style=\"margin-left: 2em;\">
170)     ".html_select("php", $options, $vhost['php'])."
171)   </div>";
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

172) }
bernd Vorbereitung für PHP 5.3

bernd authored 14 years ago

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

bernd authored 13 years ago

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

bernd authored 14 years ago

175) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 13 years ago

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

bernd authored 13 years ago

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

bernd authored 14 years ago

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

bernd authored 13 years ago

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

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

bernd authored 15 years ago

183) </div>
184) ";
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

185) 
bernd mod_php deprecated, zwang z...

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

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

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

198) <h4>Verwendung</h4>
199)         <div style=\"margin-left: 2em;\">
200) 	  <input class=\"usageoption\" onclick=\"showAppropriateLines()\" 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

201) ";
202) if ($vhost_type=='webapp')
203) {
204)   // Wird nur noch angezeigt wenn der Vhost schon auf webapp konfiguriert ist, ansonsten nicht.
205)   // Die User sollen den Webapp-Installer benutzen.
206)   $form .= "
bernd Gloable Webapps weiter hoch

bernd authored 16 years ago

207) 	  <input class=\"usageoption\" onclick=\"showAppropriateLines()\" 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

208) ";
209) }
210) $form .= "
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

211) 	  <input class=\"usageoption\" onclick=\"showAppropriateLines()\" 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 />
bernd Gloable Webapps weiter hoch

bernd authored 16 years ago

212) 	  <input class=\"usageoption\" onclick=\"showAppropriateLines()\" 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

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

bernd authored 16 years ago

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

bernd authored 15 years ago

215) <br />
216) <br />
bernd vhost-Modul kann jetzt SVN-...

bernd authored 16 years ago

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

bernd authored 16 years ago

218) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 16 years ago

220) <div style=\"margin-left: 2em;\">
221)     <h5>SSL-Verschlüsselung</h5>
222)     <div style=\"margin-left: 2em;\">
223)     <select name=\"ssl\" id=\"ssl\">
bernd SSL auch über webinterface...

bernd authored 16 years ago

224)       <option value=\"none\" ".($vhost['ssl'] == NULL ? 'selected="selected"' : '')." >SSL optional anbieten</option>
225)       <option value=\"http\" ".($vhost['ssl'] == 'http' ? 'selected="selected"' : '')." >kein SSL</option>
226)       <option value=\"https\" ".($vhost['ssl'] == 'https' ? 'selected="selected"' : '')." >nur SSL</option>
227)       <option value=\"forward\" ".($vhost['ssl'] == 'forward' ? 'selected="selected"' : '')." >Immer auf SSL umleiten</option>
228)     </select>
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

229)     </div>
230)     <h5>Logfiles <span class=\"warning\">*</span></h5>
231)     <div style=\"margin-left: 2em;\">
232)       <select name=\"logtype\" id=\"logtype\">
233)         <option value=\"none\" ".($vhost['logtype'] == NULL ? 'selected="selected"' : '')." >keine Logfiles</option>
234)         <option value=\"anonymous\" ".($vhost['logtype'] == 'anonymous' ? 'selected="selected"' : '')." >anonymisiert</option>
235)         <option value=\"default\" ".($vhost['logtype'] == 'default' ? 'selected="selected"' : '')." >vollständige Logfile</option>
236)       </select><br />
bernd Webalizer/Statistik-Funktio...

bernd authored 14 years ago

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

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

bernd authored 14 years ago

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

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

bernd authored 16 years ago

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

bernd authored 16 years ago

243) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

244) $ipaddrs = user_ipaddrs();
245) $certs = user_certs();
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

246) $available_users = available_suexec_users();
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 13 years ago

248) $extended = '';
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

249)   if (count($certs))
250)   {
251)     $certselect = array(0 => 'kein Zertifikat / System-Standard benutzen');
252)     foreach ($certs as $c)
253)     {
254)       $certselect[$c['id']] = $c['subject'];
255)     }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

256)     $extended .= "
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

257)       <h5>verwendetes SSL-Zertifikat</h5>
258)       <div style=\"margin-left: 2em;\">
259)       ".html_select('cert', $certselect, $vhost['certid'])."
260)       </div>";
261)   }
bernd IP-Adressen aktivieren

bernd authored 14 years ago

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

bernd authored 14 years ago

263)   {
264)     $ipselect = array(0 => 'System-Standard');
265)     foreach ($ipaddrs AS $i)
266)     {
267)       $ipselect[$i] = $i;
268)     }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

269)     $extended .= "
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

274)   } 
bernd SuExec-Useraccount einstellbar

bernd authored 14 years ago

275)   if (count($available_users))
276)   {
277)     $userselect = array(0 => 'Eigener Benutzeraccount');
278)     foreach ($available_users AS $u)
279)     {
280)       $userselect[$u['uid']] = $u['username'];
281)     }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

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

bernd authored 14 years ago

283)       <h5>SuExec-Benutzeraccount</h5>
284)       <div style=\"margin-left: 2em;\">
285)       ".html_select('suexec_user', $userselect, $vhost['suexec_user'])."
286)       </div>";
287)   }
bernd IPv6-Option nur anzeigen we...

bernd authored 13 years ago

288) if ($have_v6) 
289) {
bernd IPv6-Regelbetrieb vorbereit...

bernd authored 13 years ago

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

bernd authored 13 years ago

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

bernd authored 13 years ago

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

bernd authored 14 years ago

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

bernd authored 13 years ago

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

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

299) '.$ipv6_address.'
bernd IPv6

bernd authored 14 years ago

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

bernd authored 13 years ago

301) }
302) if ($extended)
303)   $form .= "
304) <h4 style=\"margin-top: 3em;\">Erweiterte Optionen</h4>
305) <div style=\"margin-left: 2em;\">
306) ".$extended."</div>";
bernd IPv6

bernd authored 14 years ago

307) 
bernd Neue Zertifikatsverwaltung

bernd authored 14 years ago

308) 
309) 
310) 
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

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

bernd authored 15 years ago

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

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

314)   zulässig ist. Wir weisen alle Nutzer darauf hin, dass sie selbst dafür verantwortlich sind, bei geloggten Nutzerdaten die
315)   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

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

bernd authored 15 years ago

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