354c05a4ddd678c49bcbba458bffa7d13482139a
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) 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.
12) */
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

13) 
14) require_once('inc/base.php');
15) require_once('inc/icons.php');
bernd Nur eingeloggten user sollt...

bernd authored 14 years ago

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

bernd authored 14 years ago

17) 
18) include("ftpusers.php");
19) 
20) $ftpusers = list_ftpusers();
21) $regular_ftp = have_regular_ftp();
22) 
23) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 14 years ago

25) output('
26) <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>');
27) 
28) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

29) if (count($ftpusers) > 0) {
30)     output('
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

31) <table><tr><th>Benutzername</th><th>Verzeichnis</th><th>aktiv</th><th>&#160;</th></tr>
32) ');
33) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

34)     foreach ($ftpusers as $f) {
35)         $sslwarning = ($f['forcessl'] == 0 ? icon_warning('Unverschlüsselte Verbindungen werden erlaubt') : '');
36)         $active = ($f['active'] == 1 ? icon_enabled('Ja') : '-');
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

37)         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>");
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

38)     }
39)     output('</table>');
40) } else {
41)     output('<p><em>Sie haben bisher keine zusätzlichen FTP-Benutzer angelegt</em></p>');
bernd Verwaltung von FTP-Accounts...

bernd authored 14 years ago

42) }
43) 
44) addnew('edit', 'Neuen FTP-Benutzer anlegen');
45) 
bernd Security-enhancements und a...

bernd authored 14 years ago

46) 
47) output('<h3>Haupt-Account mittels FTP nutzen</h3>
Bernd Wurst Sicherheitsabfrage beim Akt...

Bernd Wurst authored 10 years ago

48) <p>Wenn Sie aus einem bestimmten Grund nicht mit den bei uns üblichen Datei-Übertragungsverfahren arbeiten können, besteht hier die Möglichkeit zusätzlich auch FTP-Zugriff für Ihren Benutzeraccount einzurichten.</p>
49) <p>Normalerweise laden Sie Ihre Dateien per SFTP bzw. SCP auf den Server. Nur wenn dies in Ihrem Fall nicht möglich ist, benötigen Sie FTP.</p>
bernd Security-enhancements und a...

bernd authored 14 years ago

50) ');
51) 
52) $token = generate_form_token('regular_ftp');
53) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

54) if ($regular_ftp) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

55)     output('<p>' . icon_enabled() . ' Momentan ist der Zugriff über FTP <strong>aktiviert</strong>. Wenn Sie diesen nicht benötigen sollten Sie ihn aus Sicherheitsgründen ausschalten.<br />' . internal_link('save', 'FTP-Zugriff für Haupt-Account sperren', 'regular_ftp=no&token=' . $token) . '</p>');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

56) } else {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

57)     output('<p>Der Zugriff Ihres Haupt-Accounts über FTP ist momentan abgeschaltet. Aktivieren Sie diesen nur wenn Sie ihn auch nutzen möchten.<br />' . internal_link("save", 'FTP-Zugriff für Haupt-Account freischalten', 'regular_ftp=yes&token=' . $token) . '</p>');