datein hinzufügen

This commit is contained in:
tbS
2025-08-02 22:24:03 +02:00
commit 938d485253
129 changed files with 37532 additions and 0 deletions

15
includes/redis.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
include_once (($_SERVER['DOCUMENT_ROOT'] == "/var/www/vhosts/tbs-server.de/lizenz.tbs-server.de/panel" || $_SERVER['DOCUMENT_ROOT'] == "/var/www/vhosts/tbs-server.de/lizenz.tbs-server.de/api") ? "/var/www/vhosts/tbs-server.de/lizenz.tbs-server.de" : $_SERVER['DOCUMENT_ROOT']) . '/includes/credentials.php'; // reference credentials
if (!class_exists('Redis')) {
die('Redis isn\'t installed. You must install Redis server and Redis PHP extension.<br><br>Or if your configuration can\'t install Redis, remove code containing Redis from /includes/misc/cache.php');
}
$redis = new Redis();
$redis->connect('localhost', 6380, 10);
global $redisPass;
if(!empty($redisPass)) {
$redis->auth($redisPass);
}