ec0c81a8b70e6ac664c291f0e583345d066b7484
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) 
18) $vhosts = list_vhosts();
19) 
20) if (count($vhosts) > 0)
21) {
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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