Minor fixes
This commit is contained in:
		| @@ -495,6 +495,7 @@ fieldset[disabled] select, | ||||
|  | ||||
| .table { | ||||
|     font-size: 0.85em; | ||||
|     color: inherit; | ||||
| } | ||||
|  | ||||
| .table thead th { | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| <?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.'); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -3,7 +3,11 @@ if(!defined("__TSWEBSITE_VERSION")) die("Direct access not allowed"); | ||||
|  | ||||
| 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"); | ||||
| } | ||||
|  | ||||
| @@ -89,7 +93,7 @@ if(!empty($_COOKIE["tsw_allow_metrics"])) { | ||||
|                     <i class="fab fa-paypal whatnow-icon fa-fw" style="color: #003087"></i> | ||||
|                 </div> | ||||
|                 <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> | ||||
|                 </div> | ||||
|             </div> | ||||
|   | ||||
| @@ -103,7 +103,7 @@ class Assigner { | ||||
|                     $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) { | ||||
|                     $groupsToRemove[] = $group; | ||||
|                 } | ||||
|   | ||||
| @@ -54,7 +54,7 @@ | ||||
|                         <div class="row justify-content-md-center"> | ||||
|                             {foreach $row as $assignerCategory} | ||||
|                                 <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"> | ||||
|                                             <div> | ||||
|                                                 <i class="{$assignerCategory["icon"]}"></i>{$assignerCategory["name"]} | ||||
| @@ -65,7 +65,7 @@ | ||||
|                                         </li> | ||||
|  | ||||
|                                         {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> | ||||
|                                                     {if $group["iconid"]} | ||||
|                                                         <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> | ||||
|                                                     </div> | ||||
|                                                 </div> | ||||
|                                             </button> | ||||
|                                             </div> | ||||
|                                         {/foreach} | ||||
|                                     </ul> | ||||
|                                     </div> | ||||
|                                 </div> | ||||
|                             {/foreach} | ||||
|                         </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user