bf65731f700a6da537814bf4bd8dcd1fc17296a5
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)   {
bernd Erlaube unverschlüsselte FT...

bernd authored 12 years ago

26)     $sslwarning = ($f['forcessl'] == 0 ? icon_warning('Unverschlüsselte Verbindungen werden erlaubt') : '');
bernd Kosmetik

bernd authored 14 years ago

27)     $active = ($f['active'] == 1 ? icon_enabled('Ja') : '-');
bernd Erlaube unverschlüsselte FT...

bernd authored 12 years ago

28)     output("<tr><td>".internal_link("edit?id={$f['id']}", $f['username'])."</td><td>{$f['homedir']}</td><td style=\"text-align: center;\">{$active} {$sslwarning}</td><td>".internal_link("save?delete={$f['id']}", icon_delete("{$f['username']} löschen"))."</td></tr>");
bernd Kosmetik

bernd authored 14 years ago

29)   }
30)   output('</table>');
31) }
32) else
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

33) {
bernd Kosmetik

bernd authored 14 years ago

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

bernd authored 14 years ago

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