forked from TruCopilot/phpfastcache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
44 lines (34 loc) · 953 Bytes
/
index.php
File metadata and controls
44 lines (34 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
*
* This file is part of phpFastCache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt file.
*
* @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> https://www.phpfastcache.com
* @author Georges.L (Geolim4) <contact@geolim4.com>
*
*/
echo '<h2> Drivers available: </h2>';
echo '<ul>';
foreach (glob("*.php") as $filename) {
if (basename(__FILE__) !== $filename) {
echo "<li><a href=\"$filename\">" . ucfirst(basename($filename, '.php')) . "</a></li>";
}
}
echo '</ul>';
// Comment this "exit;" to display extensions
// informations about missing/misconfigured drivers
// exit;
echo '<h2> PHP extensions loaded: </h2>';
echo '<ul>';
$extensions = array_map('ucfirst', get_loaded_extensions());
sort($extensions);
foreach ($extensions as $extension) {
echo "<li>$extension</li>";
}
echo '</ul>';
echo '<h2> PHP info: </h2>';
phpinfo();