f2550e90ad37215b9d890155806986336bf0170c
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
3) require_once('inc/debug.php');
4) 
5) require_once('session/start.php');
6) 
bernd Domain-Klasse benutzen

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 17 years ago

9) 
10) require_role(array(ROLE_SYSTEMUSER, ROLE_CUSTOMER));
11) 
bernd * Initialisierung der Sessi...

bernd authored 16 years ago

12) if ($_SESSION['role'] & ROLE_CUSTOMER)
13)   $user_domains = get_domain_list($_SESSION['customerinfo']['customerno']);
14) else
15)   $user_domains = get_domain_list($_SESSION['userinfo']['customerno'], $_SESSION['userinfo']['uid']);
bernd webinterface => /webinterface

bernd authored 17 years ago

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

bernd authored 13 years ago

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

bernd authored 17 years ago

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

bernd authored 13 years ago

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

bernd authored 17 years ago

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

bernd authored 14 years ago

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

bernd authored 17 years ago

22) ');
23) foreach ($user_domains as $domain)
24) {
bernd Zeige Reg-Status der Domain...

bernd authored 15 years ago

25)   $regdate = $domain->reg_date;
26)   if ($domain->provider != 'terions')
27)     $regdate = '<em>Extern registriert</em>';
28)   elseif ($domain->reg_date == NULL)
29)     $regdate = '<em>Umzug bevorstehend</em>';
bernd Bessere Darstellung des Dom...

bernd authored 14 years ago

30)   else
31)     $regdate = 'Registriert seit '.$regdate;
32) 
33)   if ($domain->cancel_date) {
34)     $regdate .= '<br />Gekündigt zum '.$domain->cancel_date;
35)   }
36) 
37)   $features = array();
38)   if ($domain->dns == 1) {
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

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

bernd authored 14 years ago

41)     //if ($domain->autodns == 1)
42)     //  $features[] = 'AutoDNS';
43)   }
44)   $mailman = mailman_subdomains($domain->id);
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

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

bernd authored 14 years ago

46)     $features[] = 'Mail';
47)   if ($mailman)
48)     $features[] = 'Mailinglisten';
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

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

bernd authored 14 years ago

50)     $features[] = 'Web';
51)   if ($domain->jabber == 1)
52)     $features[] = 'Jabber';
53) 
bernd Wirkliche nutzung der Domai...

bernd authored 14 years ago

54)   $features = implode(', ', $features);
55)   if (! $features)
56)     $features = '<em>unbenutzt</em>';
57)   output("  <tr><td>{$domain->fqdn}</td><td>{$regdate}</td><td>{$features}</td></tr>\n");