summaryrefslogtreecommitdiffstats
path: root/pages/Users/Group.c.xml
blob: 3a7f2161db50ebd9a6d19c6755c0ff1fe6550ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8" ?>
<page>
  <info>
    <name>Users:Group</name>
    <template>phpexec</template>
    <access>00</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>