709c9ea228a4039610d5aaafd0a4464e1f7b443e
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) 
12) 
bernd Aliases editieren

bernd authored 16 years ago

13) output("<h3>Subdomains</h3>
14) <p>Mit dieser Funtkion legen Sie fest, welche Domains und Subdomains als Webserver-Ressource verfügbar sein sollen und welches Verzeichnis die Dateien enthalten soll.</p>");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

15) 
16) $vhosts = list_vhosts();
17) 
18) if (count($vhosts) > 0)
19) {
bernd Aliases editieren

bernd authored 16 years ago

20)   output("<table><tr><th>(Sub-)Domain</th><th>Zusätzliche Alias-Namen</th><th>Lokaler Pfad<sup>*</sup></th><th>PHP</th></tr>");
21) 
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

22)   foreach ($vhosts as $vhost)
23)   {
24)     $fqdn = $vhost['fqdn'];
25)     output("<tr><td>".internal_link('edit.php', $fqdn, "vhost={$vhost['id']}")."</td><td>");
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 16 years ago

27)     foreach ($aliases as $alias)
28)     {
29)       output($alias['fqdn'].'<br />');
30)     }
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 16 years ago

32)     output('</td>');
33)     if ($vhost['docroot_is_default'] == 1)
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

34)       output("<td><span style=\"color:#777;\">{$vhost['docroot']}</span></td>");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

35)     else
36)       output("<td><strong>{$vhost['docroot']}</strong></td>");
37)     $php = $vhost['php'];
38)     switch ($php)
39)     {
40)       case NULL:
41)         $php = 'kein PHP';
42)         break;
43)       case 'mod_php':
44)         $php = 'Apache-Modul';
45)         break;
46)       case 'fastcgi':
47)         $php = 'FastCGI';
48)         break;
49)     }
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

50)     output("<td>{$php}</td>
51)     <td>".internal_link('save.php', 'Subdomain löschen', 'action=delete&vhost='.$vhost['id'] )."</td>
52)     </tr>");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

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

bernd authored 16 years ago

54)   output('</table>
55) <p><a href="edit.php">Neue Subdomain anlegen</a></p>
bernd Aliases editieren

bernd authored 16 years ago

56) <p><sup>*</sup>)&nbsp;schwach geschriebene Pfadangaben bezeichnen die Standardeinstellung. Ist ein Pfad fett dargestellt, so haben Sie einen davon abweichenden Wert eingegeben.</p>
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

57)   <br />');