Skip to content

Commit

Permalink
#1039 Add login form to Backstage
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Jan 18, 2015
1 parent c274003 commit 78c056f
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
35 changes: 34 additions & 1 deletion backstage/css/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright Studio 384 and Luna Group
* Bootstrap Template: Trent
* Version: 0.2
* Version: 0.3
* Based on: Trent v1.3 (http://studio384.be/trent.php)
* Since: 0.0.40.2900
* Bootstrap: 3.3.1
Expand Down Expand Up @@ -642,4 +642,37 @@ h3.panel-title {

.accent-black {
background-color: #444 !important;
}

/* Forms */
.well {
background-color: #fff !important;
border: none !important;
padding: 0;
}

.well.form-box {
width: 300px;
margin: 0 auto;
}

.well form {
margin: 15px;
padding-bottom: 15px;
}

.well.form-box label {
font-weight: 500;
}

.well .form-title {
padding: 25px 15px;
font-size: 30px;
background-color: #1f62b0;
color: #fff;
}

.well.form-box input[type="text"] {
box-shadow: none;
border-color: #ddd;
}
33 changes: 33 additions & 0 deletions backstage/login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

define('FORUM_ROOT', '../');
require FORUM_ROOT.'include/common.php';

if ($luna_user['is_admmod'])
header("Location: index.php");

define('FORUM_ACTIVE_PAGE', 'admin');
require 'header.php';

?>
<div class="well form-box">
<h3 class="form-title">Login</h3>
<form id="login" method="post" action="../login.php?action=in" onsubmit="return">
<input type="hidden" name="form_sent" value="1" />
<div class="form-group">
<input class="form-control top-form" type="text" name="req_username" maxlength="25" tabindex="1" placeholder="<?php echo $lang['Username'] ?>" />
</div>
<div class="form-group">
<input class="form-control bottom-form" type="password" name="req_password" tabindex="2" placeholder="<?php echo $lang['Password'] ?>" />
</div>
<div class="form-group">
<label><input type="checkbox" name="save_pass" value="1" tabindex="3" checked /> <?php echo $lang['Remember me'] ?></label>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary btn-block" value="Login" />
</div>
</form>
</div>
<?php

require 'footer.php';
2 changes: 1 addition & 1 deletion include/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Version {
const FORUM_VERSION = '0.3-dev';

// The Luna Core version
const FORUM_CORE_VERSION = '0.3.3664';
const FORUM_CORE_VERSION = '0.3.3666';

// The database version number, every change in the database requires this number to go one up
const FORUM_DB_VERSION = '87.14';
Expand Down

0 comments on commit 78c056f

Please sign in to comment.