Minor fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user