3cda75a7d48034e8c57a28ae68e106093c092712
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 VHost-Löschen als icon

bernd authored 16 years ago

24)   output("<table><tr><th>(Sub-)Domain</th><th></th><th>Zusätzliche Alias-Namen</th><th>Lokaler Pfad<sup>*</sup></th><th>PHP</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)     if ($vhost['docroot_is_default'] == 1)
bernd VHosts können bearbeitet we...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

54)     output("<td>{$php}</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 />');