f2550e90ad37215b9d890155806986336bf0170c
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

1) <?php
2) 
3) require_once('inc/base.php');
4) require_once('inc/icons.php');
bernd Nur eingeloggten user sollt...

bernd authored 14 years ago

5) require_role(ROLE_SYSTEMUSER);
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

6) 
7) include("ftpusers.php");
8) 
9) $ftpusers = list_ftpusers();
10) $regular_ftp = have_regular_ftp();
11) 
12) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

13) title("Zusätzliche FTP-Benutzer");
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

14) output('
15) <p>Als Zusatzleistung bieten wir Ihnen die Möglichkeit, weitere FTP-Benutzerzugänge anzulegen. Diese Zugänge sind auf das angegebene Verzeichnis beschränkt und es kann nur mit dem FTP-Protokoll verwendet werden. Ein Login mittels SSH ist für diese Benutzerkonten nicht möglich.</p>');
16) 
17) 
bernd Kosmetik

bernd authored 14 years ago

18) if (count($ftpusers) > 0)
19) {
20)   output('
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

21) <table><tr><th>Benutzername</th><th>Verzeichnis</th><th>aktiv</th><th>&#160;</th></tr>
22) ');
23) 
bernd Kosmetik

bernd authored 14 years ago

24)   foreach ($ftpusers AS $f)
25)   {
26)     $active = ($f['active'] == 1 ? icon_enabled('Ja') : '-');
27)     output("<tr><td>".internal_link("edit?id={$f['id']}", $f['username'])."</td><td>{$f['homedir']}</td><td style=\"text-align: center;\">{$active}</td><td>".internal_link("save?delete={$f['id']}", icon_delete("{$f['username']} löschen"))."</td></tr>");
28)   }
29)   output('</table>');
30) }
31) else
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

32) {
bernd Kosmetik

bernd authored 14 years ago

33)   output('<p><em>Sie haben bisher keine zusätzlichen FTP-Benutzer angelegt</em></p>');
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

34) }
35) 
36) addnew('edit', 'Neuen FTP-Benutzer anlegen');
37)