92f133ee96716791aa0cad3fd268fafdc9c507dc
bernd Systemuser-Modul hinzugefügt

bernd authored 16 years ago

1) <?php
2) 
bernd Überarbeitetes Systemuser-M...

bernd authored 14 years ago

3) require_once('inc/base.php');
bernd Systemuser-Modul hinzugefügt

bernd authored 16 years ago

4) 
5) require_once('useraccounts.php');
6) 
7) require_role(ROLE_CUSTOMER);
8) 
9) 
10) $title = "System-Benutzeraccounts";
bernd Viele XHTML-Fehler korrigie...

bernd authored 16 years ago

11) $section = "systemuser_accounts";
bernd Systemuser-Modul hinzugefügt

bernd authored 16 years ago

12) 
13) $account = get_account_details($_GET['uid']);
14) 
bernd Überarbeitetes Systemuser-M...

bernd authored 14 years ago

15) 
bernd Systemuser-Modul hinzugefügt

bernd authored 16 years ago

16) output("<h3>Bearbeiten von Benutzer »{$account['username']}«</h3>");
17) 
bernd Überarbeitetes Systemuser-M...

bernd authored 14 years ago

18) #if (customer_useraccount($account['uid']))
19) #  system_failure('Aus Sicherheitsgründen können Sie diesen Account nicht ändern!');
20) 
21) $shells = available_shells();
22) $defaultname = ($account['name'] ? '' : 'checked="checked" ');
23) $nondefaultname = ($account['name'] ? 'checked="checked" ' : '');
24) 
25) $customerquota = get_customer_quota();
26) 
27) $maxquota = $customerquota['max'] - $customerquota['assigned'] + $account['quota'];
28) 
29) 
30) output(html_form('systemuser_edit', 'save', 'action=edit&uid='.$account['uid'], '
31) 
32) <h5>Name (E-Mail-Absender, ...)</h5>
33) <div style="margin-left: 2em;"> 
34)   <p><input type="radio" name="defaultname" id="defaultname" value="1" '.$defaultname.'/> <label for="defaultname">Kundenname: <strong>'.$_SESSION['customerinfo']['name'].'</strong></label></p>
35)   <p><input type="radio" name="defaultname" id="nondefaultname" value="0" '.$nondefaultname.'/> <label for="nondefaultname">Abweichend:</label> <input type="text" name="fullname" id="fullname" value="'.$account['name'].'" /></p>
36) </div>
37) 
38) <h5>Speicherplatz</h5>
39) <div style="margin-left: 2em;">
40)   <p>Wenn Sie mehrere Benutzeraccounts haben, können Sie den verfügbaren Speicherplatz selbst auf diese Accounts verteilen, bis diese zusammen das Limit erreichen, das für Ihr Kundenkonto vereinbart wurde (aktuell insgesamt '.$customerquota['max'].' MB).</p>
41)   <p><label for="quota">Speicherplatz für »<strong>'.$account['username'].'</strong>«:</label> <input style="text-align: right; width: 5em;" type="text" name="quota" id="quota" value="'.$account['quota'].'" /> MB (Maximal '.$maxquota.' MB möglich.)</p>
42) </div>
bernd Primärer Useraccount kann d...

bernd authored 16 years ago

43) 
bernd Überarbeitetes Systemuser-M...

bernd authored 14 years ago

44) <h5>Shell</h5>
45) <div style="margin-left: 2em;">
46)   <p>Hier können Sie eine andere Kommandozeile einstellen. Tun Sie das bitte nur, wenn Sie wissen was Sie tun. Möchten Sie gerne eine Shell benutzen, die hier nicht aufgeführt ist, wenden Sie sich bitte an den Support.</p>
47)   <p>'.html_select('shell', $shells, $account['shell']).'</p>
48) </div>
bernd Primärer Useraccount kann d...

bernd authored 16 years ago

49) 
bernd Viele XHTML-Fehler korrigie...

bernd authored 16 years ago

50) <p>
bernd Systemuser-Modul hinzugefügt

bernd authored 16 years ago

51) <input type="submit" name="submit" value="Speichern" />
bernd Viele XHTML-Fehler korrigie...

bernd authored 16 years ago

52) </p>