datein hinzufügen
This commit is contained in:
15
includes/redis.php
Normal file
15
includes/redis.php
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user