mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
update
This commit is contained in:
parent
41ea593e8a
commit
22cda8bc5a
3 changed files with 7 additions and 1 deletions
|
@ -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"])) {
|
||||
$messages['Apache'][] = "HTTPS is enabled";
|
||||
|
|
|
@ -182,6 +182,7 @@ function getLanguage()
|
|||
require_once $global['systemRootPath'] . 'objects/configuration.php';
|
||||
require_once $global['systemRootPath'] . 'objects/functions.php';
|
||||
$config = new Configuration();
|
||||
var_dump($config->getLanguage());exit;
|
||||
$_SESSION['language'] = $config->getLanguage();
|
||||
}
|
||||
if(empty($_SESSION['language'])){
|
||||
|
|
|
@ -3463,7 +3463,7 @@ Click <a href=\"{link}\">here</a> to join our live.";
|
|||
public static function passwordIsGood($key) {
|
||||
$row = LiveTransmition::getFromKey($key, true);
|
||||
if (empty($row) || empty($row['id']) || empty($row['users_id'])) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
$password = @$row['live_password'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue