354c05a4ddd678c49bcbba458bffa7d13482139a
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

1) <?php
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 Neues Modul zum Prüfen der...

Bernd Wurst authored 10 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 Neues Modul zum Prüfen der...

Bernd Wurst authored 10 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) */
13) 
14) require_once('session/start.php');
15) 
16) require_once('inc/security.php');
17) require_once('inc/icons.php');
18) 
19) require_once('adddomain.php');
20) 
21) require_role(ROLE_CUSTOMER);
22) 
23) title("Domain hinzufügen");
24) $section = 'adddomain_search';
25) 
26) output('<p>Mit dieser Funktion können Sie eine neue Domain in unsere Datenbank eintragen.</p>
27) <p><strong>WICHTIG:</strong> Diese Funktion löst nicht die Registrierung der Domain aus und diese Funktion erteilt uns auch nicht den Auftrag, eine Domain zu registrieren. Die Registrierung müssen Sie selbst durchführen oder separat bei uns beauftragen.</p>');
28) 
29) $data = get_domain_offer($_REQUEST['domain']);
30) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

31) if (!$data) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

32)     // Die Include-Datei setzt eine passende Warning-Nachricht
33)     redirect('search');
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

34) }
35) 
36) $users = list_useraccounts();
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

37) $userselect = [];
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

38) foreach ($users as $u) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

39)     $userselect[$u['uid']] = $u['username'] . ' / ' . $u['name'];
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

40) }
41) 
42) $form = '<table>
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

43) <tr><td>Domainname:</td><td><strong>' . $data['domainname'] . '</strong></td></tr>
44) <tr><td>Jahresgebühr:</td><td style="text-align: right;">' . $data['gebuehr'] . ' €</td></tr>
45) <tr><td>Setup-Gebühr (einmalig):</td><td style="text-align: right;">' . $data['setup'] . ' €</td></tr>
46) <tr><td>Benutzeraccount:</td><td>' . html_select('uid', $userselect) . '</td></tr>
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

47) </table>
48) 
49) <input type="submit" value="Domain eintragen" />';
50) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

51) output(html_form('adddomain_add', 'save', 'domain=' . $data['domainname'], $form));