summaryrefslogtreecommitdiffstats
path: root/pages/content/Users:Handle.xml
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
committerneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
commit543336aef16562369c01992817f58e17144c9cad (patch)
treed49cd8549a836c740df7096ddcf7788ed7920c37 /pages/content/Users:Handle.xml
parent93e1133ee88b03e7cae7318cb19761e698e57b86 (diff)
downloadneon-543336aef16562369c01992817f58e17144c9cad.tar
neon-543336aef16562369c01992817f58e17144c9cad.zip
Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt.
Diffstat (limited to 'pages/content/Users:Handle.xml')
-rw-r--r--pages/content/Users:Handle.xml129
1 files changed, 0 insertions, 129 deletions
diff --git a/pages/content/Users:Handle.xml b/pages/content/Users:Handle.xml
deleted file mode 100644
index 9e949c1..0000000
--- a/pages/content/Users:Handle.xml
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Users:Handle</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
- <?PHP
- Uses('links', 'user');
-
-
- if(isset($_POST['new'])) {
- $title = '{{New user}}';
- ?>
- <h2>{{New user}}</h2>
-
- <form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Users:New'); ?>">
- <div class="spaced-bottom">Name: <input type="text" id="username" name="name" size="70" /></div>
- {{Group}}:<br />
- <select name="gid" size="15" class="grouplist spaced-bottom">
- <?PHP
- $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY id');
-
- while($group = $res->FetchRow()) {
- echo '<option value="' . $group[0] . '">' . htmlspecialchars($group[1]) . '</option>';
- }
- ?>
- </select><br />
- {{Password}}:<br />
- <input type="password" class="spaced-bottom" name="password" size="30" /><br />
- {{Confirm}}:<br />
- <input type="password" class="spaced-bottom" name="password2" size="30" /><br />
- <input type="submit" value="{{New}}" />
- <input type="submit" name="back" value="{{Back}}" />
- </form>
- <?PHP
- }
- elseif(isset($_POST['group'])) {
- if($_POST['id']) {
- $name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
- $gid = $GLOBALS['user']->GetGid($_POST['id']);
-
- $title = '{{Change group of \'' . $name . '\'}}';
-
- echo '<h2>{{Change group of \'' . $name . '\'}}</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Group') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo '{{New group}}:<br />';
-
- echo '<select name="gid" size="15" class="grouplist spaced-bottom">';
-
- $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY id');
- $groups = $res->GetArray();
-
- foreach($groups as $group) {
- echo '<option value="' . $group[0] . '"';
- if($group[0] == $gid) echo ' selected="selected"';
- echo '>' . htmlspecialchars($group[1]) . '</option>';
- }
-
- echo '</select><br />';
-
- echo '<input type="submit" value="{{Change}}" /> ';
- echo '<input type="submit" name="back" value="{{Back}}" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['password'])) {
- if($_POST['id']) {
- $name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
-
- $title = '{{Change password of \'' . $name . '\'}}';
-
- echo '<h2>{{Change password of \'' . $name . '\'}}</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Password') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo '{{New password}}:<br />';
- echo '<input type="password" name="password" class="spaced-bottom" size="30" /><br />';
- echo '{{Confirm}}:<br />';
- echo '<input type="password" name="password2" class="spaced-bottom" size="30" /><br />';
- echo '<input type="submit" value="{{Change}}" /> ';
- echo '<input type="submit" name="back" value="{{Back}}" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['rename'])) {
- if($_POST['id']) {
- $name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
-
- $title = '{{Rename \'' . $name . '\'}}';
-
- echo '<h2>{{Rename \'' . $name . '\'}}</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Rename') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo '{{New name}}: ';
- echo '<input type="text" name="name" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="{{Rename}}" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['delete'])) {
- if($_POST['id']) {
- $name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
-
- $title = '{{Delete \'' . $name . '\'}}';
-
- echo '<h2>{{Delete \'' . $name . '\'}}</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Delete') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo '{{Do you really want to delete the user \'' . $name . '\'?}}<br />';
- echo '<input type="submit" class="spaced-top" value="{{Delete}}" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
- echo '</form>';
- }
- }
- ?>
- ]]>
- </code>
- </data>
-</page>