summaryrefslogtreecommitdiffstats
path: root/pages/Login.n.xml
blob: c6c50b3a3eeb539f022c8ef898fec8f58b77c3c2 (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
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8" ?>
<page>
  <info>
    <name>Login</name>
    <template>phpexec</template>
    <access>01</access>
    <type>n</type>
  </info>
  <data>
    <code>
      <![CDATA[
<?PHP
  if(!$GLOBALS['user']->uid) {
    require_once('code/user.inc.php');
    require_once('code/links.inc.php');
    require_once('code/util.inc.php');
    
    echo '<form action="';
    echo $GLOBALS['links']->GetNeonLink('Login');
    echo '" method="post">';
  ?>
  <div class="login">
    User:<br />
    <input type="text" name="name" /><br />
    Passwort:<br />
    <input type="password" name="password" /><br />
    <input type="hidden" name="page" value="<?PHP
      if($_POST['page']) echo Unquote($_POST['page']);
      else echo $GLOBALS['page'];
    ?>" />
    <div class="login_submit">
      <input type="submit" value="Login" />

    </div>
  </div>
</form>
<?PHP
  }
?>
      ]]>
    </code>
  </data>
</page>