summaryrefslogtreecommitdiff
path: root/src/views/pages/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/pages/auth')
-rw-r--r--src/views/pages/auth/badrequest.html.php11
-rw-r--r--src/views/pages/auth/index.html.php12
-rw-r--r--src/views/pages/auth/login.html.php49
-rw-r--r--src/views/pages/auth/logout.html.php6
4 files changed, 0 insertions, 78 deletions
diff --git a/src/views/pages/auth/badrequest.html.php b/src/views/pages/auth/badrequest.html.php
deleted file mode 100644
index c1fe726..0000000
--- a/src/views/pages/auth/badrequest.html.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php global $VARS;
-$t = $VARS['template'];
-
-$t->status('400 Bad Request');
-$t->header('Authentication');
-$t->paragraph('The recieved POST request was malformed/invalid. '.
- 'If you got here from a link, this is a bug; '.
- 'Let the admin know.'.
- 'If you got here from outside, then the API is being '.
- 'used incorrectly.');
-$t->footer();
diff --git a/src/views/pages/auth/index.html.php b/src/views/pages/auth/index.html.php
deleted file mode 100644
index ac80140..0000000
--- a/src/views/pages/auth/index.html.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php global $VARS;
-$t = $VARS['template'];
-$username = $VARS['username'];
-
-$t->header('Authentication');
-
-$t->openTag('div',array('class'=>'login'));
-$t->text("Logged in as ".htmlentities($username).'.');
-$t->logout_button('Logout');
-$t->closeTag('div');
-
-$t->footer(); \ No newline at end of file
diff --git a/src/views/pages/auth/login.html.php b/src/views/pages/auth/login.html.php
deleted file mode 100644
index a246a9e..0000000
--- a/src/views/pages/auth/login.html.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php global $VARS;
-$t = $VARS['template'];
-$username = $VARS['username'];
-$password = $VARS['password'];
-
-$t->header('Authentication');
-
-$t->openTag('form',array('action'=>$t->url('auth'), 'method'=>"post"));
-$t->openFieldset('Login');
-switch ($VARS['login_code']) {
-case -1: break;
-case 0:
- $t->inputP('Successfully logged in as '.
- htmlentities($username).'.');
- if (isset($VARS['url'])) {
- $url = htmlentities($VARS['url']);
- $t->inputP($t->link($url,
- 'Return to the page you were on.',
- true));
- }
- $t->closeFieldset();
- $t->closeTag('form');
- return;
- break;
-case 1:
- $t->inputP("Password does not match username.",
- array('class'=>'error'));
- break;
-case 2:
- $t->inputP("Username <q>$username</q> does not exist.");
- $username = '';
- break;
-}
-$t->inputText( 'username', 'Username:', '', $username);
-$t->inputPassword('password', 'Password:', '', $password);
-$t->openTag('li');
-$t->tag('input', array('type'=>'submit', 'value'=>'Login'));
-$t->closeTag('li');
-$t->closeFieldset();
-$t->tag('input', array('type'=>'hidden',
- 'name'=>'action',
- 'value'=>'login'));
-if (isset($VARS['url'])) {
- $url = htmlentities($VARS['url']);
- $t->tag('input', array('type'=>'hidden',
- 'name'=>'url',
- 'value'=>$url));
-}
-$t->closeTag('form');
diff --git a/src/views/pages/auth/logout.html.php b/src/views/pages/auth/logout.html.php
deleted file mode 100644
index 2d00998..0000000
--- a/src/views/pages/auth/logout.html.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php global $VARS;
-$t = $VARS['template'];
-
-$t->header('Authentication');
-$t->paragraph('Logged out');
-$t->footer();