Minor fixes

This commit is contained in:
Wruczek
2019-06-05 02:31:19 +02:00
parent 2c23889da0
commit efe0e5a6ad
5 changed files with 13 additions and 8 deletions

View File

@@ -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.');
}

View File

@@ -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>