mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Add installation tests for required PHP modules
This commit is contained in:
parent
5f836763c5
commit
198d7c9ccb
1 changed files with 69 additions and 1 deletions
|
@ -49,7 +49,7 @@ require_once '../locale/function.php';
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<i class="fa-regular fa-square-check"></i>
|
<i class="fa-regular fa-square-check"></i>
|
||||||
<strong><?php echo $_SERVER['SERVER_SOFTWARE']; ?> is Present</strong>
|
<strong><?php echo $_SERVER['SERVER_SOFTWARE']; ?> is present</strong>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,6 +77,74 @@ require_once '../locale/function.php';
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (class_exists('mysqli')) {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<i class="fa-regular fa-square-check"></i>
|
||||||
|
<strong>php-mysqli module is present.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<i class="fa-solid fa-circle-exclamation"></i>
|
||||||
|
<strong>php-mysqli module is required.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (function_exists('mb_strlen')) {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<i class="fa-regular fa-square-check"></i>
|
||||||
|
<strong>php-mbstring module is present.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<i class="fa-solid fa-circle-exclamation"></i>
|
||||||
|
<strong>php-mbstring module is required.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (function_exists('imagecreate')) {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<i class="fa-regular fa-square-check"></i>
|
||||||
|
<strong>php-gd module is present.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<i class="fa-solid fa-circle-exclamation"></i>
|
||||||
|
<strong>php-gd module is required.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (function_exists('ob_gzhandler')) {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<i class="fa-regular fa-square-check"></i>
|
||||||
|
<strong>php-zlib module is present.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<i class="fa-solid fa-circle-exclamation"></i>
|
||||||
|
<strong>php-zlib module is required.</strong>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (checkVideosDir()) {
|
if (checkVideosDir()) {
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue