-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
32 lines (27 loc) · 908 Bytes
/
install.php
File metadata and controls
32 lines (27 loc) · 908 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
<?php declare(strict_types=1);
/**
* This is the HTTP entry point for Andromeda/install.php
*
* The Andromeda directory can be installed anywhere, by
* updating the include paths below. It is recommended that
* this file is used as the web entry point and that the Andromeda
* and vendor folders are not in a web-accessible location.
*
* vendor and Andromeda must exist in the same folder.
*/
/** SECURITY - it is a good idea to remove this file if
* HTTP install/upgrade is not needed (see README.md) */
$paths = array(
__DIR__.'/Andromeda/install.php',
'/usr/local/lib/andromeda-server/Andromeda/install.php',
'/usr/lib/andromeda-server/Andromeda/install.php'
);
foreach ($paths as $path)
{
if (is_file($path))
{
require_once($path); die();
}
}
http_response_code(500);
die("Could not find the Andromeda server folder!");