-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathindex.php
More file actions
22 lines (18 loc) · 742 Bytes
/
index.php
File metadata and controls
22 lines (18 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
declare(strict_types=1);
/*
|--------------------------------------------------------------------------
| Fallback file
|--------------------------------------------------------------------------
|
| This file is just a fallback for old doika installations,
| where we copy the whole Doika app to the web-server dir (e.g. /etc/www/html).
| For new Doika installations, doika should be located outside a directory server by web-server server,
| but doika/public directory should be linked to as 'doika' to web-server directory.
|
*/
if (getenv('IS_DOIKA_SYMLINKED') === '1') {
echo 'Web server should not have an access to this index.php when IS_DOIKA_SYMLINKED is used';
exit(1);
}
require_once __DIR__.'/public/index.php';