c208bd906b3991555db11b9229846c4601ca408c
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
5) Written 2008-2012 by schokokeks.org Hosting, namely
6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15) */
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

16) 
17) require_once('inc/base.php');
18) require_once('inc/icons.php');
bernd Nur eingeloggten user sollt...

bernd authored 14 years ago

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

bernd authored 14 years ago

20) 
21) include("ftpusers.php");
22) 
23) $ftpusers = list_ftpusers();
24) $regular_ftp = have_regular_ftp();
25) 
26) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 14 years ago

28) output('
29) <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>');
30) 
31) 
bernd Kosmetik

bernd authored 14 years ago

32) if (count($ftpusers) > 0)
33) {
34)   output('
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

35) <table><tr><th>Benutzername</th><th>Verzeichnis</th><th>aktiv</th><th>&#160;</th></tr>
36) ');
37) 
bernd Kosmetik

bernd authored 14 years ago

38)   foreach ($ftpusers AS $f)
39)   {
bernd Erlaube unverschlüsselte FT...

bernd authored 12 years ago

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

bernd authored 14 years ago

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

bernd authored 12 years ago

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

43)   }
44)   output('</table>');
45) }
46) else
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

47) {
bernd Kosmetik

bernd authored 14 years ago

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

bernd authored 14 years ago

49) }
50) 
51) addnew('edit', 'Neuen FTP-Benutzer anlegen');
52)