Adjust branding colors, make pages more suicidal if user isn't logged in
This commit is contained in:
parent
16d9481abd
commit
5f8b9836e7
@ -84,6 +84,7 @@ if (checkLoginServer()) {
|
|||||||
|
|
||||||
<link href="static/css/bootstrap.min.css" rel="stylesheet">
|
<link href="static/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="static/css/font-awesome.min.css" rel="stylesheet">
|
<link href="static/css/font-awesome.min.css" rel="stylesheet">
|
||||||
|
<link href="static/css/material-color.min.css" rel="stylesheet">
|
||||||
<link href="static/css/app.css" rel="stylesheet">
|
<link href="static/css/app.css" rel="stylesheet">
|
||||||
<?php if (RECAPTCHA_ENABLED) { ?>
|
<?php if (RECAPTCHA_ENABLED) { ?>
|
||||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||||
@ -100,7 +101,7 @@ if (checkLoginServer()) {
|
|||||||
<img class="img-responsive banner-image" src="static/img/logo.png" />
|
<img class="img-responsive banner-image" src="static/img/logo.png" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-blue-grey">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><?php lang("sign in"); ?></h3>
|
<h3 class="panel-title"><?php lang("sign in"); ?></h3>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/../required.php';
|
||||||
|
|
||||||
|
redirectifnotloggedin();
|
||||||
|
?>
|
||||||
<h1 class="page-header"><?php lang("edit task") ?></h1>
|
<h1 class="page-header"><?php lang("edit task") ?></h1>
|
||||||
<?php
|
<?php
|
||||||
include_once __DIR__ . "/../lib/userinfo.php";
|
include_once __DIR__ . "/../lib/userinfo.php";
|
||||||
@ -5,7 +10,7 @@ include_once __DIR__ . "/../lib/manage.php";
|
|||||||
|
|
||||||
if (!is_empty($VARS['taskid'])) {
|
if (!is_empty($VARS['taskid'])) {
|
||||||
$taskid = $VARS['taskid'];
|
$taskid = $VARS['taskid'];
|
||||||
|
|
||||||
$managed_uids = getManagedUIDs($_SESSION['uid']);
|
$managed_uids = getManagedUIDs($_SESSION['uid']);
|
||||||
// There needs to be at least one entry otherwise the SQL query craps itself
|
// There needs to be at least one entry otherwise the SQL query craps itself
|
||||||
if (count($managed_uids) < 1) {
|
if (count($managed_uids) < 1) {
|
||||||
@ -23,7 +28,7 @@ if (!is_empty($VARS['taskid'])) {
|
|||||||
],
|
],
|
||||||
"tasks.taskid" => $taskid
|
"tasks.taskid" => $taskid
|
||||||
]]);
|
]]);
|
||||||
|
|
||||||
if (!$allowed) {
|
if (!$allowed) {
|
||||||
header("Location: app.php?page=edittask&msg=task_edit_not_allowed");
|
header("Location: app.php?page=edittask&msg=task_edit_not_allowed");
|
||||||
die(lang("task edit not allowed", false));
|
die(lang("task edit not allowed", false));
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/../required.php';
|
||||||
|
|
||||||
|
redirectifnotloggedin();
|
||||||
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
||||||
<?php
|
<?php
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/../required.php';
|
||||||
|
|
||||||
|
redirectifnotloggedin();
|
||||||
|
?>
|
||||||
<h2 class="page-header">
|
<h2 class="page-header">
|
||||||
<?php lang("messages") ?>
|
<?php lang("messages") ?>
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/../required.php';
|
||||||
|
|
||||||
|
redirectifnotloggedin();
|
||||||
|
?>
|
||||||
<h2 class="page-header"><?php lang("my tasks") ?></h2>
|
<h2 class="page-header"><?php lang("my tasks") ?></h2>
|
||||||
<div id="tasksdispdiv" style="<?php if ($pageid != "mytasks") {
|
<div id="tasksdispdiv" style="<?php if ($pageid != "mytasks") {
|
||||||
echo "max-height: 600px; overflow-y: auto; padding: 5px;";
|
echo "max-height: 600px; overflow-y: auto; padding: 5px;";
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/../required.php';
|
||||||
|
|
||||||
|
redirectifnotloggedin();
|
||||||
|
?>
|
||||||
<h1 class="page-header"><?php lang("task manager") ?></h1>
|
<h1 class="page-header"><?php lang("task manager") ?></h1>
|
||||||
<div class="well well-sm">
|
<div class="well well-sm">
|
||||||
<a href="app.php?page=edittask" class="btn btn-primary"><i class="fa fa-plus"></i> <?php lang("new task") ?></a>
|
<a href="app.php?page=edittask" class="btn btn-primary"><i class="fa fa-plus"></i> <?php lang("new task") ?></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user