33986238e23400ebad6b51d626f4f765df94c6d2
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 Umfangreiche Code-Aufräumar...

bernd authored 17 years ago

21) <tr><th>Domainname</th><th>Reg-Datum</th><th>Kündigungsdatum</th><th>&nbsp;</th></tr>
bernd webinterface => /webinterface

bernd authored 17 years ago

22) ');
23) foreach ($user_domains as $domain)
24) {
bernd Umfangreiche Code-Aufräumar...

bernd authored 17 years ago

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