git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
dcee94d
Branches
Tags
master
ticket
webinterface.git
modules
jabber
new_account.php
Neues Jabber-Modul (noch nicht ganz fertig) und Formular-Framework
bernd
commited
dcee94d
at 2007-06-01 16:53:03
new_account.php
Blame
History
Raw
<?php require_once('session/start.php'); require_once('domains.php'); require_once('jabberaccounts.php'); require_role(ROLE_CUSTOMER); $title = "Neues Jabber-Konto erstellen"; DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_r($_POST, true))); $jabberdomains = get_jabberable_domains(); $options = ''; foreach ($jabberdomains as $dom) { $options .= '<option value="'.$dom['id'].'">'.$dom['name'].'</option>'."\n"; } output("<h3>Neuen Jabber-Account erstellen</h3>"); output('<p>Erstellen Sie hier ein neues Jabber-Konto.</p> '.html_form('jabber_new_account', 'save.php', 'action=new', ' <table> <tr><td>Account-Name:</td><td><input type="text" name="local" value="" /> <select name="domain" size="1"> '.$options.' </select></td></tr> <tr><td>Passwort:</td><td><input type="password" name="password" value="" /></td></tr> </table> <br /> <input type="submit" name="submit" value="Anlegen" /> ')); ?>