Adjust branding colors, make pages more suicidal if user isn't logged in

master
Skylar Ittner 7 years ago
parent 16d9481abd
commit 5f8b9836e7

@ -84,6 +84,7 @@ if (checkLoginServer()) {
<link href="static/css/bootstrap.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">
<?php if (RECAPTCHA_ENABLED) { ?>
<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" />
<?php } ?>
</div>
<div class="panel panel-primary">
<div class="panel panel-blue-grey">
<div class="panel-heading">
<h3 class="panel-title"><?php lang("sign in"); ?></h3>
</div>

@ -1,3 +1,8 @@
<?php
require_once __DIR__ . '/../required.php';
redirectifnotloggedin();
?>
<h1 class="page-header"><?php lang("edit task") ?></h1>
<?php
include_once __DIR__ . "/../lib/userinfo.php";
@ -5,7 +10,7 @@ include_once __DIR__ . "/../lib/manage.php";
if (!is_empty($VARS['taskid'])) {
$taskid = $VARS['taskid'];
$managed_uids = getManagedUIDs($_SESSION['uid']);
// There needs to be at least one entry otherwise the SQL query craps itself
if (count($managed_uids) < 1) {
@ -23,7 +28,7 @@ if (!is_empty($VARS['taskid'])) {
],
"tasks.taskid" => $taskid
]]);
if (!$allowed) {
header("Location: app.php?page=edittask&msg=task_edit_not_allowed");
die(lang("task edit not allowed", false));

@ -1,3 +1,8 @@
<?php
require_once __DIR__ . '/../required.php';
redirectifnotloggedin();
?>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<?php

@ -1,3 +1,8 @@
<?php
require_once __DIR__ . '/../required.php';
redirectifnotloggedin();
?>
<h2 class="page-header">
<?php lang("messages") ?>
</h2>

@ -1,3 +1,8 @@
<?php
require_once __DIR__ . '/../required.php';
redirectifnotloggedin();
?>
<h2 class="page-header"><?php lang("my tasks") ?></h2>
<div id="tasksdispdiv" style="<?php if ($pageid != "mytasks") {
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>
<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>

Loading…
Cancel
Save