dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
bernd webinterface => /webinterface

bernd authored 17 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 webinterface => /webinterface

bernd authored 17 years ago

13) 
14) require_once('inc/debug.php');
15) 
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

16) require_once('inc/icons.php');
bernd webinterface => /webinterface

bernd authored 17 years ago

17) 
bernd Domain-Klasse benutzen

bernd authored 16 years ago

18) require_once('class/domain.php');
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

19) require_once('domains.php');
bernd webinterface => /webinterface

bernd authored 17 years ago

20) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

21) require_role([ROLE_SYSTEMUSER, ROLE_CUSTOMER]);
bernd webinterface => /webinterface

bernd authored 17 years ago

22) 
Bernd Wurst Bugfix: Domains von anderem...

Bernd Wurst authored 4 years ago

23) if (have_role(ROLE_CUSTOMER)) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

24)     $user_domains = get_domain_list($_SESSION['customerinfo']['customerno']);
25) } else {
26)     $user_domains = get_domain_list($_SESSION['userinfo']['customerno'], $_SESSION['userinfo']['uid']);
27) }
bernd webinterface => /webinterface

bernd authored 17 years ago

28) 
Bernd Wurst Session aufräumen, Weiterle...

Bernd Wurst authored 6 years ago

29) // Session-Variablen aufräumen
30) unset($_SESSION['domains_detail_domainname']);
31) unset($_SESSION['domains_detail_owner']);
32) unset($_SESSION['domains_detail_admin_c']);
33) unset($_SESSION['domains_detail_detach']);
34) unset($_SESSION['domains_domainreg_owner']);
35) unset($_SESSION['domains_domainreg_admin_c']);
36) unset($_SESSION['domains_domainreg_detach']);
37) unset($_SESSION['domains_domainreg_domainname']);
38) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

39) title("Domains");
bernd webinterface => /webinterface

bernd authored 17 years ago

40) 
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

41) output('<p>In Ihrem Account werden die folgenden Domains verwaltet:</p>');
42) 
43) output('<div class="domain-list">');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

44) foreach ($user_domains as $domain) {
45)     $status = 'regular';
46)     $locked = '';
47)     $mailserver_lock = '';
48)     if ($domain->mail != 'none' && $domain->mailserver_lock == 1) {
49)         $locked = 'locked';
50)         $mailserver_lock = '<br><strong>Mail-Verarbeitung eingeschränkt!</strong>'.footnote('Diese Domain ist extern registriert und wurde noch nicht bestätigt. Momentan ist daher der Mail-Empfang auf dieser Domain nicht möglich.');
51)     }
52)     $regdate = $domain->reg_date;
53)     if ($domain->status == 'prereg') {
54)         $status = 'prereg';
55)         $regdate = '<em>Registrierung nicht abgeschlossen</em>';
56)     } elseif ($domain->status == 'transferfailed') {
57)         $status = 'pretransfer';
58)         $regdate = '<em>Umzug gescheitert</em>';
59)     } elseif ($domain->status == 'pretransfer') {
60)         $status = 'pretransfer';
61)         $regdate = '<em>Umzug bevorstehend</em>';
62)     } elseif ($domain->provider != 'terions') {
63)         $status = 'external';
64)         $regdate = '<em>Extern registriert</em>';
65)     } elseif ($domain->reg_date == null) {
66)         $status = 'pretransfer';
67)         $regdate = '<em>Umzug bevorstehend</em>';
68)     } else {
69)         $status = 'regular';
70)         $regdate = 'Registriert seit '.$regdate;
71)     }
72)     if ($domain->cancel_date) {
73)         $status = 'cancel-scheduled';
Bernd Wurst Zeige Domain-Wegzug im Text an

Bernd Wurst authored 4 years ago

74)         if ($domain->status == 'transferout') {
75)             $regdate .= '<br />Umgezogen am '.$domain->cancel_date;
76)         } else {
77)             $regdate .= '<br />Gekündigt zum '.$domain->cancel_date;
78)         }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

79)     }
80)     if ($domain->cancel_date && $domain->cancel_date < date('Y-m-d')) {
81)         $status = 'cancelled';
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

82)     }
Bernd Wurst Kennzeichne Domains korrekt...

Bernd Wurst authored 5 years ago

83)     if (isset($_SESSION['customerinfo']['customerno']) && $domain->kunde != $_SESSION['customerinfo']['customerno']) {
84)         $status = 'foreign';
85)         $regdate = '<em>Zuständige Kundennummer: '.$domain->kunde.'</em>';
86)     }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

87) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

88)     $features = [];
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

89)     if ($domain->dns == 1) {
90)         if (dns_in_use($domain->id)) {
91)             $features[] = 'DNS';
92)         }
93)         //if ($domain->autodns == 1)
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

94)     //  $features[] = 'AutoDNS';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

95)     }
96)     $mailman = mailman_subdomains($domain->id);
97)     if (mail_in_use($domain->id)) {
98)         $features[] = 'Mail';
99)     }
100)     if ($mailman) {
101)         $features[] = 'Mailinglisten';
102)     }
103)     if (web_in_use($domain->id)) {
104)         $features[] = 'Web';
105)     }
106)     if ($domain->jabber == 1) {
107)         $features[] = 'Jabber';
108)     }
109) 
110)     $features = implode(', ', $features);
111)     if (! $features) {
112)         $features = '<em>unbenutzt</em>';
113)     }
114)     $punycode = $domain->punycode;
115)     if ($domain->is_idn) {
116)         $punycode = "<br/><span class=\"punycode\">($punycode)</span>";
117)     } else {
118)         $punycode = '';
119)     }
120)     $domainname = "{$domain->fqdn}{$punycode}";
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

121)     $domainname = internal_link('detail', $domainname, 'id='.$domain->id);
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

122)     output("  <div class=\"domain-item {$status} {$locked}\"><p class=\"domainname\">{$domainname}</p><p class=\"regdate\">{$regdate}</p><p class=\"domain-usage\">Verwendung: {$features}{$mailserver_lock}</p></div>\n");
bernd webinterface => /webinterface

bernd authored 17 years ago

123) }
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

124) output('</div>');
bernd webinterface => /webinterface

bernd authored 17 years ago

125) output("<br />");
Bernd Wurst Blende Aktionen aus, wenn d...

Bernd Wurst authored 6 years ago

126) 
127) if (have_role(ROLE_CUSTOMER) && config('http.net-apikey')) {
Bernd Wurst Text geändert für DOmain hi...

Bernd Wurst authored 6 years ago

128)     addnew('adddomain', 'Neue Domain bestellen oder externe Domain hinzufügen');