7da094bcb55a7e03bb016cadfabbcbe13f54d6f0
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>
21) <tr><th>Domainname</th><th>Reg-Datum</th><th>Kündigungsdatum</th></tr>
22) ');
23) foreach ($user_domains as $domain)
24) {
bernd Domain-Klasse benutzen

bernd authored 17 years ago

25)   output("  <tr><td><a href=\"http://www.{$domain->fqdn}\">{$domain->fqdn}</a></td><td>{$domain->reg_date}</td><td>{$domain->cancel_date}</td></tr>\n");