040e631d724ffdd59780f12b16bf961ead66b2da
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 17 years ago

7) require_once('class/domain.php');
bernd webinterface => /webinterface

bernd authored 17 years ago

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

bernd authored 17 years ago

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

bernd authored 17 years ago

15) 
16) $title = "Domainüberblick";
17) 
18) output('<h3>Domains</h3>
19) <p>In Ihrem Account werden die folgenden Domains verwaltet:</p>
20) <table>
bernd Entities repariert

bernd authored 17 years ago

21) <tr><th>Domainname</th><th>Reg-Datum</th><th>Kündigungsdatum</th><th>&#160;</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>';
30)   output("  <tr><td>{$domain->fqdn}</td><td>{$regdate}</td><td>{$domain->cancel_date}</td><td><a href=\"http://www.{$domain->fqdn}\">WWW-Seite aufrufen</a></td></tr>\n");