3a072b88368ae6495a3fa9a8a4ff8e8ae87d6101
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) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 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) 
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) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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 webinterface => /webinterface

bernd authored 17 years ago

16) 
17) require_once('inc/debug.php');
18) 
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

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

bernd authored 17 years ago

20) 
bernd Domain-Klasse benutzen

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 17 years ago

23) 
24) require_role(array(ROLE_SYSTEMUSER, ROLE_CUSTOMER));
25) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

26) if (have_role(ROLE_CUSTOMER)) {
27)     $user_domains = get_domain_list($_SESSION['customerinfo']['customerno']);
28) } else {
29)     $user_domains = get_domain_list($_SESSION['userinfo']['customerno'], $_SESSION['userinfo']['uid']);
30) }
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Bernd Wurst authored 6 years ago

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

bernd authored 13 years ago

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

bernd authored 17 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno authored 5 years ago

47) foreach ($user_domains as $domain) {
48)     $status = 'regular';
49)     $locked = '';
50)     $mailserver_lock = '';
51)     if ($domain->mail != 'none' && $domain->mailserver_lock == 1) {
52)         $locked = 'locked';
53)         $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.');
54)     }
55)     $regdate = $domain->reg_date;
56)     if ($domain->status == 'prereg') {
57)         $status = 'prereg';
58)         $regdate = '<em>Registrierung nicht abgeschlossen</em>';
59)     } elseif ($domain->status == 'transferfailed') {
60)         $status = 'pretransfer';
61)         $regdate = '<em>Umzug gescheitert</em>';
62)     } elseif ($domain->status == 'pretransfer') {
63)         $status = 'pretransfer';
64)         $regdate = '<em>Umzug bevorstehend</em>';
65)     } elseif ($domain->provider != 'terions') {
66)         $status = 'external';
67)         $regdate = '<em>Extern registriert</em>';
68)     } elseif ($domain->reg_date == null) {
69)         $status = 'pretransfer';
70)         $regdate = '<em>Umzug bevorstehend</em>';
71)     } else {
72)         $status = 'regular';
73)         $regdate = 'Registriert seit '.$regdate;
74)     }
75)     if ($domain->cancel_date) {
76)         $status = 'cancel-scheduled';
77)         $regdate .= '<br />Gekündigt zum '.$domain->cancel_date;
78)     }
79)     if ($domain->cancel_date && $domain->cancel_date < date('Y-m-d')) {
80)         $status = 'cancelled';
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

81)     }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

82) 
83)     $features = array();
84)     if ($domain->dns == 1) {
85)         if (dns_in_use($domain->id)) {
86)             $features[] = 'DNS';
87)         }
88)         //if ($domain->autodns == 1)
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

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

Hanno authored 5 years ago

90)     }
91)     $mailman = mailman_subdomains($domain->id);
92)     if (mail_in_use($domain->id)) {
93)         $features[] = 'Mail';
94)     }
95)     if ($mailman) {
96)         $features[] = 'Mailinglisten';
97)     }
98)     if (web_in_use($domain->id)) {
99)         $features[] = 'Web';
100)     }
101)     if ($domain->jabber == 1) {
102)         $features[] = 'Jabber';
103)     }
104) 
105)     $features = implode(', ', $features);
106)     if (! $features) {
107)         $features = '<em>unbenutzt</em>';
108)     }
109)     $punycode = $domain->punycode;
110)     if ($domain->is_idn) {
111)         $punycode = "<br/><span class=\"punycode\">($punycode)</span>";
112)     } else {
113)         $punycode = '';
114)     }
115)     $domainname = "{$domain->fqdn}{$punycode}";
116)     if (have_role(ROLE_CUSTOMER)) {
117)         $domainname = internal_link('detail', $domainname, 'id='.$domain->id);
118)     }
119)     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

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

Bernd Wurst authored 6 years ago

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

bernd authored 17 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 5 years ago

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