06173076f19d9cfeee6f2588348b0c5db140c530
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

1) <?php
2) require_once('inc/debug.php');
3) require_once('inc/security.php');
4) 
5) require_once('vhosts.php');
6) 
bernd Aliases editieren

bernd authored 16 years ago

7) $title = "Subdomains";
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

8) $error = '';
9) 
10) require_role(ROLE_SYSTEMUSER);
11) 
bernd VHost-Löschen als icon

bernd authored 16 years ago

12) global $prefix;
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

13) 
bernd Aliases editieren

bernd authored 16 years ago

14) output("<h3>Subdomains</h3>
bernd typo

bernd authored 16 years ago

15) <p>Mit dieser Funktion legen Sie fest, welche Domains und Subdomains als Webserver-Ressource verfügbar sein sollen und welches Verzeichnis die Dateien enthalten soll.</p>
bernd Beta-Hinweis im vhost-modul

bernd authored 16 years ago

16) <p>Änderungen an Ihren Einstellungen werden im 5-Minuten-Takt auf dem Server übernommen.</p>
17) ");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

18) 
bernd Bugfix: Funktion-Dopplung v...

bernd authored 16 years ago

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

bernd authored 16 years ago

20) $vhosts = list_vhosts();
21) 
22) if (count($vhosts) > 0)
23) {
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

24)   output("<table><tr><th>(Sub-)Domain</th><th></th><th>Zusätzliche Alias-Namen</th><th>Logfiles</th><th>PHP</th><th>Lokaler Pfad<sup>*</sup></th></tr>");
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 16 years ago

26)   foreach ($vhosts as $vhost)
27)   {
28)     $fqdn = $vhost['fqdn'];
bernd VHost-Löschen als icon

bernd authored 16 years ago

29)     output("<tr><td>".internal_link('edit.php', $fqdn, "vhost={$vhost['id']}")."</td><td>".internal_link('save.php', "<img src=\"{$prefix}images/delete.png\" title=\"»{$vhost['fqdn']}« löschen\" alt=\"löschen\" />", 'action=delete&vhost='.$vhost['id'] )."</td><td>");
bernd Aliases editieren

bernd authored 16 years ago

30)     $aliases = get_all_aliases($vhost['id']);
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

31)     foreach ($aliases as $alias)
32)     {
33)       output($alias['fqdn'].'<br />');
34)     }
bernd Aliases editieren

bernd authored 16 years ago

35)     output(internal_link('aliases.php', 'Aliase verwalten', 'vhost='.$vhost['id']));
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

36)     output('</td>');
bernd Logfile-Status in der vhost...

bernd authored 16 years ago

37)     $logfiles = 'keine';
38)     if ($vhost['logtype'] == 'default')
39)       $logfiles = 'normal';
40)     elseif ($vhost['logtype'] == 'anonymous')
41)       $logfiles = 'anonym';
42)     if ($vhost['errorlog'] == 1)
43)     {
44)       if ($logfiles == 'keine')
45)         $logfiles = 'nur Fehler';
46)       else
47)         $logfiles .= ', Fehler';
48)     }
49)     output("<td>{$logfiles}</td>");
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

50)     if ($vhost['is_webapp'] == 1) {
51)       output('<td colspan="2"><em>globale Webanwendung</em></td>');
52)     }
53)     elseif ($vhost['is_dav'] == 1) {
54)       output('<td colspan="2"><em>WebDAV</em></td>');
55)     }
56)     elseif ($vhost['is_svn'] == 1) {
57)       output('<td colspan="2"><em>Subversion-Server</em></td>');
58)     }
59)     else {
60)       $php = $vhost['php'];
61)       switch ($php)
62)       {
63)         case NULL:
bernd "kein PHP" mit geschütztem...

bernd authored 16 years ago

64)           $php = 'kein&#160;PHP';
bernd VHosts-Modul mit neuem Layo...

bernd authored 16 years ago

65)           break;
66)         case 'mod_php':
67)           $php = 'Apache-Modul';
68)           break;
69)         case 'fastcgi':
70)           $php = 'FastCGI';
71)           break;
72)       }
73)       output("<td>{$php}</td>");
74)       if ($vhost['docroot_is_default'] == 1)
75)         output("<td><span style=\"color:#777;\">{$vhost['docroot']}</span></td>");
76)       else
77)         output("<td><strong>{$vhost['docroot']}</strong></td>");
78)     }
bernd Logfile-Status in der vhost...

bernd authored 16 years ago

79)     output("</tr>");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

80)   }
bernd VHosts anlegen geht auch we...

bernd authored 16 years ago

81)   output('</table>');
bernd Entities repariert

bernd authored 16 years ago

82)   output('<p><sup>*</sup>)&#160;schwach geschriebene Pfadangaben bezeichnen die Standardeinstellung. Ist ein Pfad fett dargestellt, so haben Sie einen davon abweichenden Wert eingegeben.</p>');
bernd VHosts anlegen geht auch we...

bernd authored 16 years ago

83)   output('  <br />');
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

84) }
bernd VHosts anlegen geht auch we...

bernd authored 16 years ago

85) output('<p><a href="edit.php">Neue Subdomain anlegen</a></p>');
86) output('  <br />');