summaryrefslogtreecommitdiffstats
path: root/pages/content/Login.xml
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/content/Login.xml
parent1a78cfbd3315897aa84b7a5d6735d54d94a590a1 (diff)
downloadneon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.tar
neon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.zip
Seiten verschoben.
Diffstat (limited to 'pages/content/Login.xml')
-rw-r--r--pages/content/Login.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/pages/content/Login.xml b/pages/content/Login.xml
new file mode 100644
index 0000000..3f69400
--- /dev/null
+++ b/pages/content/Login.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<page>
+ <info>
+ <name>Login</name>
+ <template>phpexec</template>
+ <access>1:0</access>
+ <type>c</type>
+ </info>
+ <data>
+ <code>
+ <![CDATA[
+<?PHP
+ if($_POST['name'] && $_POST['password'] && $_POST['page']) {
+ require_once('code/user.inc.php');
+ require_once('code/links.inc.php');
+ require_once('code/message.inc.php');
+ require_once('code/util.inc.php');
+
+ if($GLOBALS['user']->Login(Unquote($_POST['name']), Unquote($_POST['password']))) {
+ header('Location: ' . $GLOBALS['links']->GetNeonLink($_POST['page'], null, false));
+ exit();
+ }
+ }
+
+ $title = Message('Error');
+
+ echo '<span class="error">' . Message('LoginError') . '</span>';
+?>
+ ]]>
+ </code>
+ </data>
+</page>