We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbefe9f commit eb84be4Copy full SHA for eb84be4
www/adminer/index.php
@@ -1,21 +1,11 @@
1
<?php
2
3
-/*if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) || !isset($_SERVER['REMOTE_ADDR']) ||
4
- !in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']))
5
-{
6
- header('HTTP/1.1 403 Forbidden');
7
- echo 'Adminer is available only from localhost';
8
- for ($i = 2e3; $i; $i--) echo substr(" \t\r\n", rand(0, 3), 1);
9
- exit;
10
-}*/
+$index = __DIR__ . '/../../vendor/dg/adminer-custom/index.php';
11
12
-
13
-$root = __DIR__ . '/../../vendor/dg/adminer-custom';
14
15
-if (!is_file($root . '/index.php')) {
+if (!is_file($index)) {
16
echo "Install Adminer using `composer install`\n";
17
exit(1);
18
}
19
20
21
-require $root . '/index.php';
+touch(__DIR__ . '/adminer.css');
+require $index;
0 commit comments