-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
26 lines (19 loc) · 707 Bytes
/
index.php
File metadata and controls
26 lines (19 loc) · 707 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
<?php
require_once __DIR__.'/vendor/autoload.php';
$loader = new Twig_Loader_Filesystem(__DIR__);
$twig = new Twig_Environment($loader);
$finder = new Symfony\Component\Finder\Finder();
$finder->directories()->in(__DIR__)->exclude('vendor')->depth('== 0');
$extensions = get_loaded_extensions();
natcasesort($extensions);
$functions = get_defined_functions();
$functions = $functions['internal'];
shuffle($functions);
$function = current($functions);
echo $twig->render('index.html.twig',array (
'host' => $_SERVER['SERVER_NAME'],
'directories' => $finder,
'infos' => array(PHP_VERSION, PHP_SAPI, PHP_OS),
'extensions' => $extensions,
'function' => $function,
));