d70a57910ad45eb37392b3a14b2fa1e38343e8d9
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>
bernd typo

bernd authored 16 years ago

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

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

19) $vhosts = list_vhosts();
20) 
21) if (count($vhosts) > 0)
22) {
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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