git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
defbfa5
Branches
Tags
master
ticket
webinterface.git
modules
domains
domains.php
webinterface => /webinterface
bernd
commited
defbfa5
at 2007-03-27 07:40:51
domains.php
Blame
History
Raw
<?php require_once('inc/debug.php'); require_once('session/start.php'); require_once('domains.php'); require_role(array(ROLE_SYSTEMUSER, ROLE_CUSTOMER)); switch ($_SESSION['role']) { case ROLE_SYSTEMUSER: $user_domains = get_domain_names($_SESSION['userinfo']['customerno'], $_SESSION['userinfo']['uid']); $info = 'userinfo'; break; case ROLE_CUSTOMER: $user_domains = get_domain_names($_SESSION['customerinfo']['customerno']); break; default: $info = NULL; break; } $title = "Domainüberblick"; output('<h3>Domains</h3> <p>In Ihrem Account werden die folgenden Domains verwaltet:</p> <table> <tr><th>Domainname</th><th>Reg-Datum</th><th>Kündigungsdatum</th></tr> '); foreach ($user_domains as $domain) { $canc = $domain['cancel_date']; output(" <tr><td><a href=\"http://www.{$domain['domainname']}\">{$domain['domainname']}</a></td><td>{$domain['reg_date']}</td><td>{$canc}</td></tr>\n"); } output('</table>'); output("<br />"); ?>