ec2269058874e359114ab93d9737799bf141b572
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 Beta-Hinweis im vhost-modul

bernd authored 16 years ago

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>
15) <p class=\"warning\">
16)   <strong>Testbetrieb</strong><br />
17)   Dieser Abschnitt unseres Webinterface befindet sich momentan im Testbetrieb. Wir bitten Sie, hier besonders auf eventuelle Fehler zu achten und uns diese ggf. mitzuteilen. Auch Vorschläge, wie diese Funktionen vielleicht besser gestaltet werden können, nehmen wir gerne an.
18) </p>
19) <p>Änderungen an Ihren Einstellungen werden im 5-Minuten-Takt auf dem Server übernommen.</p>
20) ");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

21) 
22) $vhosts = list_vhosts();
23) 
24) if (count($vhosts) > 0)
25) {
bernd Aliases editieren

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

60)   output('</table>');
61)   output('<p><sup>*</sup>)&nbsp;schwach geschriebene Pfadangaben bezeichnen die Standardeinstellung. Ist ein Pfad fett dargestellt, so haben Sie einen davon abweichenden Wert eingegeben.</p>');
62)   output('  <br />');
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

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

bernd authored 16 years ago

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