Minor fixes
This commit is contained in:
parent
2c23889da0
commit
efe0e5a6ad
|
@ -495,6 +495,7 @@ fieldset[disabled] select,
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table thead th {
|
.table thead th {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . "/../private/php/constants.php";
|
require_once __DIR__ . "/../private/php/constants.php";
|
||||||
|
|
||||||
if(file_exists(__INSTALLER_LOCK_FILE) && filesize(__INSTALLER_LOCK_FILE) > 1) {
|
if(file_exists(__INSTALLER_LOCK_FILE)) {
|
||||||
die('File "private/INSTALLER_LOCK" exists. Please remove it if you wish to run the installer again.');
|
die('File "private/INSTALLER_LOCK" exists. Please remove it if you wish to run the installer again.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,11 @@ if(!defined("__TSWEBSITE_VERSION")) die("Direct access not allowed");
|
||||||
|
|
||||||
use Wruczek\TSWebsite\Utils\TeamSpeakUtils;
|
use Wruczek\TSWebsite\Utils\TeamSpeakUtils;
|
||||||
|
|
||||||
if(file_put_contents(__INSTALLER_LOCK_FILE, "WEBSITE_INSTALLED") === false) {
|
$installerLockMessage =
|
||||||
|
"After initial installation, this file prevents someone from running it again. " .
|
||||||
|
"Deleting it will allow you to re-install TS-website.";
|
||||||
|
|
||||||
|
if(file_put_contents(__INSTALLER_LOCK_FILE, $installerLockMessage) === false) {
|
||||||
die("Cannot write to <code>private/INSTALLER_LOCK</code>! Please check the file/directory permissions");
|
die("Cannot write to <code>private/INSTALLER_LOCK</code>! Please check the file/directory permissions");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +93,7 @@ if(!empty($_COOKIE["tsw_allow_metrics"])) {
|
||||||
<i class="fab fa-paypal whatnow-icon fa-fw" style="color: #003087"></i>
|
<i class="fab fa-paypal whatnow-icon fa-fw" style="color: #003087"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-10">
|
<div class="col-lg-10">
|
||||||
<h1><a href="https://paypal.me/#" target="_blank">Donate</a></h1>
|
<h1><a href="https://wruczek.tech/donate/paypal?from=tsw" target="_blank">Donate</a></h1>
|
||||||
<h3>to keep this project alive</h3>
|
<h3>to keep this project alive</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -103,7 +103,7 @@ class Assigner {
|
||||||
$groupsToAdd[] = $group;
|
$groupsToAdd[] = $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
// REMOVE GROUP if the group is currently assigned, but the user does not want to be inside it
|
// REMOVE GROUP if the group is currently assigned, but the user does not want to have it
|
||||||
if ($isAssigned && !$wantToAssign) {
|
if ($isAssigned && !$wantToAssign) {
|
||||||
$groupsToRemove[] = $group;
|
$groupsToRemove[] = $group;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
<div class="row justify-content-md-center">
|
<div class="row justify-content-md-center">
|
||||||
{foreach $row as $assignerCategory}
|
{foreach $row as $assignerCategory}
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<ul class="list-group assigner-category" data-maxgroups="{$assignerCategory["max"]}">
|
<div class="list-group assigner-category" data-maxgroups="{$assignerCategory["max"]}">
|
||||||
<li class="list-group-item assigner-header">
|
<li class="list-group-item assigner-header">
|
||||||
<div>
|
<div>
|
||||||
<i class="{$assignerCategory["icon"]}"></i>{$assignerCategory["name"]}
|
<i class="{$assignerCategory["icon"]}"></i>{$assignerCategory["name"]}
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{foreach $assignerCategory["groups"] as $group}
|
{foreach $assignerCategory["groups"] as $group}
|
||||||
<button type="button" class="list-group-item list-group-item-action">
|
<div class="list-group-item list-group-item-action">
|
||||||
<div>
|
<div>
|
||||||
{if $group["iconid"]}
|
{if $group["iconid"]}
|
||||||
<img src="api/geticon.php?iconid={$group["iconid"]}" alt="{$group["name"]} icon" class="assigner-icon">
|
<img src="api/geticon.php?iconid={$group["iconid"]}" alt="{$group["name"]} icon" class="assigner-icon">
|
||||||
|
@ -83,9 +83,9 @@
|
||||||
<label class="custom-control-label" for="assignerCheck{$group["sgid"]}"> </label>
|
<label class="custom-control-label" for="assignerCheck{$group["sgid"]}"> </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue