47b732dc88c791d66102c175adced814a09602fb
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 Logfile-Status in der vhost...

bernd authored 16 years ago

24)   output("<table><tr><th>(Sub-)Domain</th><th></th><th>Zusätzliche Alias-Namen</th><th>PHP</th><th>Logfiles</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>');
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 Logfile-Status in der vhost...

bernd authored 16 years ago

50)     output("<td>{$php}</td>");
51)     $logfiles = 'keine';
52)     if ($vhost['logtype'] == 'default')
53)       $logfiles = 'normal';
54)     elseif ($vhost['logtype'] == 'anonymous')
55)       $logfiles = 'anonym';
56)     if ($vhost['errorlog'] == 1)
57)     {
58)       if ($logfiles == 'keine')
59)         $logfiles = 'nur Fehler';
60)       else
61)         $logfiles .= ', Fehler';
62)     }
63)     output("<td>{$logfiles}</td>");
64)     if ($vhost['docroot_is_default'] == 1)
65)       output("<td><span style=\"color:#777;\">{$vhost['docroot']}</span></td>");
66)     else
67)       output("<td><strong>{$vhost['docroot']}</strong></td>");
68)     output("</tr>");
bernd neues VHosts-Modul (unbenut...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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