Skip to content

Commit 2760395

Browse files
Merge pull request WWBN#9894 from manu0401/php_module
Add installation tests for required PHP modules
2 parents d88a00c + fd07d79 commit 2760395

File tree

1 file changed

+124
-2
lines changed

1 file changed

+124
-2
lines changed

install/index.php

Lines changed: 124 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
.bootstrap-select{
1919
width: 100% !important;
2020
}
21-
21+
.alert{
22+
padding: 2px 25px;
23+
margin-bottom: 10px;
24+
}
2225
</style>
2326
</head>
2427

@@ -49,7 +52,7 @@
4952
?>
5053
<div class="alert alert-success">
5154
<i class="fa-regular fa-square-check"></i>
52-
<strong><?php echo $_SERVER['SERVER_SOFTWARE']; ?> is Present</strong>
55+
<strong><?php echo $_SERVER['SERVER_SOFTWARE']; ?> is present</strong>
5356
</div>
5457
<?php
5558
} else {
@@ -77,6 +80,125 @@
7780
<?php
7881
} ?>
7982

83+
<?php
84+
if (function_exists('curl_init')) {
85+
?>
86+
<div class="alert alert-success">
87+
<i class="fa-regular fa-square-check"></i>
88+
<strong>php-curl module is present.</strong>
89+
</div>
90+
<?php
91+
} else {
92+
?>
93+
<div class="alert alert-warning">
94+
<i class="fa-solid fa-circle-exclamation"></i>
95+
<strong>php-curl module is required.</strong>
96+
</div>
97+
<?php
98+
} ?>
99+
100+
<?php
101+
if (function_exists('imagecreate')) {
102+
?>
103+
<div class="alert alert-success">
104+
<i class="fa-regular fa-square-check"></i>
105+
<strong>php-gd module is present.</strong>
106+
</div>
107+
<?php
108+
} else {
109+
?>
110+
<div class="alert alert-warning">
111+
<i class="fa-solid fa-circle-exclamation"></i>
112+
<strong>php-gd module is required.</strong>
113+
</div>
114+
<?php
115+
} ?>
116+
117+
<?php
118+
if (function_exists('json_encode')) {
119+
?>
120+
<div class="alert alert-success">
121+
<i class="fa-regular fa-square-check"></i>
122+
<strong>php-json module is present.</strong>
123+
</div>
124+
<?php
125+
} else {
126+
?>
127+
<div class="alert alert-warning">
128+
<i class="fa-solid fa-circle-exclamation"></i>
129+
<strong>php-json module is required.</strong>
130+
</div>
131+
<?php
132+
} ?>
133+
134+
<?php
135+
if (function_exists('mb_strlen')) {
136+
?>
137+
<div class="alert alert-success">
138+
<i class="fa-regular fa-square-check"></i>
139+
<strong>php-mbstring module is present.</strong>
140+
</div>
141+
<?php
142+
} else {
143+
?>
144+
<div class="alert alert-warning">
145+
<i class="fa-solid fa-circle-exclamation"></i>
146+
<strong>php-mbstring module is required.</strong>
147+
</div>
148+
<?php
149+
} ?>
150+
151+
<?php
152+
if (class_exists('mysqli')) {
153+
?>
154+
<div class="alert alert-success">
155+
<i class="fa-regular fa-square-check"></i>
156+
<strong>php-mysqli module is present.</strong>
157+
</div>
158+
<?php
159+
} else {
160+
?>
161+
<div class="alert alert-warning">
162+
<i class="fa-solid fa-circle-exclamation"></i>
163+
<strong>php-mysqli module is required.</strong>
164+
</div>
165+
<?php
166+
} ?>
167+
168+
<?php
169+
if (class_exists('ZipArchive')) {
170+
?>
171+
<div class="alert alert-success">
172+
<i class="fa-regular fa-square-check"></i>
173+
<strong>php-zip module is present.</strong>
174+
</div>
175+
<?php
176+
} else {
177+
?>
178+
<div class="alert alert-warning">
179+
<i class="fa-solid fa-circle-exclamation"></i>
180+
<strong>php-zip module is required.</strong>
181+
</div>
182+
<?php
183+
} ?>
184+
185+
<?php
186+
if (function_exists('ob_gzhandler')) {
187+
?>
188+
<div class="alert alert-success">
189+
<i class="fa-regular fa-square-check"></i>
190+
<strong>php-zlib module is present.</strong>
191+
</div>
192+
<?php
193+
} else {
194+
?>
195+
<div class="alert alert-warning">
196+
<i class="fa-solid fa-circle-exclamation"></i>
197+
<strong>php-zlib module is required.</strong>
198+
</div>
199+
<?php
200+
} ?>
201+
80202
<?php
81203
if (checkVideosDir()) {
82204
?>

0 commit comments

Comments
 (0)