diff options
Diffstat (limited to 'pages/Users:Group.xml')
-rw-r--r-- | pages/Users:Group.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pages/Users:Group.xml b/pages/Users:Group.xml new file mode 100644 index 0000000..de06d63 --- /dev/null +++ b/pages/Users:Group.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<page> + <info> + <name>Users:Group</name> + <template>phpexec</template> + <access>0:0</access> + </info> + <data> + <code> + <![CDATA[ + <?PHP + Uses('user', 'links'); + + + 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> |