37ffdb6ca409b1c4924bd467fdf544f9f23c7bf1
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) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
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) 
bernd * Initialisierung der Sessi...

bernd authored 16 years ago

26) if ($_SESSION['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']);
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Bernd Wurst authored 6 years ago

31) $useraccounts = array();
32) if ($_SESSION['role'] & ROLE_CUSTOMER) {
33)     $useraccounts = list_useraccounts();
34) }
35) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 17 years ago

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

Bernd Wurst authored 6 years ago

38) output('<p>In Ihrem Account werden die folgenden Domains verwaltet:</p>');
39) 
40) output('<div class="domain-list">');
bernd webinterface => /webinterface

bernd authored 17 years ago

41) foreach ($user_domains as $domain)
42) {
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

43)   $status = 'regular';
44)   $locked = '';
Bernd Wurst verify-Funktion um via DNS-...

Bernd Wurst authored 6 years ago

45)   $mailserver_lock = '';
Bernd Wurst Wenn die E-Mail-Funktion ko...

Bernd Wurst authored 6 years ago

46)   if ($domain->mail != 'none' && $domain->mailserver_lock == 1) {
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

47)       $locked = 'locked';
Bernd Wurst verify-Funktion um via DNS-...

Bernd Wurst authored 6 years ago

48)       $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.');
49)   }
bernd Zeige Reg-Status der Domain...

bernd authored 15 years ago

50)   $regdate = $domain->reg_date;
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

51)   if ($domain->provider != 'terions') {
52)     $status = 'external';
bernd Zeige Reg-Status der Domain...

bernd authored 15 years ago

53)     $regdate = '<em>Extern registriert</em>';
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

54)   } elseif ($domain->reg_date == NULL) {
55)     $status = 'pretransfer';
bernd Zeige Reg-Status der Domain...

bernd authored 15 years ago

56)     $regdate = '<em>Umzug bevorstehend</em>';
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

57)   } else {
58)       $status = 'regular';
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

59)     $regdate = 'Registriert seit '.$regdate;
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

60)     }
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

61)   if ($domain->cancel_date) {
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

62)       $status = 'cancel-scheduled';
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

63)     $regdate .= '<br />Gekündigt zum '.$domain->cancel_date;
64)   }
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

65)   if ($domain->cancel_date && $domain->cancel_date < date('Y-m-d')) {
66)       $status = 'cancelled';
67)   }
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

68) 
69)   $features = array();
70)   if ($domain->dns == 1) {
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

71)     if (dns_in_use($domain->id))
72)       $features[] = 'DNS';
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

73)     //if ($domain->autodns == 1)
74)     //  $features[] = 'AutoDNS';
75)   }
76)   $mailman = mailman_subdomains($domain->id);
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

77)   if (mail_in_use($domain->id))
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

78)     $features[] = 'Mail';
79)   if ($mailman)
80)     $features[] = 'Mailinglisten';
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

81)   if (web_in_use($domain->id))
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

82)     $features[] = 'Web';
83)   if ($domain->jabber == 1)
84)     $features[] = 'Jabber';
85) 
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

86)   $features = implode(', ', $features);
87)   if (! $features)
88)     $features = '<em>unbenutzt</em>';
Bernd Wurst Punycode-Konvertierung find...

Bernd Wurst authored 6 years ago

89)   $punycode = $domain->punycode;
90)   if ($domain->is_idn) {
Bernd Wurst Domain-Übersicht als Kachel...

Bernd Wurst authored 6 years ago

91)     $punycode = "<br/><span class=\"punycode\">($punycode)</span>";
Bernd Wurst Zeige ASCII-Form bei IDN Do...

Bernd Wurst authored 6 years ago

92)   } else {
93)     $punycode = '';
94)   }
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

95)   $domainname = "{$domain->fqdn}{$punycode}";
Bernd Wurst Ermögliche kein Domain-Upda...

Bernd Wurst authored 6 years ago

96)   if ((!$domain->cancel_date || $domain->cancel_date > date('Y-m-d')) && have_module('contacts') && $_SESSION['role'] & ROLE_CUSTOMER && update_possible($domain->id)) {
Bernd Wurst Aktualisiere Domain- und In...

Bernd Wurst authored 6 years ago

97)       $domainname = internal_link('update', $domainname, 'id='.$domain->id);
Bernd Wurst verify-Funktion um via DNS-...

Bernd Wurst authored 6 years ago

98)   } elseif ($_SESSION['role'] & ROLE_CUSTOMER && $domain->mailserver_lock == 1) {
99)       $domainname = internal_link('verify', $domainname, 'id='.$domain->id);
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

101)   $domainuser = '';
102)     if ($_SESSION['role'] & ROLE_CUSTOMER && count($useraccounts) > 1) {
103)         // Mehrere User vorhanden
104)         $username = '';
105)         foreach ($useraccounts as $u) {
106)             if ($u['uid'] == $domain->useraccount) {
107)                 $username = $u['username'];
108)             }
109)         }
110)         if (!$username) {
111)             $username = '<em>unbekannt</em>';
112)         }
113)         $domainuser = '<p class="domain-user">Verfügbar für Benutzer <strong>'.$username.'</strong> '.internal_link('chguser', icon_edit().' Ändern', "id={$domain->id}").'</p>';
114)     }
115)   output("  <div class=\"domain-item {$status} {$locked}\"><p class=\"domainname\">{$domainname}</p><p class=\"regdate\">{$regdate}</p>".$domainuser."<p class=\"domain-usage\">Verwendung: {$features}{$mailserver_lock}</p></div>\n");
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Bernd Wurst authored 6 years ago

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

bernd authored 17 years ago

118) output("<br />");
Bernd Wurst Ermögliche das Hinzufügen e...

Bernd Wurst authored 6 years ago

119) addnew('adddomain', 'Neue Domain bestellen / hinzufügen');