1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2023-03-09 10:12:29 -03:00
parent 41ea593e8a
commit 22cda8bc5a
3 changed files with 7 additions and 1 deletions

View file

@ -57,6 +57,11 @@ foreach ($phpExtensions as $value) {
} }
} }
if (function_exists('imagewebp')) {
$messages['PHP'][] = "WebP is supported";
} else {
$messages['PHP'][] = ["WebP is not supported", 'sudo apt-get install -y libwebp-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev php-gd'];
}
if (isset($_SERVER["HTTPS"])) { if (isset($_SERVER["HTTPS"])) {
$messages['Apache'][] = "HTTPS is enabled"; $messages['Apache'][] = "HTTPS is enabled";

View file

@ -182,6 +182,7 @@ function getLanguage()
require_once $global['systemRootPath'] . 'objects/configuration.php'; require_once $global['systemRootPath'] . 'objects/configuration.php';
require_once $global['systemRootPath'] . 'objects/functions.php'; require_once $global['systemRootPath'] . 'objects/functions.php';
$config = new Configuration(); $config = new Configuration();
var_dump($config->getLanguage());exit;
$_SESSION['language'] = $config->getLanguage(); $_SESSION['language'] = $config->getLanguage();
} }
if(empty($_SESSION['language'])){ if(empty($_SESSION['language'])){

View file

@ -3463,7 +3463,7 @@ Click <a href=\"{link}\">here</a> to join our live.";
public static function passwordIsGood($key) { public static function passwordIsGood($key) {
$row = LiveTransmition::getFromKey($key, true); $row = LiveTransmition::getFromKey($key, true);
if (empty($row) || empty($row['id']) || empty($row['users_id'])) { if (empty($row) || empty($row['id']) || empty($row['users_id'])) {
return false; return true;
} }
$password = @$row['live_password']; $password = @$row['live_password'];