summaryrefslogtreecommitdiffstats
path: root/pages/Users
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-18 01:17:05 +0200
committerneoraider <devnull@localhost>2006-04-18 01:17:05 +0200
commite7359ccf2db89b1feec820d1c97583f720ae0d7a (patch)
tree4321a817497f064457c184364a9a2745bf5bd629 /pages/Users
parent1a78cfbd3315897aa84b7a5d6735d54d94a590a1 (diff)
downloadneon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.tar
neon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.zip
Seiten verschoben.
Diffstat (limited to 'pages/Users')
-rw-r--r--pages/Users/Delete.c.xml32
-rw-r--r--pages/Users/Group.c.xml32
-rw-r--r--pages/Users/Handle.c.xml132
-rw-r--r--pages/Users/New.c.xml35
-rw-r--r--pages/Users/Password.c.xml35
-rw-r--r--pages/Users/Rename.c.xml33
6 files changed, 0 insertions, 299 deletions
diff --git a/pages/Users/Delete.c.xml b/pages/Users/Delete.c.xml
deleted file mode 100644
index 8c32935..0000000
--- a/pages/Users/Delete.c.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Users:Delete</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
- <?PHP
- require_once('code/user.inc.php');
- require_once('code/links.inc.php');
-
-
- if($_POST['back']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- }
-
- if(!$_POST['id']) exit();
-
- $GLOBALS['user']->Delete($_POST['id']);
-
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- ?>
- ]]>
- </code>
- </data>
-</page>
diff --git a/pages/Users/Group.c.xml b/pages/Users/Group.c.xml
deleted file mode 100644
index b48e369..0000000
--- a/pages/Users/Group.c.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Users:Group</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
- <?PHP
- require_once('code/user.inc.php');
- require_once('code/links.inc.php');
-
-
- if($_POST['back']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- }
-
- if(!isset($_POST['id']) || !isset($_POST['gid'])) exit();
-
- $GLOBALS['user']->ChangeGroup($_POST['id'], $_POST['gid']);
-
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- ?>
- ]]>
- </code>
- </data>
-</page>
diff --git a/pages/Users/Handle.c.xml b/pages/Users/Handle.c.xml
deleted file mode 100644
index abed354..0000000
--- a/pages/Users/Handle.c.xml
+++ /dev/null
@@ -1,132 +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
- require_once('code/db.inc.php');
- require_once('code/links.inc.php');
- require_once('code/user.inc.php');
-
- if(isset($_POST['new'])) {
- $title = 'Neuer Benutzer';
- ?>
- <h2>Neuer Benutzer</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>
- Gruppe:<br />
- <select name="gid" size="15" class="grouplist spaced-bottom">
- <option value="0">Administrator</option>
- <?PHP
- $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY name');
-
- while($group = $res->FetchRow()) {
- echo '<option value="' . $group[0] . '">' . strtr($group[1], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;')) . '</option>';
- }
- ?>
- </select><br />
- Passwort:<br />
- <input type="password" class="spaced-bottom" name="password" size="30" /><br />
- Bestätigen:<br />
- <input type="password" class="spaced-bottom" name="password2" size="30" /><br />
- <input type="submit" value="Neu" />
- <input type="submit" name="back" value="Zurück" />
- </form>
- <?PHP
- }
- elseif(isset($_POST['group'])) {
- if($_POST['id']) {
- $name = strtr($GLOBALS['user']->GetName($_POST['id']), array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
- $gid = $GLOBALS['user']->GetGid($_POST['id']);
-
- $title = 'Gruppe von \'' . $name . '\' ändern';
-
- echo '<h2>Gruppe von \'' . $name . '\' ändern</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Group') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Neue Gruppe:<br />';
-
- echo '<select name="gid" size="15" class="grouplist spaced-bottom">';
-
- $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY name');
- $groups = $res->GetArray();
- array_unshift($groups, array(0, 'Administrator'));
-
- foreach($groups as $group) {
- echo '<option value="' . $group[0] . '"';
- if($group[0] == $gid) echo ' selected="selected"';
- echo '>' . strtr($group[1], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;')) . '</option>';
- }
-
- echo '</select><br />';
-
- echo '<input type="submit" value="Ändern" /> ';
- echo '<input type="submit" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['password'])) {
- if($_POST['id']) {
- $name = strtr($GLOBALS['user']->GetName($_POST['id']), array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
-
- $title = 'Passwort von \'' . $name . '\' ändern';
-
- echo '<h2>Passwort von \'' . $name . '\' ändern</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Password') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Neues Passwort:<br />';
- echo '<input type="password" name="password" class="spaced-bottom" size="30" /><br />';
- echo 'Bestätigen:<br />';
- echo '<input type="password" name="password2" class="spaced-bottom" size="30" /><br />';
- echo '<input type="submit" value="Ändern" /> ';
- echo '<input type="submit" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['rename'])) {
- if($_POST['id']) {
- $name = strtr($GLOBALS['user']->GetName($_POST['id']), array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
-
- $title = '\'' . $name . '\' umbenennen';
-
- echo '<h2>\'' . $name . '\' umbenennen</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Rename') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Neuer Name: ';
- echo '<input type="text" name="name" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="Umbenennen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['delete'])) {
- if($_POST['id']) {
- $name = strtr($GLOBALS['user']->GetName($_POST['id']), array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
-
- $title = '\'' . $name . '\' löschen';
-
- echo '<h2>\'' . $name . '\' löschen</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Delete') . '">';
- echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Wollen Sie den Benutzer \'' . $name . '\' wirklich löschen?<br />';
- echo '<input type="submit" class="spaced-top" value="Löschen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
- ?>
- ]]>
- </code>
- </data>
-</page>
diff --git a/pages/Users/New.c.xml b/pages/Users/New.c.xml
deleted file mode 100644
index ac6bed9..0000000
--- a/pages/Users/New.c.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Users:New</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
- <?PHP
- require_once('code/user.inc.php');
- require_once('code/links.inc.php');
- require_once('code/util.inc.php');
-
-
- if($_POST['back']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- }
-
- if(!$_POST['name'] || !isset($_POST['gid']) || !$_POST['password'] || !$_POST['password2']) exit();
-
- if($_POST['password'] != $_POST['password2']) exit();
-
- $GLOBALS['user']->Add(Unquote($_POST['name']), $_POST['gid'], Unquote($_POST['password']));
-
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- ?>
- ]]>
- </code>
- </data>
-</page>
diff --git a/pages/Users/Password.c.xml b/pages/Users/Password.c.xml
deleted file mode 100644
index c08cd02..0000000
--- a/pages/Users/Password.c.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Users:Password</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
- <?PHP
- require_once('code/user.inc.php');
- require_once('code/links.inc.php');
- require_once('code/util.inc.php');
-
-
- if($_POST['back']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- }
-
- if(!$_POST['id'] || !$_POST['password'] || !$_POST['password2']) exit();
-
- if($_POST['password'] != $_POST['password2']) exit();
-
- $GLOBALS['user']->ChangePassword($_POST['id'], Unquote($_POST['password']));
-
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- ?>
- ]]>
- </code>
- </data>
-</page>
diff --git a/pages/Users/Rename.c.xml b/pages/Users/Rename.c.xml
deleted file mode 100644
index def6aa4..0000000
--- a/pages/Users/Rename.c.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Users:Rename</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
- <?PHP
- require_once('code/user.inc.php');
- require_once('code/links.inc.php');
- require_once('code/util.inc.php');
-
-
- if($_POST['back']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- }
-
- if(!$_POST['id'] || !$_POST['name']) exit();
-
- $GLOBALS['user']->Rename($_POST['id'], Unquote($_POST['name']));
-
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
- exit();
- ?>
- ]]>
- </code>
- </data>
-</page>