summaryrefslogtreecommitdiffstats
path: root/pages/content/Login.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/content/Login.xml')
-rw-r--r--pages/content/Login.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/content/Login.xml b/pages/content/Login.xml
index 6bbaf7c..4e21b3f 100644
--- a/pages/content/Login.xml
+++ b/pages/content/Login.xml
@@ -10,9 +10,9 @@
<code>
<![CDATA[
<?PHP
+ Uses('user', 'links', 'message', 'util');
+
if($_POST['name'] && $_POST['password'] && $_POST['page']) {
- Uses('user', 'links', 'message', 'util');
-
if($GLOBALS['user']->Login(Unquote($_POST['name']), Unquote($_POST['password']))) {
header('Location: ' . $GLOBALS['links']->GetNeonLink($_POST['page'], null, false));
exit();