c208bd906b3991555db11b9229846c4601ca408c
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) 
5) Written 2008-2012 by schokokeks.org Hosting, namely
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) 
19) require_once('session/start.php');
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 Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 17 years ago

32) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

33) output('<p>In Ihrem Account werden die folgenden Domains verwaltet:</p>
bernd webinterface => /webinterface

bernd authored 17 years ago

34) <table>
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

35) <tr><th>Domainname</th><th>Status</th><th>Funktionen</th></tr>
bernd webinterface => /webinterface

bernd authored 17 years ago

36) ');
37) foreach ($user_domains as $domain)
38) {
bernd Zeige Reg-Status der Domain...

bernd authored 15 years ago

39)   $regdate = $domain->reg_date;
40)   if ($domain->provider != 'terions')
41)     $regdate = '<em>Extern registriert</em>';
42)   elseif ($domain->reg_date == NULL)
43)     $regdate = '<em>Umzug bevorstehend</em>';
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

44)   else
45)     $regdate = 'Registriert seit '.$regdate;
46) 
47)   if ($domain->cancel_date) {
48)     $regdate .= '<br />Gekündigt zum '.$domain->cancel_date;
49)   }
50) 
51)   $features = array();
52)   if ($domain->dns == 1) {
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

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

bernd authored 14 years ago

55)     //if ($domain->autodns == 1)
56)     //  $features[] = 'AutoDNS';
57)   }
58)   $mailman = mailman_subdomains($domain->id);
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

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

bernd authored 14 years ago

60)     $features[] = 'Mail';
61)   if ($mailman)
62)     $features[] = 'Mailinglisten';
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

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

bernd authored 14 years ago

64)     $features[] = 'Web';
65)   if ($domain->jabber == 1)
66)     $features[] = 'Jabber';
67) 
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

68)   $features = implode(', ', $features);
69)   if (! $features)
70)     $features = '<em>unbenutzt</em>';
71)   output("  <tr><td>{$domain->fqdn}</td><td>{$regdate}</td><td>{$features}</td></tr>\n");